Align board project names with board ids (#399)
To avoid keeping track of a list that maps board project names to board ids. Because of this change, we don't have to manually edit `boards.cmake` anymore when adding a new board.
This commit is contained in:
committed by
GitHub
parent
efd3c6041c
commit
61277e74b8
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "Main.h"
|
||||
|
||||
namespace simulator {
|
||||
/** Set the function pointer of the real app_main() */
|
||||
void setMain(MainFunction mainFunction);
|
||||
/** The actual main task */
|
||||
void freertosMain();
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
void app_main(); // ESP-IDF's main function, implemented in the application
|
||||
}
|
||||
|
||||
int main() {
|
||||
// Actual main function that passes on app_main() (to be executed in a FreeRTOS task) and bootstraps FreeRTOS
|
||||
simulator::setMain(app_main);
|
||||
simulator::freertosMain();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user