Bladeren bron

Commenting out Tandy1000 code to make compile.

- Code hasn't been compatible with the API for a long time
- It should be possible to use the hardware UART to simplify the code immensely
simple
Jacob Alexander 11 jaren geleden
bovenliggende
commit
6b3ba17f57
2 gewijzigde bestanden met toevoegingen van 11 en 0 verwijderingen
  1. 9
    0
      Scan/Tandy1000/scan_loop.c
  2. 2
    0
      Scan/Tandy1000/scan_loop.h

+ 9
- 0
Scan/Tandy1000/scan_loop.c Bestand weergeven

// Disable keyboard interrupt (does nothing if already off) // Disable keyboard interrupt (does nothing if already off)
UNSET_INTR(); UNSET_INTR();


/* XXX OLD CODE - Somewhat worked, has glitches, and is not compatible with the current API

// Read the clock 8 times // Read the clock 8 times
if ( READ_CLK ) if ( READ_CLK )
{ {
while ( READ_CLK ); while ( READ_CLK );
} }


*/

// Interrupt keyboard if there is no pending packet // Interrupt keyboard if there is no pending packet
SET_INTR(); SET_INTR();


{ {
} }


// Signal that the keys have been properly sent over USB
void scan_finishedWithUSBBuffer( void )
{
}

// Reset/Hold keyboard // Reset/Hold keyboard
// Warning! This will cause the keyboard to not send any data, so you can't disable with a keypress // Warning! This will cause the keyboard to not send any data, so you can't disable with a keypress
// The Tandy 1000 keyboard has a dedicated hold/processor interrupt line // The Tandy 1000 keyboard has a dedicated hold/processor interrupt line

+ 2
- 0
Scan/Tandy1000/scan_loop.h Bestand weergeven



extern volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER]; extern volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER];
extern volatile uint8_t KeyIndex_BufferUsed; extern volatile uint8_t KeyIndex_BufferUsed;
extern volatile uint8_t KeyIndex_Add_InputSignal;






uint8_t scan_sendData( uint8_t dataPayload ); uint8_t scan_sendData( uint8_t dataPayload );


void scan_finishedWithBuffer( void ); void scan_finishedWithBuffer( void );
void scan_finishedWithUSBBuffer( void );
void scan_lockKeyboard( void ); void scan_lockKeyboard( void );
void scan_unlockKeyboard( void ); void scan_unlockKeyboard( void );
void scan_resetKeyboard( void ); void scan_resetKeyboard( void );