esp32_shock/main/esp32_shock_main.c

28 lines
520 B
C
Raw Normal View History

2024-04-27 09:15:55 +08:00
#include "freertos/FreeRTOS.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "lwip/err.h"
// #include "wifi_station.h"
#include "shake_detect.h"
2024-04-29 17:35:50 +08:00
#include "nvs_storage.h"
#include "twai_communication.h"
#include "twai_ota.h"
2024-04-27 09:15:55 +08:00
static const char *TAG = "esp32_shock_main";
void app_main(void)
{
2024-04-29 17:35:50 +08:00
nvs_storage_init();
ota_init();
twai_init();
shake_detect_init(); // 放在twai后面
2024-04-27 09:15:55 +08:00
while (1)
{
// ESP_LOGI(TAG, "Hello, world!");
vTaskDelay(pdMS_TO_TICKS(1000));
}
}