mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 09:05:59 +08:00
24 lines
493 B
C
24 lines
493 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
#include "esp_sta.h"
|
|
#include "esp_system.h"
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
|
|
#include "unity.h"
|
|
#include "unity_config.h"
|
|
|
|
void unityTask(void *pvParameters)
|
|
{
|
|
vTaskDelay(2); /* Delay a bit to let the main task be deleted */
|
|
unity_run_menu(); /* Doesn't return */
|
|
}
|
|
|
|
void app_main(void)
|
|
{
|
|
wifi_station_set_auto_connect(false);
|
|
xTaskCreate(unityTask, "unityTask", 2048, NULL, UNITY_FREERTOS_PRIORITY, NULL);
|
|
}
|