mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
HAL_ChibiOS: fixed flash build warning
This commit is contained in:
parent
9379e2c1ad
commit
5f88340919
@ -399,9 +399,7 @@ static bool stm32h7_flash_write32(uint32_t addr, const void *buf)
|
|||||||
|
|
||||||
const uint32_t *v = (const uint32_t *)buf;
|
const uint32_t *v = (const uint32_t *)buf;
|
||||||
for (uint8_t i=0; i<8; i++) {
|
for (uint8_t i=0; i<8; i++) {
|
||||||
while ((FLASH->SR1 & (FLASH_SR_BSY|FLASH_SR_QW)) ||
|
while (*SR & (FLASH_SR_BSY|FLASH_SR_QW)) ;
|
||||||
(FLASH->SR2 & (FLASH_SR_BSY|FLASH_SR_QW))) { // nop
|
|
||||||
}
|
|
||||||
putreg32(*v, addr);
|
putreg32(*v, addr);
|
||||||
v++;
|
v++;
|
||||||
addr += 4;
|
addr += 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user