custom bootloader code and starting app as task

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-04-12 01:28:08 +02:00
parent fa5b4da0f5
commit e5e602d1fc
6 changed files with 88 additions and 9 deletions

View File

@@ -1,14 +1,19 @@
#include "setup.h"
#include "freertos/idf_additions.h"
#ifdef __cplusplus
extern "C" {
#endif
void app_main(void) {
void app_task(void* param) {
setup();
while(1) {
loop();
}
}
#ifdef __cplusplus
extern "C" {
#endif
void app_main(void) {
xTaskCreatePinnedToCore(app_task, "main_loop", 4096, NULL, 5, NULL, tskIDLE_PRIORITY + 1);
}
#ifdef __cplusplus
}
#endif