mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
HAL_ChibiOS: fixed H7 build with older compilers
This commit is contained in:
parent
70930cca29
commit
26e76e51ed
@ -398,7 +398,8 @@ static bool stm32h7_flash_write32(uint32_t addr, const void *buf)
|
||||
*CR |= FLASH_CR_PG;
|
||||
|
||||
const uint32_t *v = (const uint32_t *)buf;
|
||||
for (uint8_t i=0; i<8; i++) {
|
||||
uint8_t i;
|
||||
for (i=0; i<8; i++) {
|
||||
while (*SR & (FLASH_SR_BSY|FLASH_SR_QW)) ;
|
||||
putreg32(*v, addr);
|
||||
v++;
|
||||
|
Loading…
Reference in New Issue
Block a user