/** * \brief Handler for Button 2 falling edge interrupt. * * Handle process led2 status change. */ void Button2_Handler(const Pin *pin) { ProcessButtonEvt(1); }
// [main_button2_handler] static void Button2_Handler(uint32_t id, uint32_t mask) { if (PIN_PUSHBUTTON_2_ID == id && PIN_PUSHBUTTON_2_MASK == mask) { ProcessButtonEvt(1); } }
/** * \brief Handler for Button 1 rising edge interrupt. * * Handle process led1 status change. */ void Button1_Handler(const Pin *pin) { ProcessButtonEvt(0); }
/** * \brief Handler for Button 3 rising edge interrupt. * \param id The button ID. * \param mask The button mask. */ static void Button3_Handler(uint32_t id, uint32_t mask) { if ((PIN_PUSHBUTTON_3_ID == id) && (PIN_PUSHBUTTON_3_MASK == mask)) ProcessButtonEvt(3); }