2
0

main.c 324 B

12345678910111213141516171819202122
  1. #include "fw.h"
  2. #include "io.h"
  3. #include "abcio.h"
  4. #include "sys.h"
  5. #include "console.h"
  6. volatile bool dont_gc; /* Keep things from linker gc */
  7. void main(void)
  8. {
  9. init();
  10. if (dont_gc)
  11. run_test_image();
  12. while (1) {
  13. wait_for_irq();
  14. if (unlikely(do_write_rtc))
  15. write_rtc();
  16. abcdisk_io_poll();
  17. }
  18. }