mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Merge pull request #3717 from iNavFlight/jh_f7_gcc8.2_packed_cleanup
minor gcc 8.2 cleanup for unnecessary use of packed in f7 USB driver
This commit is contained in:
commit
6f860b6e45
1 changed files with 304 additions and 304 deletions
|
@ -817,7 +817,7 @@ HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uin
|
|||
count32b = (len + 3) / 4;
|
||||
for (i = 0; i < count32b; i++, src += 4)
|
||||
{
|
||||
USBx_DFIFO(ch_ep_num) = *((__packed uint32_t *)src);
|
||||
USBx_DFIFO(ch_ep_num) = *((uint32_t *)src);
|
||||
}
|
||||
}
|
||||
return HAL_OK;
|
||||
|
@ -843,7 +843,7 @@ void *USB_ReadPacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len)
|
|||
|
||||
for ( i = 0; i < count32b; i++, dest += 4 )
|
||||
{
|
||||
*(__packed uint32_t *)dest = USBx_DFIFO(0);
|
||||
*(uint32_t *)dest = USBx_DFIFO(0);
|
||||
|
||||
}
|
||||
return ((void *)dest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue