From fd89c3cd9c38a6c64ee5dec9c9ab9bb33cf75f3d Mon Sep 17 00:00:00 2001 From: smlng Date: Fri, 20 Oct 2017 10:51:33 +0200 Subject: [PATCH] cpu, cc26x0: fix pm, don't go into cortexm_sleep(0) --- cpu/cc26x0/include/periph_cpu.h | 7 +++++++ cpu/cc26x0/periph/pm.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 cpu/cc26x0/periph/pm.c diff --git a/cpu/cc26x0/include/periph_cpu.h b/cpu/cc26x0/include/periph_cpu.h index 7bd8e4e0a0..05ac958f62 100644 --- a/cpu/cc26x0/include/periph_cpu.h +++ b/cpu/cc26x0/include/periph_cpu.h @@ -34,6 +34,13 @@ extern "C" { */ #define CPUID_LEN (16U) +/** + * @name Power management configuration + * @{ + */ +#define PROVIDES_PM_SET_LOWEST_CORTEXM +/** @} */ + #ifndef DOXYGEN /** * @brief Override GPIO mode values diff --git a/cpu/cc26x0/periph/pm.c b/cpu/cc26x0/periph/pm.c new file mode 100644 index 0000000000..19c0d5fa4e --- /dev/null +++ b/cpu/cc26x0/periph/pm.c @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2017 Kaspar Schleiser + * @author Hauke Petersen + * + * @} + */ + +#include "cpu.h" +#include "periph/pm.h" + +#ifdef PROVIDES_PM_SET_LOWEST_CORTEXM +void pm_set_lowest(void) +{ + /* don't do anything here */ +} +#endif