1.2 Generating the Code

After configuring the peripherals, as shown in the following figure click Generate under Resource Management [MCC].
Figure 1-14. Code Generation
Note:
  1. The generated code will add files and folders to the 32-bit MCC Harmony project. In the generated code, notice the Peripheral Library files generated for the Real-Time Clock (RTC), External Interrupt Controller (EIC), PORT peripherals, SERCOM4 (as Universal Synchronous Asynchronous Receiver Transmitter (USART)), and the Direct Memory Access (DMA) peripherals. The MCC also generates the main.c file.
  2. The MCC provides an option to change the generated file name. By default, the file name main.c is generated if a name is not assigned.