Fixed the 'attribute' warning in H7 libraries. (#9237)
Fixed the 'attribute' warning in H7 libraries.
This commit is contained in:
commit
4e11d1e382
|
@ -931,7 +931,7 @@ HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uin
|
|||
count32b = ((uint32_t)len + 3U) / 4U;
|
||||
for (i = 0U; i < count32b; i++)
|
||||
{
|
||||
USBx_DFIFO((uint32_t)ch_ep_num) = *((__packed uint32_t *)pSrc);
|
||||
USBx_DFIFO((uint32_t)ch_ep_num) = *((uint32_t *)pSrc);
|
||||
pSrc++;
|
||||
}
|
||||
}
|
||||
|
@ -960,7 +960,7 @@ void *USB_ReadPacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len)
|
|||
|
||||
for (i = 0U; i < count32b; i++)
|
||||
{
|
||||
*(__packed uint32_t *)pDest = USBx_DFIFO(0U);
|
||||
*(uint32_t *)pDest = USBx_DFIFO(0U);
|
||||
pDest++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue