From c61598fe95bb188ca28f1710dd8a42907bb797cb Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 17 Sep 2021 07:26:50 -0400 Subject: use rtc for timing --- cfg/chconf.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cfg/chconf.h') diff --git a/cfg/chconf.h b/cfg/chconf.h index dc2ccc1..25d444a 100644 --- a/cfg/chconf.h +++ b/cfg/chconf.h @@ -451,11 +451,11 @@ * @note This macro can be used to activate a power saving mode. */ #define CH_CFG_IDLE_ENTER_HOOK() { \ - RCC->ICSCR = (RCC->ICSCR & ~RCC_ICSCR_MSIRANGE_Msk); \ - while (!(RCC->CR & RCC_CR_MSIRDY)); \ - PWR->CR &= ~PWR_CR_LPRUN; \ - PWR->CR |= PWR_CR_LPRUN; \ } +// RCC->ICSCR = (RCC->ICSCR & ~RCC_ICSCR_MSIRANGE_Msk); +// while (!(RCC->CR & RCC_CR_MSIRDY)); +// PWR->CR &= ~PWR_CR_LPRUN; +// PWR->CR |= PWR_CR_LPRUN; /** * @brief Idle thread leave hook. @@ -464,10 +464,10 @@ * @note This macro can be used to deactivate a power saving mode. */ #define CH_CFG_IDLE_LEAVE_HOOK() { \ - RCC->ICSCR |= 6 << RCC_ICSCR_MSIRANGE_Pos; \ - while (!(RCC->CR & RCC_CR_MSIRDY)); \ - PWR->CR &= ~PWR_CR_LPRUN; \ } +// RCC->ICSCR |= 6 << RCC_ICSCR_MSIRANGE_Pos; +// while (!(RCC->CR & RCC_CR_MSIRDY)); +// PWR->CR &= ~PWR_CR_LPRUN; /** * @brief System halt hook. -- cgit v1.2.3