HAL_ChibiOS: fixed flash build warning

This commit is contained in:
Andrew Tridgell 2019-02-17 14:26:30 +11:00
parent 9379e2c1ad
commit 5f88340919

View File

@ -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;