Skip to content

Commit 9c94bab

Browse files
authored
Add RawDev::interruptMode (#2042)
1 parent ea88740 commit 9c94bab

File tree

7 files changed

+25
-1
lines changed

7 files changed

+25
-1
lines changed

libraries/WiFi/src/utility/nodriver.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ class NoDriver {
4848
return true;
4949
}
5050

51+
PinStatus interruptMode() {
52+
return LOW;
53+
}
54+
5155
constexpr bool needsSPI() const {
5256
return false;
5357
}

libraries/lwIP_CYW43/src/utility/CYW43shim.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ class CYW43 {
9191
return true;
9292
}
9393

94+
PinStatus interruptMode() {
95+
return LOW;
96+
}
97+
9498
void setSSID(const char *p) {
9599
_ssid = p;
96100
}

libraries/lwIP_ESPHost/src/ESPHost.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class ESPHost {
4747
return false;
4848
}
4949

50+
PinStatus interruptMode() {
51+
return HIGH;
52+
}
53+
5054
constexpr bool needsSPI() const {
5155
return false;
5256
}

libraries/lwIP_Ethernet/src/LwipIntfDev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ bool LwipIntfDev<RawDev>::begin(const uint8_t* macAddress, const uint16_t mtu) {
399399
if (RawDev::interruptIsPossible()) {
400400
noInterrupts(); // Ensure this is atomically set up
401401
pinMode(_intrPin, INPUT);
402-
attachInterruptParam(_intrPin, _irq, LOW, (void*)this);
402+
attachInterruptParam(_intrPin, _irq, RawDev::interruptMode(), (void*)this);
403403
__addEthernetGPIO(_intrPin);
404404
interrupts();
405405
} else {

libraries/lwIP_enc28j60/src/utility/enc28j60.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ class ENC28J60 {
102102
return true;
103103
}
104104

105+
static constexpr PinStatus interruptMode() {
106+
return LOW;
107+
}
108+
105109
/**
106110
Read an Ethernet frame size
107111
@return the length of data do receive

libraries/lwIP_w5100/src/utility/w5100.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ class Wiznet5100 {
104104
return true;
105105
}
106106

107+
static constexpr PinStatus interruptMode() {
108+
return LOW;
109+
}
110+
107111
/**
108112
Read an Ethernet frame size
109113
@return the length of data do receive

libraries/lwIP_w5500/src/utility/w5500.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ class Wiznet5500 {
107107
return true;
108108
}
109109

110+
static constexpr PinStatus interruptMode() {
111+
return LOW;
112+
}
113+
110114
/**
111115
Read an Ethernet frame size
112116
@return the length of data do receive

0 commit comments

Comments
 (0)