cpu.c 658 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * File : cpu.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Develop Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-09-15 Bernard first version
  13. */
  14. #include <rthw.h>
  15. #include <rtthread.h>
  16. #include <board.h>
  17. /**
  18. * @addtogroup ARM CPU
  19. */
  20. /*@{*/
  21. /** shutdown CPU */
  22. void rt_hw_cpu_shutdown()
  23. {
  24. rt_uint32_t level;
  25. rt_kprintf("shutdown...\n");
  26. level = rt_hw_interrupt_disable();
  27. while (level)
  28. {
  29. RT_ASSERT(0);
  30. }
  31. }
  32. /*@}*/