mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
22 lines
453 B
C++
22 lines
453 B
C++
#include <stdio.h>
|
|
#include <inttypes.h>
|
|
|
|
#include "sdkconfig.h"
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "esp_chip_info.h"
|
|
#include "esp_flash.h"
|
|
|
|
extern "C" void app_main(void) {
|
|
printf("Hello world!\n");
|
|
|
|
for (int i = 10; i >= 0; i--) {
|
|
printf("Restarting in %d seconds...\n", i);
|
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
|
}
|
|
|
|
printf("Restarting now\n");
|
|
fflush(stdout);
|
|
esp_restart();
|
|
}
|