Application that toggles board LEDs using a Pin interrupt.
Board_LED0
- Toggled by Board_BUTTON0Board_LED1
- Toggled by Board_BUTTON1Board_BUTTON0
- Toggles Board_LED0Board_BUTTON1
- Toggles Board_LED1
Please refer to the development board's specific Settings and Resources section in the Getting Started Guide. For convenience, a short summary is also shown below.
Development board | Notes |
---|---|
CC1310DK | Close BTN_RIGHT , BTN_LEFT , BTN_UP , BTN_DOWN , and BTN_SELECT |
CC2650DK | ^ |
CC1310STK-BLE | Close BTN_RIGHT AND BTN_LEFT |
CC2650STK-BLE | ^ |
CC1310LP | Close RED LED, GREEN LED |
CC1350LP | ^ |
CC2650LP | ^ |
Fields left blank have no specific settings for this example. Fields containing ^, refer to the above settings.
Run the example.
-
Board_LED0
is toggled by pushingBoard_BUTTON0
. -
Board_LED1
is toggled by pushingBoard_BUTTON1
.
- Each key's interrupt is configured for a falling edge of the pulse. A small delay has been added to provide button de-bounce logic.
- The
pinCallbackFxn
function is defined in the pinInterrupt.c file. This function is called in the context of the pin interrupt (Hwi).
For IAR users using any SensorTag(STK) Board, the XDS110 debugger must be selected with the 4-wire JTAG connection within your projects' debugger configuration.
- For GNU and IAR users, please read the following website for details about enabling semi-hosting in order to view console output.