changeset 60:8ae6c6f206db

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
author Jacob Alexander <triplehaata@gmail.com>
date Mon, 14 Jan 2013 21:48:21 -0500
parents f605b500bbd3
children fed6681dc35f
files Scan/Tandy1000/scan_loop.c Scan/Tandy1000/scan_loop.h
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Scan/Tandy1000/scan_loop.c	Mon Jan 14 21:43:26 2013 -0500
+++ b/Scan/Tandy1000/scan_loop.c	Mon Jan 14 21:48:21 2013 -0500
@@ -152,6 +152,8 @@
 	// Disable keyboard interrupt (does nothing if already off)
 	UNSET_INTR();
 
+	/* XXX OLD CODE - Somewhat worked, has glitches, and is not compatible with the current API
+
 	// Read the clock 8 times
 	if ( READ_CLK )
 	{
@@ -213,6 +215,8 @@
 		while ( READ_CLK );
 	}
 
+	*/
+
 	// Interrupt keyboard if there is no pending packet
 	SET_INTR();
 
@@ -232,6 +236,11 @@
 {
 }
 
+// Signal that the keys have been properly sent over USB
+void scan_finishedWithUSBBuffer( void )
+{
+}
+
 // Reset/Hold keyboard
 // 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
--- a/Scan/Tandy1000/scan_loop.h	Mon Jan 14 21:43:26 2013 -0500
+++ b/Scan/Tandy1000/scan_loop.h	Mon Jan 14 21:48:21 2013 -0500
@@ -42,6 +42,7 @@
 
 extern volatile     uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER];
 extern volatile     uint8_t KeyIndex_BufferUsed;
+extern volatile     uint8_t KeyIndex_Add_InputSignal;
 
 
 
@@ -56,6 +57,7 @@
 uint8_t scan_sendData( uint8_t dataPayload );
 
 void scan_finishedWithBuffer( void );
+void scan_finishedWithUSBBuffer( void );
 void scan_lockKeyboard( void );
 void scan_unlockKeyboard( void );
 void scan_resetKeyboard( void );