diff options
| author | William D. Jones <[email protected]> | 2019-09-11 14:14:02 -0400 |
|---|---|---|
| committer | William D. Jones <[email protected]> | 2019-09-11 14:14:02 -0400 |
| commit | 6b79f399a1ed46c35ca79fbd9213236ba0172bea (patch) | |
| tree | 130d801d38c2f4ede97e5cf212614b526207ad01 /src/device | |
| parent | fc10ff2f056684eb570b74f51e10bf21adbf5805 (diff) | |
| parent | 2683d60b3310a97d657bbe9898313352251b338a (diff) | |
Merge branch 'master' of https://github.com/hathach/tinyusb into pyboard
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd_control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c index f4b9d6219..4ec432185 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -51,7 +51,7 @@ typedef struct static usbd_control_xfer_t _control_state;
-CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN uint8_t _usbd_ctrl_buf[CFG_TUD_ENDOINT0_SIZE];
+CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN uint8_t _usbd_ctrl_buf[CFG_TUD_ENDPOINT0_SIZE];
void usbd_control_reset (uint8_t rhport)
{
@@ -68,7 +68,7 @@ bool tud_control_status(uint8_t rhport, tusb_control_request_t const * request) // Each transaction is up to endpoint0's max packet size
static bool start_control_data_xact(uint8_t rhport)
{
- uint16_t const xact_len = tu_min16(_control_state.total_len - _control_state.total_transferred, CFG_TUD_ENDOINT0_SIZE);
+ uint16_t const xact_len = tu_min16(_control_state.total_len - _control_state.total_transferred, CFG_TUD_ENDPOINT0_SIZE);
uint8_t ep_addr = EDPT_CTRL_OUT;
|
