cpu/stm32: use common pm_off() function
The code is identical to the one found in sys/pm_layered/pm.c
This commit is contained in:
parent
b6c96b101b
commit
f12a82e4f9
@ -98,11 +98,6 @@ extern "C" {
|
||||
#define CPUID_ADDR (UID_BASE)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief We provide our own pm_off() function for all STM32-based CPUs
|
||||
*/
|
||||
#define PROVIDES_PM_LAYERED_OFF
|
||||
|
||||
/**
|
||||
* @brief All STM timers have 4 capture-compare channels
|
||||
*/
|
||||
|
||||
@ -151,9 +151,3 @@ void pm_set(unsigned mode)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void pm_off(void)
|
||||
{
|
||||
irq_disable();
|
||||
pm_set(0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user