#include "freertos/FreeRTOS.h" #include "esp_log.h" #include "nvs_flash.h" #include "lwip/err.h" // #include "wifi_station.h" #include "shake_detect.h" #include "nvs_storage.h" #include "twai_communication.h" #include "twai_ota.h" static const char *TAG = "esp32_shock_main"; void app_main(void) { nvs_storage_init(); ota_init(); twai_init(); shake_detect_init(); // 放在twai后面 while (1) { // ESP_LOGI(TAG, "Hello, world!"); vTaskDelay(pdMS_TO_TICKS(1000)); } }