- Timestamp:
- Dec 11, 2011, 10:36:56 PM (12 years ago)
- Branches:
- main
- Children:
- 1fabcce
- Parents:
- 03d5724
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libs/amiga_keyboard/amiga_keyboard.c
r03d5724 rcbc34d1 25 25 26 26 // Notify the keyboard we got the last char right 27 inline void acknowledge_char()27 static inline void acknowledge_char() 28 28 { 29 29 // We have to pull down the "DATA" line … … 47 47 ISR(INT1_vect) 48 48 { 49 static char tmp_kdata; 49 50 //make sure clock line is low, if not ignore this transition 50 51 if(AK_PORT & (1<<AK_CLK)){ … … 56 57 started = 1; 57 58 bit_count = 0; 58 kbd_data = 0;59 tmp_kdata = 0; 59 60 } 60 61 … … 62 63 //put a 1 in the right place of kdb_data if PC2 is high, leave 63 64 //a 0 otherwise 64 if(!(AK_PORT & (1<<AK_DATA))) kbd_data |= (128>>bit_count);65 if(!(AK_PORT & (1<<AK_DATA))) tmp_kdata |= (128>>bit_count); 65 66 bit_count++; 66 67 } … … 92 93 } 93 94 }*/ 95 kbd_data = tmp_kdata; 94 96 char_waiting=1; 95 97 }
Note:
See TracChangeset
for help on using the changeset viewer.