Recently, I am learning the ODrive Firmware source code.
I am confused about the function usb_rx_process_packet()
.
void usb_rx_process_packet(uint8_t *buf, uint32_t len, uint8_t endpoint_pair) {
if (endpoint_pair == CDC_OUT_EP && usb_cdc_rx_stream.rx_end_) {
usb_cdc_rx_stream.rx_end_ += len;
osMessagePut(usb_event_queue, 5, 0);
} else if (endpoint_pair == ODRIVE_OUT_EP && usb_native_rx_stream.rx_end_) {
usb_native_rx_stream.rx_end_ += len;
osMessagePut(usb_event_queue, 6, 0);
}
}
In this function, there are only two osMessagePut(usb_event_queue, 6, 0)
and I did not find the code to process the incoming data in buf
.
In the usb task, I also did not find the related code.
Can anyone help me?
Thank you!