#include "ti_msp_dl_config.h"
int main(void) {
SYSCFG_DL_init();
while (1) {
NVIC_EnableIRQ(sec1_INST_INT_IRQN);
NVIC_EnableIRQ(sec5_INST_INT_IRQN);
DL_TimerG_startCounter(sec1_INST);
DL_TimerG_startCounter(sec5_INST);
}
}
void sec1_INST_IRQHandler(void) {
switch (DL_TimerG_getPendingInterrupt(sec1_INST)) {
case DL_TIMER_IIDX_ZERO:
DL_GPIO_togglePins(leds_singlePa0_PORT, leds_singlePa0_PIN);
break;
}
}
void sec5_INST_IRQHandler(void) {
switch (DL_TimerG_getPendingInterrupt(sec5_INST)) {
case DL_TIMER_IIDX_ZERO:
DL_GPIO_togglePins(leds_bluePb22_PORT, leds_bluePb22_PIN);
break;
}
}