diff options
| author | Ha Thach <[email protected]> | 2020-04-17 14:35:11 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-17 14:35:11 +0700 |
| commit | 823af6ba95096b0bf3938a2e3877f5f84c72b215 (patch) | |
| tree | 837b018d6f1526b64f0372cb24ddea1ec6e9bf16 /src/device | |
| parent | 85f0894fff89baaaa91a6dc3554a3149fc2fc062 (diff) | |
| parent | 6f9c256ad0e6b030468bd8a8fbfd41801b70a69a (diff) | |
Merge pull request #338 from hathach/remove-dcd-set-config
lpc17xx move set configdevice into set address for removing dcd_set_config()
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 3 | ||||
| -rw-r--r-- | src/device/usbd.c | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 99a0e01ca..68798c259 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -100,9 +100,6 @@ void dcd_int_disable(uint8_t rhport); // Receive Set Address request, mcu port must also include status IN response void dcd_set_address(uint8_t rhport, uint8_t dev_addr); -// Receive Set Configure request -void dcd_set_config (uint8_t rhport, uint8_t config_num); - // Wake up host void dcd_remote_wakeup(uint8_t rhport); diff --git a/src/device/usbd.c b/src/device/usbd.c index 21d520bde..26183c960 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -515,8 +515,6 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const { uint8_t const cfg_num = (uint8_t) p_request->wValue; - dcd_set_config(rhport, cfg_num); - if ( !_usbd_dev.configured && cfg_num ) TU_ASSERT( process_set_config(rhport, cfg_num) ); _usbd_dev.configured = cfg_num ? 1 : 0; |
