Browse Source

HAL_ChibiOS: fixed flash build warning

master
Andrew Tridgell 6 years ago
parent
commit
5f88340919
  1. 4
      libraries/AP_HAL_ChibiOS/hwdef/common/flash.c

4
libraries/AP_HAL_ChibiOS/hwdef/common/flash.c

@ -399,9 +399,7 @@ static bool stm32h7_flash_write32(uint32_t addr, const void *buf) @@ -399,9 +399,7 @@ static bool stm32h7_flash_write32(uint32_t addr, const void *buf)
const uint32_t *v = (const uint32_t *)buf;
for (uint8_t i=0; i<8; i++) {
while ((FLASH->SR1 & (FLASH_SR_BSY|FLASH_SR_QW)) ||
(FLASH->SR2 & (FLASH_SR_BSY|FLASH_SR_QW))) { // nop
}
while (*SR & (FLASH_SR_BSY|FLASH_SR_QW)) ;
putreg32(*v, addr);
v++;
addr += 4;

Loading…
Cancel
Save