27.8.2.2.2 Workflow
- Turn off the board LED when the application starts.
port_pin_set_output_level(LED_0_PIN, LED_0_INACTIVE);
- Enable global interrupts so that callbacks can be generated.
system_interrupt_enable_global();
- Enter an infinite loop to hold the main program logic.
while
(
true
) {
/* Wait for callback */
}