reboot-mode.h 567 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-02-25 GuEe-GUI the first version
  9. */
  10. #ifndef __RESET_REBOOT_MODE_H__
  11. #define __RESET_REBOOT_MODE_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. struct reboot_mode
  15. {
  16. rt_slist_t mode_nodes;
  17. struct rt_device *dev;
  18. rt_err_t (*write)(struct reboot_mode *reboot, rt_uint32_t magic);
  19. };
  20. rt_err_t reboot_mode_register(struct reboot_mode *reboot);
  21. #endif /* __RESET_REBOOT_MODE_H__ */