cpu.c 449 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * File : cpu.c
  3. * Change Logs:
  4. * Date Author Notes
  5. * 2010-07-09 Bernard first version
  6. */
  7. #include <rtthread.h>
  8. /**
  9. * @addtogroup Jz47xx
  10. */
  11. /*@{*/
  12. /**
  13. * this function will reset CPU
  14. *
  15. */
  16. void rt_hw_cpu_reset()
  17. {
  18. /* open the watch-dog */
  19. }
  20. /**
  21. * this function will shutdown CPU
  22. *
  23. */
  24. void rt_hw_cpu_shutdown()
  25. {
  26. rt_kprintf("shutdown...\n");
  27. while (1);
  28. }
  29. /*@}*/