|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
|
* Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de
|
|
|
|
|
* 2017 Freie Universität Berlin
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
@ -14,22 +15,18 @@
|
|
|
|
|
* @brief common periph/pm functions
|
|
|
|
|
*
|
|
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
|
*
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
|
#include "periph/pm.h"
|
|
|
|
|
|
|
|
|
|
#ifndef FEATURES_PERIPH_PM
|
|
|
|
|
void pm_set_lowest(void)
|
|
|
|
|
{
|
|
|
|
|
/* Executes a device DSB (Data Synchronization Barrier) */
|
|
|
|
|
__DSB();
|
|
|
|
|
/* Enter standby mode */
|
|
|
|
|
__WFI();
|
|
|
|
|
cortexm_sleep(0);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|