Skip to content

Commit 8cb6001

Browse files
Fixed some keypad lib things
1 parent 03c9e77 commit 8cb6001

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: CEdev/include/lib/ce/keypadc.h

+7-3
Original file line numberDiff line numberDiff 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
*/
5151
uint8_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
*/
5757
uint8_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
*/
6363
void kb_Scan(void);
6464

@@ -68,7 +68,11 @@ void kb_Scan(void);
6868
*/
6969
void 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)

0 commit comments

Comments
 (0)