qmk_settings: update with test settings
This commit is contained in:
parent
8dc2d07288
commit
b34258dbd6
2 changed files with 17 additions and 1 deletions
|
@ -10,6 +10,13 @@ qmk_settings_t QS;
|
|||
|
||||
static const qmk_settings_proto_t protos[] PROGMEM = {
|
||||
DECLARE_SETTING(1, grave_esc_override),
|
||||
DECLARE_SETTING(2, debounce_time),
|
||||
DECLARE_SETTING(3, auto_shift),
|
||||
DECLARE_SETTING(4, auto_shift_timeout),
|
||||
DECLARE_SETTING(5, osk_tap_toggle),
|
||||
DECLARE_SETTING(6, osk_timeout),
|
||||
DECLARE_SETTING(7, tapping_term),
|
||||
DECLARE_SETTING(8, tap_hold),
|
||||
};
|
||||
|
||||
static const qmk_settings_proto_t *find_setting(uint16_t qsid) {
|
||||
|
|
|
@ -35,10 +35,19 @@
|
|||
#ifdef QMK_SETTINGS
|
||||
/* dynamic settings framework is enabled */
|
||||
|
||||
/* actual settings - stored in RAM and backed by EEPROM */
|
||||
/* actual settings - stored in RAM and backed by EEPROM
|
||||
these are in arbitrary order to ensure they are aligned w/o any holes, and the order can be changed at will */
|
||||
typedef struct {
|
||||
uint8_t grave_esc_override;
|
||||
uint8_t auto_shift;
|
||||
uint8_t osk_tap_toggle;
|
||||
uint8_t tap_hold;
|
||||
uint16_t debounce_time;
|
||||
uint16_t auto_shift_timeout;
|
||||
uint16_t osk_timeout;
|
||||
uint16_t tapping_term;
|
||||
} qmk_settings_t;
|
||||
_Static_assert(sizeof(qmk_settings_t) == 12, "unexpected size of the qmk_settings_t structure");
|
||||
|
||||
/* setting prototype - describes how to get/set settings, stored in flash */
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Reference in a new issue