// Project Includes
#include <led.h>
+#include <macro.h>
#include <print.h>
// Local Includes
// ----- Functions -----
+// Reset Keyboard
+void Scan_resetKeyboard( void )
+{
+ // Not a calculated valued...
+ _delay_ms( 50 );
+
+ KeyIndex_BufferUsed = 0;
+}
+
// Setup
inline void Scan_setup()
#if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) // AVR
UCSR1C = 0x26;
// Reset the keyboard before scanning, we might be in a wierd state
- scan_resetKeyboard();
+ Scan_resetKeyboard();
}
#elif defined(_mk20dx128_) // ARM
{
NVIC_ENABLE_IRQ( IRQ_UART0_STATUS );
// Reset the keyboard before scanning, we might be in a wierd state
- scan_resetKeyboard();
+ Scan_resetKeyboard();
}
#endif
{
}
-// Reset Keyboard
-void Scan_resetKeyboard( void )
-{
- // Not a calculated valued...
- _delay_ms( 50 );
-
- KeyIndex_BufferUsed = 0;
-}
-