File tree 1 file changed +7
-3
lines changed
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;
46
46
47
47
/**
48
48
* Scans the given keyboard row and returns the row value
49
- * Note: Disables interrupts during execution, and restores on completion
49
+ * Note: Disables interrupts
50
50
*/
51
51
uint8_t kb_ScanGroup (uint8_t row );
52
52
53
53
/**
54
54
* 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
56
56
*/
57
57
uint8_t kb_AnyKey (void );
58
58
59
59
/**
60
60
* Scans the keyboard to update data values
61
- * Note: Disables interrupts during execution, and restores on completion
61
+ * Note: Disables interrupts
62
62
*/
63
63
void kb_Scan (void );
64
64
@@ -68,7 +68,11 @@ void kb_Scan(void);
68
68
*/
69
69
void kb_Reset (void );
70
70
71
+ /**
72
+ * Used for changing the scan operation on the keypad
73
+ */
71
74
#define kb_SetMode (mode ) (kb_Config = ((kb_Config & ~3)|(mode)))
75
+ #define kb_GetMode () (kb_Config & 3)
72
76
73
77
#define MODE_0_IDLE (0)
74
78
#define MODE_1_INDISCRIMINATE (1)
You can’t perform that action at this time.
0 commit comments