7 Adding MCU Peripherals

This section describes how to add analog/digital peripherals to the application. The Chip Support Package (csp), which is downloaded as part of Installing the Harmony 3 Dependencies (see Installing the Harmony 3 Dependencies section from Related Links), is used to configure and generate code related to peripherals of choice.

Once a peripheral is added to Project Graph, a user can configure a variety of settings applicable to the peripheral. Upon code generation, users will have a code generated specific to the peripheral. Initialization of the peripheral, for example, SERCOM0_Initiliaze() will be added automatically to the SYS_Initialize() function call.

Figure 7-1. Project Graph