mirror of
https://github.com/LIV2/AVR-PS2-KBC.git
synced 2025-12-06 00:23:47 +00:00
int0 on falling edge
This commit is contained in:
parent
04d7643185
commit
63eb4fe43c
2
ps2kbd.c
2
ps2kbd.c
@ -178,7 +178,7 @@ int main (void) {
|
||||
volatile char ret_char = 0;
|
||||
DDRB &= ~(1 << DDB6 | 1 << DDB5); // PINB6 = PS/2 Clock, PINB5 = PS/2 Data both set as input
|
||||
DDRA |= (0xFF);
|
||||
EICRA |= (1 << ISC01); // Interrupt on Falling Edge
|
||||
MCUCR |= (1 << ISC01); // Interrupt on Falling Edge
|
||||
GIMSK |= (1 << INT0); // Enable Interrupt on PINB2 aka INT0
|
||||
|
||||
sei();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user