static void embedded_init(void){ data_sources = NULL; #ifdef HAVE_TICK timers = NULL; system_ticks = 0; hal_tick_init(); hal_tick_set_handler(&embedded_tick_handler); #endif }
static void btstack_run_loop_embedded_init(void){ data_sources = NULL; #ifdef TIMER_SUPPORT timers = NULL; #endif #ifdef HAVE_EMBEDDED_TICK system_ticks = 0; hal_tick_init(); hal_tick_set_handler(&btstack_run_loop_embedded_tick_handler); #endif }