From ccf1e1c7e5b7121c8a6747b11daeec6824ac2008 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Mon, 14 Jan 2013 21:51:02 -0500 Subject: [PATCH] Adding API update to the MicroSwitch8304 code. - Should still work, but not tested --- Scan/MicroSwitch8304/scan_loop.c | 5 +++++ Scan/MicroSwitch8304/scan_loop.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Scan/MicroSwitch8304/scan_loop.c b/Scan/MicroSwitch8304/scan_loop.c index b8e4594..0f145cc 100644 --- a/Scan/MicroSwitch8304/scan_loop.c +++ b/Scan/MicroSwitch8304/scan_loop.c @@ -214,6 +214,11 @@ void scan_finishedWithBuffer( void ) } } +// 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 Micro Switch 8304 has a dedicated reset line diff --git a/Scan/MicroSwitch8304/scan_loop.h b/Scan/MicroSwitch8304/scan_loop.h index 08b6883..ef782b2 100644 --- a/Scan/MicroSwitch8304/scan_loop.h +++ b/Scan/MicroSwitch8304/scan_loop.h @@ -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_loop( void ); 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 );