Fixed bug #775.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_16.1.x@9763 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
eb474b9a4c
commit
36f2492984
|
@ -863,6 +863,7 @@ void gpt_lld_polled_delay(GPTDriver *gptp, gptcnt_t interval) {
|
||||||
|
|
||||||
gptp->tim->ARR = (uint32_t)(interval - 1); /* Time constant. */
|
gptp->tim->ARR = (uint32_t)(interval - 1); /* Time constant. */
|
||||||
gptp->tim->EGR = STM32_TIM_EGR_UG; /* Update event. */
|
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;
|
gptp->tim->CR1 = STM32_TIM_CR1_OPM | STM32_TIM_CR1_URS | STM32_TIM_CR1_CEN;
|
||||||
while (!(gptp->tim->SR & STM32_TIM_SR_UIF))
|
while (!(gptp->tim->SR & STM32_TIM_SR_UIF))
|
||||||
;
|
;
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 16.1.6 ***
|
*** 16.1.6 ***
|
||||||
|
- HAL: Fixed function gpt_lld_polled_delay() is broken on STM32 (bug #775).
|
||||||
- HAL: Fixed invalid output initialization for STM32 DACx channels 2
|
- HAL: Fixed invalid output initialization for STM32 DACx channels 2
|
||||||
(bug #773).
|
(bug #773).
|
||||||
- HAL: Fixed CAN inclusion path missing for STM32F107 (bug #772).
|
- HAL: Fixed CAN inclusion path missing for STM32F107 (bug #772).
|
||||||
|
|
Loading…
Reference in New Issue