27.8.2.2.2 Workflow

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