From 4f42a1e950bdc5a35f407db3918440e48dba8cc8 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Mon, 3 Mar 2014 20:54:45 +0100 Subject: [PATCH] OP-1033 added TODOs to validate that f1 USB end points configuration is consistent --- flight/pios/stm32f10x/pios_usbhook.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flight/pios/stm32f10x/pios_usbhook.c b/flight/pios/stm32f10x/pios_usbhook.c index c1173db7d..3090aff2e 100644 --- a/flight/pios/stm32f10x/pios_usbhook.c +++ b/flight/pios/stm32f10x/pios_usbhook.c @@ -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);