| 12345678910111213141516171819202122232425262728293031323334 |
- #include <stdint.h>
- #include "esp_log.h"
- #include "freertos/FreeRTOS.h" // IWYU pragma: keep
- #include "freertos/projdefs.h"
- #include "freertos/task.h"
- #include "freq_slider.h"
- #include "un.h"
- extern const uint32_t init_buzzer_freq;
- const char* TAG = "MAIN_C";
- void app_main() {
- ESP_LOGI(TAG, "BOOT");
- // Only enable one task at a time.
- // if (xTaskCreate(freq_slider_task, "freq_slider_task", 4096, NULL, tskIDLE_PRIORITY,
- // NULL) == pdFALSE) {
- // ESP_LOGE(TAG, "Failed to create freq_slider_task.");
- // }
- if (xTaskCreate(un_task, "un_task", 4096, NULL, tskIDLE_PRIORITY,
- NULL) == pdFALSE) {
- ESP_LOGE(TAG, "Failed to create un_task.");
- }
- while (true) {
- vTaskDelay(pdMS_TO_TICKS(10000));
- }
- }
|