Преглед изворни кода

Add pullup to USB interrupt line

- A pullup on the INT pin is required when the pin is level-active
Marcio Teixeira пре 6 година
родитељ
комит
1a00d1bdaf
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      Marlin/src/sd/usb_flashdrive/usb_host.cpp

+ 2
- 2
Marlin/src/sd/usb_flashdrive/usb_host.cpp Прегледај датотеку

@@ -109,8 +109,8 @@ bool MAX3421e::reset() {
109 109
 bool MAX3421e::start() {
110 110
   // Initialize pins and SPI bus
111 111
 
112
-  SET_OUTPUT(SDSS);
113
-  SET_INPUT(USB_INTR_PIN);
112
+  SET_OUTPUT(USB_CS_PIN);
113
+  SET_INPUT_PULLUP(USB_INTR_PIN);
114 114
   ncs();
115 115
   spiBegin();
116 116
 

Loading…
Откажи
Сачувај