BigTreeTech GTR V1.0 / Support 8 extruders, heaters, temp sensors, fans (#16595)
This commit is contained in:
committed by
Scott Lahteine
parent
0d166f9c7d
commit
248b7dfa59
@@ -66,7 +66,7 @@
|
||||
* @return value read
|
||||
*/
|
||||
FORCE_INLINE static bool fastDigitalRead(uint8_t pin) {
|
||||
return g_APinDescription[pin].pPort->PIO_PDSR & g_APinDescription[pin].ulPin;
|
||||
return digitalRead(pin);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,10 +75,7 @@
|
||||
* @param[in] level value to write
|
||||
*/
|
||||
FORCE_INLINE static void fastDigitalWrite(uint8_t pin, bool value) {
|
||||
if (value)
|
||||
g_APinDescription[pin].pPort->PIO_SODR = g_APinDescription[pin].ulPin;
|
||||
else
|
||||
g_APinDescription[pin].pPort->PIO_CODR = g_APinDescription[pin].ulPin;
|
||||
digitalWrite(pin, value);
|
||||
}
|
||||
|
||||
#endif // !CORE_TEENSY
|
||||
|
||||
Reference in New Issue
Block a user