summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-04-16 17:07:15 +0700
committerGitHub <[email protected]>2020-04-16 17:07:15 +0700
commit33888519dd3a972fdef21ad259d060ff6cef36db (patch)
treef4b4bfcb3a5177736df7559315e8deb4a4a1d051 /src/device
parentaa5ab50e86dbb64fc0b5cbeafe7b58bc6659688e (diff)
parenta00977574537b987250f7f16ee23ba9def42e051 (diff)
Merge pull request #349 from hathach/nxp-dcd-disconnect
implement Nxp mcu dcd disconnect
Diffstat (limited to 'src/device')
-rw-r--r--src/device/dcd.h6
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;
//--------------------------------------------------------------------+