Interrupt Usage

When an interrupt happens on a pin, it will execute your callback function.
static void pb0_callback(void)
{
    /* Handle pin interrupt here e.g. toggle an LED */
    LED_Toggle(LED0);
}