]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Scan/Kaypro1/scan_loop.c
Intial commit of the SonyNEWS scan module
[kiibohd-controller.git] / Scan / Kaypro1 / scan_loop.c
index dc4f61a45b4b536d4538c37f8aa598431175fd4b..11e8eb833f78413bdf0e288dea734872213f442f 100644 (file)
@@ -49,6 +49,7 @@
 
 // ----- Variables -----
 
+// Buffer used to inform the macro processing module which keys have been detected as pressed
 volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER];
 volatile uint8_t KeyIndex_BufferUsed;
 
@@ -73,7 +74,7 @@ inline void scan_setup()
        // Setup baud rate
        // 16 MHz / ( 16 * Baud ) = UBRR
        // Baud <- 3.358 ms per bit, thus 1000 / 3.358 = 297.80
-       // Thus baud = 3357
+       // Thus USBRR = 3357
        uint16_t baud = 3357; // Max setting of 4095
        UBRR1H = (uint8_t)(baud >> 8);
        UBRR1L = (uint8_t)baud;