X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Scan%2FKaypro1%2Fscan_loop.h;h=2aa4dbbf755884c1c65735bc787b02994fa3405d;hb=a017d2f270de6866a628dcb0a3be45881d1c52e8;hp=423381b4d0e9b273983e6619b2cba16cabe6aa73;hpb=266b59b851e1ebc41a1b991ed6d8a09ada74a576;p=kiibohd-controller.git diff --git a/Scan/Kaypro1/scan_loop.h b/Scan/Kaypro1/scan_loop.h index 423381b..2aa4dbb 100644 --- a/Scan/Kaypro1/scan_loop.h +++ b/Scan/Kaypro1/scan_loop.h @@ -34,15 +34,14 @@ // ----- Defines ----- #define KEYBOARD_SIZE 0x4c // 76 - Size of the array space for the keyboardr(max index) +#define KEYBOARD_BUFFER 24 // Max number of key signals to buffer // ----- Variables ----- -// 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 volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER]; +extern volatile uint8_t KeyIndex_BufferUsed;