Co-authored-by: KLASSENTS <klassen@elron.tech> Co-committed-by: KLASSENTS <klassen@elron.tech>
21 lines
366 B
C++
21 lines
366 B
C++
#define ARDUINO_MAIN
|
|
|
|
#include "Arduino.h"
|
|
|
|
// Weak empty variant initialization function.
|
|
// May be redefined by variant files.
|
|
void initVariant() __attribute__((weak));
|
|
void initVariant() { }
|
|
|
|
extern "C" int main(void) __attribute__((weak));
|
|
int main()
|
|
{
|
|
initVariant(); // for freeRTOS
|
|
setup();
|
|
post_init();
|
|
|
|
while (1)
|
|
{
|
|
loop();
|
|
}
|
|
} |