• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision12978 (tree)
Time2019-09-08 12:19:27
Authorcinsights

Log Message

Fix STM32G0 EFL driver fixes

Change Summary

Incremental Difference

--- trunk/os/hal/ports/STM32/STM32G0xx/hal_efl_lld.c (revision 12977)
+++ trunk/os/hal/ports/STM32/STM32G0xx/hal_efl_lld.c (revision 12978)
@@ -132,7 +132,7 @@
132132 static inline void stm32_flash_wait_busy(EFlashDriver *eflp) {
133133
134134 /* Wait for busy bit clear.*/
135- while ((eflp->flash->SR & FLASH_SR_BSY) != 0U) {
135+ while ((eflp->flash->SR & FLASH_SR_BSY1) != 0U) {
136136 }
137137 }
138138
@@ -145,6 +145,7 @@
145145 #if STM32_FLASH_NUMBER_OF_BANKS > 1
146146 return ((eflp->flash->SR & (FLASH_OPTR_DBANK | FLASH_OPTR_DB1M)) != 0U);
147147 #endif
148+ (void)eflp;
148149 return false;
149150 }
150151
@@ -517,7 +518,7 @@
517518 if (devp->state == FLASH_ERASE) {
518519
519520 /* Checking for operation in progress.*/
520- if ((devp->flash->SR & FLASH_SR_BSY) == 0U) {
521+ if ((devp->flash->SR & FLASH_SR_BSY1) == 0U) {
521522
522523 /* Disabling the various erase control bits.*/
523524 devp->flash->CR &= ~(FLASH_CR_MER1 |
Show on old repository browser