main.c 651 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <unistd.h>
  9. #include <string.h>
  10. #include <inttypes.h>
  11. #include "app_io.h"
  12. #include "freertos/FreeRTOS.h"
  13. #include "freertos/task.h"
  14. #include "freertos/queue.h"
  15. #include "nvs.h"
  16. #include "nvs_flash.h"
  17. #include "esp_system.h"
  18. #include "esp_log.h"
  19. #include "esp_bt.h"
  20. #include "app_manager.h"
  21. #define TAG "YUNTUNE"
  22. #define VERSION "v1.0.0"
  23. void app_main(void)
  24. {
  25. ESP_LOGI(TAG, "app version: %s", VERSION);
  26. esp_err_t err = init_app();
  27. ESP_ERROR_CHECK(err);
  28. }