diff options
| author | hathach <[email protected]> | 2020-04-16 22:30:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-16 22:30:33 +0700 |
| commit | 6377699d77b5b6dcadef4ce3a30ee613fef37729 (patch) | |
| tree | eae4b6347676d4209d5e507e6803178897c084d0 /src/portable | |
| parent | bb2669fbc052229db8c2192b538a13cda92101ad (diff) | |
implement dcd disconnect connect
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/valentyusb/eptri/dcd_eptri.c | 13 |
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 //--------------------------------------------------------------------+ |
