mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-1033 attempt at fixing the f1 usb buffer configuration (current configuration has overlapping buffer that cause tx errors)
This commit is contained in:
parent
ef137a27b3
commit
ec1ecc020e
@ -39,7 +39,7 @@
|
||||
/* EP1 (HID) */
|
||||
/* rx/tx buffer base address */
|
||||
#define ENDP1_TXADDR (0x60)
|
||||
#define ENDP1_RXADDR (0x80)
|
||||
#define ENDP1_RXADDR (0xA0)
|
||||
|
||||
/* EP2 (CDC Call Control) */
|
||||
/* rx/tx buffer base address */
|
||||
|
@ -200,12 +200,10 @@ 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user