diff options
| author | hathach <[email protected]> | 2020-04-16 15:52:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-16 15:52:45 +0700 |
| commit | 969121df4f1025481cfe085397c8dede454f4537 (patch) | |
| tree | 3f308c1bea9232b6c1321312a96ebe991dc45220 /src/device/dcd.h | |
| parent | aa5ab50e86dbb64fc0b5cbeafe7b58bc6659688e (diff) | |
added dcd disconnect/connect to lpc17/40
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index f4e6edb95..08b217fa9 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -106,10 +106,10 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num); // Wake up host void dcd_remote_wakeup(uint8_t rhport); -// Connect or disconnect D+/D- line pull-up resistor. -// Defined in dcd source if MCU has internal pull-up. -// Otherwise, may be defined in BSP. +// Connect by enabling internal pull-up resistor on D+/D- void dcd_connect(uint8_t rhport) TU_ATTR_WEAK; + +// Disconnect by disabling internal pull-up resistor on D+/D- void dcd_disconnect(uint8_t rhport) TU_ATTR_WEAK; //--------------------------------------------------------------------+ |
