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