TODO for H7

This commit is contained in:
Andrey Gusakov 2024-02-24 16:08:25 +03:00 committed by rusefillc
parent 2644147655
commit 8e45c4982b
1 changed files with 3 additions and 0 deletions

View File

@ -65,7 +65,10 @@ void portInitMicrosecondTimer() {
/* TODO: implement for all possible TIMs */
if (SCHEDULER_TIMER_DEVICE == TIM5) {
/* stop timers clock when core is halted */
#if defined(STM32F4XX) || defined (STM32F7XX)
DBGMCU->APB1FZ |= DBGMCU_APB1_FZ_DBG_TIM5_STOP;
#endif
/* TODO: stm32h7? */
}
}