#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();
    }
}