Updating AVR abstraction to be compatible with ARM, nearly ready for ARM files

- Very small updates to files, mostly modifying to remove name duplications
This commit is contained in:
Jacob Alexander 2013-01-26 22:30:36 -05:00
parent a31f0e064a
commit 6da1558b78
29 changed files with 64 additions and 36 deletions

View file

@ -38,7 +38,7 @@
// -- Example for scanCol --
/*
#define KEYBOARD_SIZE 16 // # of keys
#define KEYBOARD_KEYS 16 // # of keys
#define MAX_ROW_SIZE 16 // # of keys in the largest row
#define MAX_COL_SIZE 1 // # of keys in the largest column
*/
@ -46,7 +46,7 @@
// -- Example for scanRow --
/*
#define KEYBOARD_SIZE 16 // # of keys
#define KEYBOARD_KEYS 16 // # of keys
#define MAX_ROW_SIZE 1 // # of keys in the largest row
#define MAX_COL_SIZE 16 // # of keys in the largest column
*/
@ -54,7 +54,7 @@
// -- Example for scanRow_powrCol, scanCol_powrRow, and scanDual --
/*
#define KEYBOARD_SIZE 69 // # of keys
#define KEYBOARD_KEYS 69 // # of keys
#define MAX_ROW_SIZE 8 // # of keys in the largest row
#define MAX_COL_SIZE 9 // # of keys in the largest column
*/

View file

@ -67,7 +67,7 @@ uint8_t scan_count = 0;
// This is where the matrix scan data is held, as well as debouncing is evaluated to, which (depending on the read value) is handled
// by the macro module
uint8_t KeyIndex_Array[KEYBOARD_SIZE + 1];
uint8_t KeyIndex_Array[KEYBOARD_KEYS + 1];

View file

@ -45,8 +45,8 @@
// NOTE: Highest Bit: Valid keypress (0x80 is valid keypress)
// Other Bits: Pressed state sample counter
extern uint8_t KeyIndex_Array [KEYBOARD_SIZE + 1];
static const uint8_t KeyIndex_Size = KEYBOARD_SIZE;
extern uint8_t KeyIndex_Array [KEYBOARD_KEYS + 1];
static const uint8_t KeyIndex_Size = KEYBOARD_KEYS;
extern volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER];
extern volatile uint8_t KeyIndex_BufferUsed;