summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-13 23:14:48 +0700
committerhathach <[email protected]>2019-03-13 23:14:48 +0700
commiteda56769b9126460f7721a9b3f04d4e4f6efd60d (patch)
tree7a1d6bdde8db8af92b9e16583982eabbf0eff43e /src/device/usbd_control.c
parent195a44172a964b377330bc7f269b611bb920fdc7 (diff)
dcd_set_address include status response, usbd control stall both control in and out
Diffstat (limited to 'src/device/usbd_control.c')
-rw-r--r--src/device/usbd_control.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index ae7e894b7..f06c44f02 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -74,7 +74,9 @@ void usbd_control_reset (uint8_t rhport)
void usbd_control_stall(uint8_t rhport)
{
- dcd_edpt_stall(rhport, 0);
+ // when stalling control endpoint both IN and OUt will be stalled
+ dcd_edpt_stall(rhport, EDPT_CTRL_OUT);
+ dcd_edpt_stall(rhport, EDPT_CTRL_IN);
}
bool usbd_control_status(uint8_t rhport, tusb_control_request_t const * request)