cpu.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /******************************************************************//**
  2. * @file cpu.c
  3. * @brief This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2011, RT-Thread Development Team
  5. * @author Bernard, onelife
  6. * @version 0.4 beta
  7. **********************************************************************
  8. * @section License
  9. * The license and distribution terms for this file may be found in the file LICENSE in this
  10. * distribution or at http://www.rt-thread.org/license/LICENSE
  11. **********************************************************************
  12. * @section Change Logs
  13. * Date Author Notes
  14. * 2009-01-05 Bernard first version
  15. * 2011-02-14 onelife Modify for EFM32
  16. *********************************************************************/
  17. /******************************************************************//**
  18. * @addtogroup cortex-m3
  19. * @{
  20. *********************************************************************/
  21. /* Includes -------------------------------------------------------------------*/
  22. #include <rtthread.h>
  23. /* Private typedef -------------------------------------------------------------*/
  24. /* Private define --------------------------------------------------------------*/
  25. /* Private macro --------------------------------------------------------------*/
  26. /* Private variables ------------------------------------------------------------*/
  27. /* Private function prototypes ---------------------------------------------------*/
  28. /* Private functions ------------------------------------------------------------*/
  29. /**
  30. * reset cpu by dog's time-out
  31. *
  32. */
  33. void rt_hw_cpu_reset()
  34. {
  35. /*NOTREACHED*/
  36. }
  37. /**
  38. * shutdown CPU
  39. *
  40. */
  41. void rt_hw_cpu_shutdown()
  42. {
  43. rt_kprintf("shutdown...\n");
  44. RT_ASSERT(0);
  45. }
  46. /******************************************************************//**
  47. * @}
  48. *********************************************************************/