2014-09-24 00:49:17 +02:00
|
|
|
/*
|
2015-05-18 18:47:17 +02:00
|
|
|
* Copyright (C) 2014-2015 Freie Universität Berlin
|
2015-07-30 10:32:08 +02:00
|
|
|
* 2015 Kaspar Schleiser <kaspar@schleiser.de>
|
2014-09-24 00:49:17 +02:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-05-18 18:47:17 +02:00
|
|
|
* @ingroup cpu_cortexm_common
|
2014-09-24 00:49:17 +02:00
|
|
|
* @{
|
|
|
|
*
|
2014-11-20 13:34:00 +01:00
|
|
|
* @file
|
2014-09-24 00:49:17 +02:00
|
|
|
* @brief Implementation of the kernels reboot interface
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2015-07-30 10:32:08 +02:00
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
2014-09-24 00:49:17 +02:00
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
|
2015-09-29 13:41:33 +02:00
|
|
|
void reboot(void)
|
2014-09-24 00:49:17 +02:00
|
|
|
{
|
|
|
|
NVIC_SystemReset();
|
|
|
|
}
|