pullup for bootloader-key, now the bootloader exits if the key is released
This commit is contained in:
parent
941fbef701
commit
cc61962875
@ -140,6 +140,8 @@ static inline void bootLoaderInit(void) {
|
|||||||
// and later look for column 7
|
// and later look for column 7
|
||||||
DDRA = 0x00;
|
DDRA = 0x00;
|
||||||
PORTA = 0xff;
|
PORTA = 0xff;
|
||||||
|
DDRB &= ~(1 << PB7);
|
||||||
|
PORTB |= (1 << PB7);
|
||||||
DDRC = (1 << DDC2);
|
DDRC = (1 << DDC2);
|
||||||
PORTC = ~(1 << PINC2);
|
PORTC = ~(1 << PINC2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user