Changeset ea32107 in avrstuff for libs/ps2_keyboard/ps2_keyboard.c
- Timestamp:
- Jul 31, 2014, 10:13:43 PM (10 years ago)
- Branches:
- main
- Children:
- 87ab18e
- Parents:
- c7cc629
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libs/ps2_keyboard/ps2_keyboard.c
rc7cc629 rea32107 21 21 #define PS2_PORT PIND 22 22 #define PS2_CLK PD3 /* Also INT1 */ 23 24 #ifdef __AVR_ATtiny2313__ 25 // K4KUSB modified board 26 #define PS2_DATA PD5 27 #else 28 // ENSSAT IR modified board 23 29 #define PS2_DATA PD4 30 #endif 24 31 25 32 static volatile uint8_t kbd_data; … … 107 114 108 115 //make PS2_CLK input pin 109 DDRD &= ~( 1<<PS2_CLK);116 DDRD &= ~((1<<PS2_CLK) | (1<<PS2_DATA)); 110 117 //turn on pullup resistor 111 118 PS2_PORT |= (1<<PS2_CLK);
Note:
See TracChangeset
for help on using the changeset viewer.