Marc Kleine-Budde f418aa362c usbd_gs_can: clean up send to host path
The USBD_GS_CAN_SendToHost() function is used to send to struct
gs_host_frame_object to the host.

Until this patch, after the sending process has been started, the
outgoing frame object is already added to the list of free objects and
the variable USBD_GS_CAN_HandleTypeDef::TxState is used to track if
the transfer to the host is in progress.

Instead, hold the outgoing object in
USBD_GS_CAN_HandleTypeDef::to_host_buf and move it to the free list
after the transfer is finished in USBD_GS_CAN_DataIn(). Use this to
track if a transfer is ongoing.
2024-01-30 11:48:52 +01:00
..
2022-08-25 09:36:41 +02:00
2023-05-10 17:29:19 +02:00
2022-11-28 11:39:45 -05:00
2022-08-25 09:36:41 +02:00
2022-10-12 17:28:50 -04:00
2023-07-19 10:39:37 +02:00
2023-07-19 10:39:37 +02:00
2022-10-11 19:27:57 -04:00