1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core/reboot.c
Hauke Petersen 608afc4777 Introduced a cleaned-up cpu/core interface
- Included a collection of cpu-dependent headers in core/include/arch
- Extracted all interfaces that need to be implemented for a cpu
- Created a mapping between those interfaces and the old ones
- added flag for disabling arch interface
- added missing state to lpm_arch interface
- added arch interface for reboot
- fixed newline issues that were pointed out
- documentation fixes to cpu-core interface
2014-05-09 16:01:13 +02:00

32 lines
550 B
C

/*
* Copyright (C) 2014 Ludwig Ortmann
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup core_util
* @{
*
* @file reboot.c
* @brief Reboot function
*
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de
*
* @}
*/
#include "kernel.h"
#include "arch/reboot_arch.h"
int reboot(int mode)
{
if (mode != RB_AUTOBOOT) {
return -1;
}
return reboot_arch(mode);
}