mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Link Layer Frame Send Scheduler, Internal RX Polling, Framework for Generic Frames + Fragmentation
This commit is contained in:
3
test/main/CMakeLists.txt
Normal file
3
test/main/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
idf_component_register(SRCS "main.cpp"
|
||||
PRIV_REQUIRES unity nvs_flash
|
||||
INCLUDE_DIRS ".")
|
||||
22
test/main/main.cpp
Normal file
22
test/main/main.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "unity.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "nvs_flash.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
extern "C" [[noreturn]] void app_main(void){
|
||||
ESP_ERROR_CHECK(nvs_flash_init());
|
||||
unity_run_all_tests();
|
||||
|
||||
while(true){
|
||||
//do nothing
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
// for (int i = 5; i >= 0; i--) {
|
||||
// printf("Restarting in %d seconds...\n", i);
|
||||
// vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
// }
|
||||
// printf("Restarting now.\n");
|
||||
// fflush(stdout);
|
||||
// esp_restart();
|
||||
}
|
||||
Reference in New Issue
Block a user