mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/efm32: fix PM configuration
`cpu/cortexm_common/include/cpu.h` has to be included in `cpu/efm32/periph_cpu.h` so that `PROVIDES_PM_SET_LOWEST` is defined if only `periph_cpu.h` is included. Otherwise `pm_set_lowest` is defined multiple times if the `pm_layered` module is not used. `PROVIDES_PM_OFF` has to be defined in case `pm_layered` is not used, e.g. in riotboot.
This commit is contained in:
parent
c7e6e3714d
commit
dd6c46e289
@ -23,6 +23,7 @@
|
||||
#include "kernel_defines.h"
|
||||
#include "mutex.h"
|
||||
|
||||
#include "cpu.h"
|
||||
#include "cpu_conf.h"
|
||||
|
||||
#if defined(_SILICON_LABS_32B_SERIES_2)
|
||||
@ -640,6 +641,11 @@ typedef struct {
|
||||
IRQn_Type irq; /**< the devices base IRQ channel */
|
||||
} uart_conf_t;
|
||||
|
||||
/**
|
||||
* @brief CPU provides own pm_off() function
|
||||
*/
|
||||
#define PROVIDES_PM_OFF
|
||||
|
||||
/**
|
||||
* @brief CPU provides own pm_off() function
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user