a6c02bc710
fixes: https://github.com/espressif/arduino-esp32/issues/76 fixes: https://github.com/espressif/arduino-esp32/issues/5 fixes: https://github.com/espressif/arduino-esp32/issues/91
22 lines
331 B
C++
22 lines
331 B
C++
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "Arduino.h"
|
|
|
|
#if CONFIG_AUTOSTART_ARDUINO
|
|
|
|
void loopTask(void *pvParameters)
|
|
{
|
|
setup();
|
|
for(;;) {
|
|
loop();
|
|
}
|
|
}
|
|
|
|
extern "C" void app_main()
|
|
{
|
|
initArduino();
|
|
xTaskCreatePinnedToCore(loopTask, "loopTask", 4096, NULL, 1, NULL, 1);
|
|
}
|
|
|
|
#endif
|