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:
Benjamin Valentin 2021-01-27 14:07:22 +01:00
parent b6c96b101b
commit f12a82e4f9
2 changed files with 0 additions and 11 deletions

View File

@ -98,11 +98,6 @@ extern "C" {
#define CPUID_ADDR (UID_BASE) #define CPUID_ADDR (UID_BASE)
#endif #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 * @brief All STM timers have 4 capture-compare channels
*/ */

View File

@ -151,9 +151,3 @@ void pm_set(unsigned mode)
#endif #endif
} }
} }
void pm_off(void)
{
irq_disable();
pm_set(0);
}