mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Add a reboot() function to kernel.h definitions.
This commit is contained in:
parent
3968ccffa8
commit
e7d19fd2be
@ -13,6 +13,8 @@
|
||||
* @file kernel.h
|
||||
* @brief Kernel compile time configuration
|
||||
*
|
||||
* A reboot() function is also provided (and used by panic() when needed).
|
||||
*
|
||||
* @author Freie Universität Berlin, Computer Systems & Telematics
|
||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*/
|
||||
@ -86,5 +88,22 @@ extern volatile int lpm_prevent_sleep;
|
||||
|
||||
extern config_t sysconfig;
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
#define NORETURN /* insert other compiler attributes/pragmas/whatever here */
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Immediately reboots the system.
|
||||
*
|
||||
* This function is used by panic() when the DEVELHELP macro is not defined.
|
||||
*
|
||||
* @return WARNING: this function NEVER returns!
|
||||
*/
|
||||
NORETURN void reboot(void);
|
||||
|
||||
/** @} */
|
||||
#endif /* KERNEL_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user