Просмотр исходного кода

implement dcd disconnect connect

hathach 6 лет назад
Родитель
Сommit
6377699d77
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      src/portable/valentyusb/eptri/dcd_eptri.c

+ 13 - 0
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
 //--------------------------------------------------------------------+