#include "r_smc_entry.h" #include "MultiSuperLoop.h" void main(void); void main2(void); uint32_t ustack2[256 / sizeof(uint32_t)]; /* The stack should be 4 bytes alignment. */ volatile int32_t debug; /* The `volatile` keyword is for debug purpose. */ volatile int32_t debug2; /* The `volatile` keyword is for debug purpose. */ void main(void) { MultiSuperLoop_Add_Loop1( main2, (uint8_t *)ustack2 + sizeof(ustack2) ); volatile int32_t autovar_debug; /* The `volatile` keyword is for debug purpose. */ autovar_debug = 1; for (;;) { debug = autovar_debug++; if (2000000000 <= autovar_debug) { autovar_debug = 1; } //MultiSuperLoop_Yield(); if (0 >= autovar_debug || 2000000000 <= autovar_debug) { for (;;) { nop(); } } } } void main2(void) { volatile int32_t autovar_debug2; /* The `volatile` keyword is for debug purpose. */ autovar_debug2 = -1; for (;;) { debug2 = autovar_debug2--; if (-2000000000 >= autovar_debug2) { autovar_debug2 = -1; } //MultiSuperLoop_Yield(); if (0 <= autovar_debug2 || -2000000000 >= autovar_debug2) { for (;;) { nop(); } } } }