#include <stdlib.h>
#define DEBUG_LOG_MODULE_NAME "SCHED_EX"
#define DEBUG_LOG_MAX_LEVEL LVL_INFO
static uint32_t periodic_task_50ms()
{
return 50;
}
static uint32_t periodic_task_500ms()
{
return 500;
}
static uint32_t single_shot_task()
{
}
static uint32_t steps[] = {200, 200, 200, 200, 200, 200,
500, 500, 500, 500, 500, 500,
200, 200, 200, 200, 200, 200};
static uint32_t state_machine_task()
{
static uint8_t current_step = 0;
uint32_t next;
next = steps[current_step++];
if (current_step >= sizeof(steps) / sizeof(steps[0]))
{
current_step = 0;
next = 2000;
}
return next;
}
{
(void) button_id;
(void) event;
}
static void button_handler_state_machine(uint8_t button_id,
button_event_e event)
{
static bool started = false;
(void) button_id;
(void) event;
if (!started)
{
10);
}
else
{
}
}
{
(void) functions;
{
return;
}
lib_state->startStack();
}
app_scheduler_res_e
List of return code.
#define APP_SCHEDULER_STOP_TASK
Value to return from task to remove it.
app_scheduler_res_e App_Scheduler_addTask_execTime(task_cb_f cb, uint32_t delay_ms, uint32_t exec_time_us)
Add a task.
app_scheduler_res_e App_Scheduler_cancelTask(task_cb_f cb)
Cancel a task.
#define APP_SCHEDULER_SCHEDULE_ASAP
Value to return from task or as initial time to be executed ASAP.
#define LOG(level, fmt,...)
Print a log message if its severity is lower or equal to DEBUG_LOG_MAX_LEVEL.
Board-independent LED functions.
led_res_e Led_toggle(uint8_t led_id)
Toggle the given LED.
__STATIC_INLINE app_res_e configureNodeFromBuildParameters()
Wrapper on top of configureNode to get parameters from build system and hardcoded values from chip (f...
List of global functions, passed to App_entrypoint()