Add pullup to USB interrupt line

- A pullup on the INT pin is required when the pin is level-active
This commit is contained in:
Marcio Teixeira 2018-10-23 14:12:42 -06:00 committed by Scott Lahteine
parent a07ac6312f
commit 1a00d1bdaf

View File

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