Tandy 1000 Converter, basicly works, except for packet mismatches

- Caused by too much processing in the converter...
- Easy to fix if I remove the macro engine...
This commit is contained in:
Jacob Alexander 2011-10-01 00:54:18 -07:00
parent 05c20112e9
commit 46916defa5
12 changed files with 578 additions and 33 deletions

11
main.c
View file

@ -102,10 +102,16 @@ int main(void)
uint8_t ledTimer = 15; // Enable LED for a short time
while ( 1 )
{
// Setup the scanning module
scan_setup();
while ( 1 )
{
// Acquire Key Indices
scan_loop();
// Loop continuously until scan_loop returns 0
cli();
while ( scan_loop() );
sei();
// Send keypresses over USB if the ISR has signalled that it's time
if ( !sendKeypresses )
@ -122,6 +128,9 @@ int main(void)
// Indicate Error, if valid
errorLED( ledTimer );
if ( ledTimer > 0 )
ledTimer--;
}
// Loop should never get here (indicate error)