- #include "ti_msp_dl_config.h"
- int main(void)
- {
- SYSCFG_DL_init();
- /* LED off by default */
- while (1) {
- if (!DL_GPIO_readPins(
- GPIO_SWITCHES_PORT, GPIO_SWITCHES_USER_SWITCH_1_PIN)) {
- DL_GPIO_setPins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN);
- } else {
- DL_GPIO_clearPins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN);
- }
- }
- }
|