summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-04-17 09:52:29 +0700
committerGitHub <[email protected]>2020-04-17 09:52:29 +0700
commit4bbbba48cbcd1aa655e1f7367f39d5c22e89a8d9 (patch)
tree8f2392ca28bf97a3525c82e3039ab48ff71ef17d /src
parent19e2eb66c0181581010d0e26f2a29bf52268ff73 (diff)
parent989cca5b1ad392f1d42b89899628e8723e3d70a9 (diff)
Merge pull request #351 from hathach/valentyusb-dcd-disconnect-connect
Valentyusb dcd disconnect connect
Diffstat (limited to 'src')
-rw-r--r--src/portable/valentyusb/eptri/dcd_eptri.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/portable/valentyusb/eptri/dcd_eptri.c b/src/portable/valentyusb/eptri/dcd_eptri.c
index 1054e71d6..1e7219a1f 100644
--- a/src/portable/valentyusb/eptri/dcd_eptri.c
+++ b/src/portable/valentyusb/eptri/dcd_eptri.c
@@ -397,6 +397,19 @@ void dcd_remote_wakeup(uint8_t rhport)
(void) rhport;
}
+void dcd_connect(uint8_t rhport)
+{
+ (void) rhport;
+ usb_pullup_out_write(1);
+}
+
+void dcd_disconnect(uint8_t rhport)
+{
+ (void) rhport;
+ usb_pullup_out_write(0);
+}
+
+
//--------------------------------------------------------------------+
// DCD Endpoint Port
//--------------------------------------------------------------------+