/** * Copyright (c) 2016-2021 Bouffalolab Co., Ltd. * * Contact information: * web site: https://www.bouffalolab.com/ */ #ifdef SYS_AOS_LOOP_ENABLE #include #include #include #include #include #include #include static void aos_loop_proc(void * pvParameters) { aos_loop_init(); aos_loop_run(); vTaskDelete(NULL); } void aos_loop_start(void) { static TaskHandle_t aos_loop_proc_task; vfs_init(); vfs_device_init(); xTaskCreate(aos_loop_proc, (char *) "event_loop", 4096, NULL, APP_TASK_PRIORITY, &aos_loop_proc_task); } #endif