/******************** (C) COPYRIGHT 2022 GEEKIMU ******************************* * File Name : app_main.c * Current Version : V1.0 & ESP32 * Author : zhanli 719901725@qq.com & JustFeng. * Date of Issued : 2022.09.17 zhanli : Create for GeekTrack. * Comments : GeekTrack主程序 ********************************************************************************/ #include #include #include #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "HAL/HAL.h" // ESP网络相关 #include "esp_log.h" #include "lwip/err.h" #include "lwip/sys.h" #include #include "esp_netif.h" #include "lwip/sockets.h" #include // ESP 串口配置相关 #include "freertos/queue.h" #include "geek_shell_api.h" // ADC 配置相关 #include "esp_freertos_hooks.h" #include "freertos/semphr.h" #include "lvgl.h" #include "lvgl_helpers.h" #include "System/GeekOS.h" #include "WIFINetwork.h" #define LV_TICK_PERIOD_MS 1 static void lv_tick_task(void *arg); /**----------------------------------------------------------------------- * Function : app_main * Description : GEEKIMU 程序主入口 * Author : zhanli&719901725@qq.com * Date : 2021/7/20 zhanli *---------------------------------------------------------------------**/ void app_main(void) { /* HAL init config. */ HAL_Init(); // vTaskDelay(1500 / portTICK_PERIOD_MS); /* Config serial zero for shell. */ // userShellInit(0); // xTaskCreate(shellTask, "shell", 4096, GetEsp32Shell(), 12, NULL); // LIB_WIFIConnect(); uint32_t tick = 0; /* Forever loop. */ while(1){ /* Delay 10ms in order to relase cpu. */ vTaskDelay(10 / portTICK_PERIOD_MS); /* Update HAL task. */ HAL_Update(tick); tick += 10; } }