mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
cleanup a pointless use of __packed (gcc 8.2 warning)
This commit is contained in:
parent
e7f48816da
commit
f021a4d5ee
1 changed files with 344 additions and 344 deletions
|
@ -180,7 +180,7 @@ USB_OTG_STS USB_OTG_WritePacket(USB_OTG_CORE_HANDLE *pdev,
|
||||||
fifo = pdev->regs.DFIFO[ch_ep_num];
|
fifo = pdev->regs.DFIFO[ch_ep_num];
|
||||||
for (i = 0; i < count32b; i++)
|
for (i = 0; i < count32b; i++)
|
||||||
{
|
{
|
||||||
USB_OTG_WRITE_REG32( fifo, *((__packed uint32_t *)src) );
|
USB_OTG_WRITE_REG32( fifo, *((uint32_t *)src) );
|
||||||
src+=4;
|
src+=4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -206,7 +206,7 @@ void *USB_OTG_ReadPacket(USB_OTG_CORE_HANDLE *pdev,
|
||||||
|
|
||||||
for( i = 0; i < count32b; i++)
|
for( i = 0; i < count32b; i++)
|
||||||
{
|
{
|
||||||
*(__packed uint32_t *)dest = USB_OTG_READ_REG32(fifo);
|
*(uint32_t *)dest = USB_OTG_READ_REG32(fifo);
|
||||||
dest += 4 ;
|
dest += 4 ;
|
||||||
}
|
}
|
||||||
return ((void *)dest);
|
return ((void *)dest);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue