#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
{
}
}
{
{
return;
}
lib_state->startStack();
}