mirror of
https://github.com/sipeed/Maixduino.git
synced 2026-03-19 08:26:55 +01:00
28 lines
357 B
C++
28 lines
357 B
C++
|
|
#define ARDUINO_MAIN
|
|
#include "Arduino.h"
|
|
#include "encoding.h"
|
|
|
|
|
|
#define cmb() __asm__ __volatile__ ("" ::: "memory")
|
|
|
|
|
|
/*
|
|
* \brief Main entry point of Arduino application
|
|
*/
|
|
int main( void )
|
|
{
|
|
pll_init();
|
|
plic_init();
|
|
uarths_init();
|
|
setup();
|
|
|
|
do {
|
|
loop();
|
|
//if (serialEventRun)
|
|
// serialEventRun();
|
|
} while (1);
|
|
|
|
return 0;
|
|
}
|