git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6761 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
004c5bac06
commit
aa5e4b5e81
|
@ -752,10 +752,10 @@ void gpt_lld_polled_delay(GPTDriver *gptp, gptcnt_t interval) {
|
|||
|
||||
gptp->tim->ARR = (uint32_t)(interval - 1); /* Time constant. */
|
||||
gptp->tim->EGR = STM32_TIM_EGR_UG; /* Update event. */
|
||||
gptp->tim->SR = 0; /* Clear pending IRQs. */
|
||||
gptp->tim->CR1 = STM32_TIM_CR1_OPM | STM32_TIM_CR1_URS | STM32_TIM_CR1_CEN;
|
||||
while (!(gptp->tim->SR & STM32_TIM_SR_UIF))
|
||||
;
|
||||
gptp->tim->SR = 0; /* Clear pending IRQs. */
|
||||
}
|
||||
|
||||
#endif /* HAL_USE_GPT */
|
||||
|
|
Loading…
Reference in New Issue