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.
-
Documentation to understand the usage of various API's available for a particular peripheral is available here: microchip-mplab-harmony.github.io/csp/?GUID-5752DD6D-6E5D-484D-B564-DA87788492F3
-
There are also precompiled application examples available as part of github.com/Microchip-MPLAB-Harmony/csp_apps_pic32cxbz2_wbz45 repository which give users ready to use examples to follow.
- For more details on adding UART logs to the BLE application, refer to the UART Hello World application section from Related Links.
