49 #ifndef CONF_BOARD_SPI_ATWINC_WIFI 52 #ifndef CONF_BOARD_SPI_UINS 103 #define BUTTON_DEBOUNCE_TIME_MS 100 108 static bool bothBtnsDown =
false;
109 static bool cfgBtnDownLast = cfgBtnDown;
110 static bool logBtnDownLast = logBtnDown;
111 static bool bothBtnsDownLast = bothBtnsDown;
112 static uint32_t cfgBtnTimeMs = 0;
113 static uint32_t logBtnTimeMs = 0;
114 static uint32_t bothBtnTimeMs = 0;
115 static bool ignoreEstopBtnRelease=
false;
116 static bool ignorePauseBtnRelease=
false;
120 cfgBtnDownLast = cfgBtnDown;
121 cfgBtnTimeMs = time_ms;
128 if(!ignoreEstopBtnRelease)
132 ignoreEstopBtnRelease =
false;
138 logBtnDownLast = logBtnDown;
139 logBtnTimeMs = time_ms;
146 if(!ignorePauseBtnRelease)
150 ignorePauseBtnRelease =
false;
157 if(!cfgBtnDown && !logBtnDown)
159 bothBtnsDown =
false;
164 if(cfgBtnDown && logBtnDown)
172 bothBtnsDownLast = bothBtnsDown;
173 bothBtnTimeMs = time_ms;
177 ignoreEstopBtnRelease =
true;
178 ignorePauseBtnRelease =
true;
void refresh_led_cfg(void)
static VoidFuncPtrVoid s_funcPtrLogButtonRelease
void evbUiButtonCallbacks(VoidFuncPtrVoid fpCfgButtonPressed, VoidFuncPtrVoid fpCfgButtonRelease, VoidFuncPtrVoid fpLogButtonPressed, VoidFuncPtrVoid fpLogButtonRelease, VoidFuncPtrVoid fpBothButtonsPressed, VoidFuncPtrVoid fpBothButtonsRelease)
static VoidFuncPtrVoid s_funcPtrBothButtonsRelease
static void on_both_buttons_release()
static void on_log_button_pressed()
static void on_cfg_button_pressed()
static VoidFuncPtrVoid s_funcPtrRefreshLedCfg
void evbUiRefreshLedCfg()
void evbUiRefreshLedLog()
void uINS_stream_enable_PPD(void)
uint32_t flash_write_needed
void(* VoidFuncPtrVoid)(void)
static bool ioport_get_pin_level(ioport_pin_t pin)
Get current value of an IOPORT pin, which has been configured as an input.
static void on_cfg_button_release()
void refresh_led_log(void)
void com_bridge_apply_preset(evb_flash_cfg_t *cfg)
#define INS_RESET_PIN_PIN
static void on_log_button_release()
static void on_both_buttons_pressed()
#define BUTTON_DEBOUNCE_TIME_MS
#define ioport_set_pin_input_mode(pin, mode, sense)
Set input mode for one single IOPORT pin. It will configure port mode and disable pin mode (but enabl...
evb_flash_cfg_t * g_flashCfg
uint32_t flash_write_enable
static VoidFuncPtrVoid s_funcPtrCfgButtonRelease
void enable_logger(bool enable)
#define ioport_set_pin_output_mode(pin, level)
void step_user_interface(uint32_t time_ms)
void evbUiLedCallbacks(VoidFuncPtrVoid fpLedCfg, VoidFuncPtrVoid fpLedLog)
static VoidFuncPtrVoid s_funcPtrLogButtonPressed
static VoidFuncPtrVoid s_funcPtrRefreshLedLog
Autogenerated API include file for the Atmel Software Framework (ASF)
void board_IO_config(void)
nvr_manage_t g_nvr_manage_config
static VoidFuncPtrVoid s_funcPtrCfgButtonPressed
static VoidFuncPtrVoid s_funcPtrBothButtonsPressed