28 #ifndef CONT_STACKSIZE 29 #define CONT_STACKSIZE (1024*4) 36 #define LOOP_TASK_PRIORITY 0 37 #define LOOP_QUEUE_SIZE 1 39 #define OPTIMISTIC_YIELD_TIME_US 16000 105 (system_get_time() - g_micros_at_task_start) > interval_us)
115 extern void loop(
void);
124 REG_SET_BIT(0x3ff00014, BIT(0));
139 g_micros_at_task_start = system_get_time();
143 printf(
"\nsketch stack overflow detected\n");
151 printf(
"\nInit Done with Yield support!\n");
152 printf(
"=============================\n");
175 printf(
"loop_task installed\n");
Master include file for project Includes all project includes and defines here.
void cont_yield(cont_t *)
cont_t g_cont __attribute__((aligned(16)))
uint32_t g_micros_at_task_start
static os_event_t g_loop_queue[LOOP_QUEUE_SIZE]
struct rst_info resetInfo
int cont_check(cont_t *cont)
bool cont_can_yield(cont_t *cont)
static void loop_task(os_event_t *events)
void optimistic_yield(uint32_t interval_us)
void hspi_waitReady(void)
HSPI Ready wait.
int atexit(void(*func)())
void cont_run(cont_t *, void(*pfn)(void))
MEMSPACE int printf(const char *format,...)
void setup()
main() Initialize user task
#define LOOP_TASK_PRIORITY
MEMSPACE void web_task()
Process ALL incoming HTTP requests.