pmcon.c 209 B

123456789101112131415
  1. #include <rtthread.h>
  2. static void reboot()
  3. {
  4. rt_hw_cpu_reset();
  5. }
  6. MSH_CMD_EXPORT(reboot, reboot sample);
  7. static void poweroff()
  8. {
  9. rt_hw_cpu_shutdown();
  10. }
  11. MSH_CMD_EXPORT(poweroff, shutdown power sample);