1.2.5 User-Defined LEDs and Push Buttons

To facilitate the development of applications, two user-defined LEDs and two user-defined push buttons have been added to the CryptoAuth Pro Trust Platform development board. The LEDs (LED1, LED2) can be used to indicate status associated with some application code, and the push buttons (BTN1, BTN2) can be used to initiate actions associated with the code.

Table 1-4. User Defined LEDs and Push Buttons
ItemPin #Pin NameConfigurationActions:
LED17PA02OutputLED ON: PA02 = LOW

LED OFF: PA02 = HIGH

LED28PA03OutputLED ON: PA03 = LOW

LED OFF: PA03 = HIGH

BTN15PC02InputDetect LOW: Button Pressed

Detect HIGH: Button Not Pressed

BTN24PC01InputDetect LOW: Button Pressed

Detect HIGH: Button Not Pressed

Remember: The GPIO signals connected to the push buttons must enable the internal pull-up resistor on the GPIO pin to fully ensure the signal is not floating when the button is not pressed.