File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -46,19 +46,19 @@ typedef uint16_t kb_lkey_t;
4646
4747/**
4848 * Scans the given keyboard row and returns the row value
49- * Note: Disables interrupts during execution, and restores on completion
49+ * Note: Disables interrupts
5050 */
5151uint8_t kb_ScanGroup (uint8_t row );
5252
5353/**
5454 * Scans the keyboard quickly to tell if any key was pressed
55- * Note: Disables interrupts during execution, and restores on completion
55+ * Note: Disables interrupts
5656 */
5757uint8_t kb_AnyKey (void );
5858
5959/**
6060 * Scans the keyboard to update data values
61- * Note: Disables interrupts during execution, and restores on completion
61+ * Note: Disables interrupts
6262 */
6363void kb_Scan (void );
6464
@@ -68,7 +68,11 @@ void kb_Scan(void);
6868 */
6969void kb_Reset (void );
7070
71+ /**
72+ * Used for changing the scan operation on the keypad
73+ */
7174#define kb_SetMode (mode ) (kb_Config = ((kb_Config & ~3)|(mode)))
75+ #define kb_GetMode () (kb_Config & 3)
7276
7377#define MODE_0_IDLE (0)
7478#define MODE_1_INDISCRIMINATE (1)
You can’t perform that action at this time.
0 commit comments