mirror of
https://github.com/ole00/afterburner.git
synced 2024-11-29 22:49:28 +00:00
sketch: GAL20V8 - disable pull-up on DOUT when inactive
This commit is contained in:
parent
8d12ec9e58
commit
5bcb23f1a2
@ -328,7 +328,8 @@ static void setPinMux(uint8_t pm) {
|
|||||||
pinMode(PIN_ZIF11, pm);
|
pinMode(PIN_ZIF11, pm);
|
||||||
pinMode(PIN_ZIF13, pm);
|
pinMode(PIN_ZIF13, pm);
|
||||||
pinMode(PIN_ZIF14, pm);
|
pinMode(PIN_ZIF14, pm);
|
||||||
pinMode(PIN_ZIF15, INPUT_PULLUP); //DOUT
|
// ensure pull-up is enabled during reading and disabled when inactive
|
||||||
|
pinMode(PIN_ZIF15, pm == OUTPUT ? INPUT_PULLUP: INPUT); //DOUT
|
||||||
pinMode(PIN_ZIF16, pm);
|
pinMode(PIN_ZIF16, pm);
|
||||||
// ensure ZIF10 GND pull is disabled
|
// ensure ZIF10 GND pull is disabled
|
||||||
digitalWrite(PIN_ZIF_GND_CTRL, LOW);
|
digitalWrite(PIN_ZIF_GND_CTRL, LOW);
|
||||||
|
Loading…
Reference in New Issue
Block a user