Changeset 071dc14 in avrstuff for libs/ps2_keyboard/ps2_keyboard.c
- Timestamp:
- Jul 23, 2014, 11:15:52 PM (10 years ago)
- Branches:
- main
- Children:
- c2c5ac9
- Parents:
- c57dd4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libs/ps2_keyboard/ps2_keyboard.c
rc57dd4c r071dc14 45 45 ISR(INT1_vect) 46 46 { 47 PORTD ^= (1<<PD6);48 47 //make sure clock line is low, if not ignore this transition 49 48 if(PS2_PORT & (1<<PS2_CLK)){ … … 131 130 MCUCR |= (1<<ISC11); // Falling edge 132 131 MCUCR &= ~(1<<ISC10); 132 #ifdef __AVR_ATmega48P__ 133 EIMSK |= (1<<INT1); 134 #else 133 135 GIMSK |= (1<<INT1); 136 #endif 134 137 135 138 sei();
Note:
See TracChangeset
for help on using the changeset viewer.