diff options
| author | Pavol Rusnak | 2016-09-22 21:39:50 +0200 |
|---|---|---|
| committer | Damien George | 2016-10-04 15:38:32 +1100 |
| commit | 8f3cf6e6a873e7c14781200a23efa733c95bc510 (patch) | |
| tree | 5b2393706af47b00d6b1cb1162fcdf98afad9c00 /stmhal/usbd_hid_interface.c | |
| parent | eb239b839855de4f7fbf241635b702773f421b60 (diff) | |
stmhal/usb: Use correct ClassData structure for HID receive.
Diffstat (limited to 'stmhal/usbd_hid_interface.c')
| -rw-r--r-- | stmhal/usbd_hid_interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stmhal/usbd_hid_interface.c b/stmhal/usbd_hid_interface.c index 10e03fa42..04f1b7fd0 100644 --- a/stmhal/usbd_hid_interface.c +++ b/stmhal/usbd_hid_interface.c @@ -47,12 +47,11 @@ static __IO uint8_t dev_is_connected = 0; // indicates if we are connected -static uint8_t buffer[2][64]; // pair of buffers to read individual packets into +static uint8_t buffer[2][HID_DATA_FS_MAX_PACKET_SIZE]; // pair of buffers to read individual packets into static int8_t current_read_buffer = 0; // which buffer to read from static uint32_t last_read_len; // length of last read static int8_t current_write_buffer = 0; // which buffer to write to -static size_t rx_packet_size = 64; // expected size of packets to receive /* Private function prototypes -----------------------------------------------*/ static int8_t HID_Itf_Receive (uint8_t* pbuf, uint32_t Len); |
