13#include "pico/stdio.h"
14#include "pico/stdlib.h"
15#include "hardware/timer.h"
72#define DEBOUNCE_us 10000
74#define LONG_RELEASE_DELAY_us 1000000
76#define LONG_PUSH_DELAY_ms 1000
78#define TIME_OUT_DELAY_ms 5000
144 uint32_t irq_event_mask_config;
208 rtosSwitchButton(uint
gpio, gpio_irq_callback_t call_back, QueueHandle_t in_switch_button_queue, QueueHandle_t out_control_event_queue,
this is the structure used to transmit control event through the queue
Definition rtos_switch_button.h:64
int gpio_number
the gpio that receive the IRQ
Definition rtos_switch_button.h:66
UIControlEvent event
the control event computed by the IRQ processing task
Definition rtos_switch_button.h:68
data structure used by ISR to capture, mask, time.
Definition rtos_hc_sr04.h:20
uint32_t current_time_us
the current time at wich the IRQ occurred
Definition rtos_hc_sr04.h:22
uint32_t event_mask
the IRQ mask given by the IRQ harware
Definition rtos_hc_sr04.h:24
UIControlEvent
The list of predefined events that a button, or more generally an User Interface Controller,...
Definition ui_control_event.h:18