Pre Tandy1000 overhaul

This commit is contained in:
Jacob Alexander 2011-11-28 22:20:04 -08:00
parent 969b8c8bee
commit ac5f6c015d
17 changed files with 198 additions and 110 deletions

View file

@ -94,6 +94,10 @@ inline void scan_setup()
// Initially buffer doesn't need to be cleared (it's empty...)
BufferReadyToClear = 0;
// Reset the keyboard before scanning, we might be in a wierd state
// Note: This should be run asap, but we need the USART setup to run this command on the 8304
scan_resetKeyboard();
}
@ -223,3 +227,10 @@ void scan_unlockKeyboard( void )
SET_RESET();
}
// Reset Keyboard
void scan_resetKeyboard( void )
{
// Reset command for the 8304
scan_sendData( 0x92 );
}

View file

@ -33,7 +33,7 @@
// ----- Defines -----
#define KEYBOARD_SIZE 0x62 // 76 - Size of the array space for the keyboard(max index)
#define KEYBOARD_SIZE 0x62 // 98 - Size of the array space for the keyboard(max index)
#define KEYBOARD_BUFFER 24 // Max number of key signals to buffer
@ -58,6 +58,7 @@ uint8_t scan_sendData( uint8_t dataPayload );
void scan_finishedWithBuffer( void );
void scan_lockKeyboard( void );
void scan_unlockKeyboard( void );
void scan_resetKeyboard( void );
#endif // __SCAN_LOOP_H