aboutsummaryrefslogtreecommitdiffstats
path: root/cfg/chconf.h
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-09-17 07:26:50 -0400
committerClyne Sullivan <clyne@bitgloo.com>2021-09-17 07:26:50 -0400
commitc61598fe95bb188ca28f1710dd8a42907bb797cb (patch)
tree42be7889b8e873775ef656ddae98cb2e6b5e4b3e /cfg/chconf.h
parent6790246c3c731e88094161a594c9c70a3f7903f4 (diff)
use rtc for timing
Diffstat (limited to 'cfg/chconf.h')
-rw-r--r--cfg/chconf.h14
1 files changed, 7 insertions, 7 deletions
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.