Step 3.1: Configure LED Pin
In this step, the User LED on the SAM C21 Xplained Pro Evaluation Kit will be configured according to the Led Connection table:
3
Select the MHC Pin Settings tab and then scroll down to the PORT pin PA15 (Pin Number #32) in the Pin ID column and verify that PA15 is set as an output pin for LED functionality.
The LED on the SAM C21 Xplained Pro board is active low. Configure the LED in the default OFF state by configuring the Latch value to High.
Step 3.2: Rename Default File
Under the Project Graph tab, click on System, and give a name of your choice to the default template main file generated by MHC.
The name of the default main.c is changed to main_c21.c to indicate that the referred main.c is for the SAM C21 getting started training module.
Step 3.3: Configure Application Threads
4
Expand Application 1 Configuration and change the Application Name to app_eeprom_thread. This will create RTOS thread _APP_EEPROM_THREAD_Tasks. Set Stack Size (in bytes) to 1024.
Expand Application 2 Configuration and change the Application Name to app_user_input_thread. This will create RTOS thread _APP_USER_INPUT_THREAD_Tasks.
Accept the default RTOS Configuration for both the threads.