1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1033 added TODOs to validate that f1 USB end points configuration is consistent

This commit is contained in:
Philippe Renon 2014-03-03 20:54:45 +01:00
parent e9dc5fac9a
commit 4f42a1e950

View File

@ -200,10 +200,12 @@ static void PIOS_USBHOOK_Reset(void)
#if defined(PIOS_INCLUDE_USB_HID)
/* Initialize Endpoint 1 (HID) */
SetEPType(ENDP1, EP_INTERRUPT);
// TODO Validate that address and length are consistent
SetEPTxAddr(ENDP1, ENDP1_TXADDR);
SetEPTxCount(ENDP1, PIOS_USB_BOARD_HID_DATA_LENGTH);
SetEPTxStatus(ENDP1, EP_TX_NAK);
// TODO Validate that address and length are consistent
SetEPRxAddr(ENDP1, ENDP1_RXADDR);
SetEPRxCount(ENDP1, PIOS_USB_BOARD_HID_DATA_LENGTH);
SetEPRxStatus(ENDP1, EP_RX_VALID);