2
0

shutdown.c 307 B

1234567891011121314151617
  1. #include "common.h"
  2. #include "io.h"
  3. #include "abcio.h"
  4. #include "ff.h"
  5. #include "console.h"
  6. /*
  7. * Do a clean shutdown and reboot
  8. */
  9. no_return shutdown(unsigned int type)
  10. {
  11. /* Finish any SD card I/O and unmount the SD card */
  12. abcdisk_shutdown();
  13. con_puts("Rebooting...\n");
  14. reset(type);
  15. }