diff options
| author | Nick Brassel <nick@tzarc.org> | 2025-03-21 23:38:34 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-21 23:38:34 +1100 |
| commit | 2b00b846dce1d1267dfdb2a3c2972a367cc0dd44 (patch) | |
| tree | 6d801a8d83c58ee646b789bfa9ab912857ee7d8c /quantum/led_matrix | |
| parent | c9d62ddc78e879053241202b288d0129073b07dc (diff) | |
Non-volatile memory data repository pattern (#24356)
* First batch of eeconfig conversions.
* Offset and length for datablocks.
* `via`, `dynamic_keymap`.
* Fix filename.
* Commentary.
* wilba leds
* satisfaction75
* satisfaction75
* more keyboard whack-a-mole
* satisfaction75
* omnikeyish
* more whack-a-mole
* `generic_features.mk` to automatically pick up nvm repositories
* thievery
* deferred variable resolve
* whitespace
* convert api to structs/unions
* convert api to structs/unions
* convert api to structs/unions
* fixups
* code-side docs
* code size fix
* rollback
* nvm_xxxxx_erase
* Updated location of eeconfig magic numbers so non-EEPROM nvm drivers can use them too.
* Fixup build.
* Fixup compilation error with encoders.
* Build fixes.
* Add `via_ci` keymap to onekey to exercise VIA bindings (and thus dynamic keymap et.al.), fixup compilation errors based on preprocessor+sizeof.
* Build failure rectification.
Diffstat (limited to 'quantum/led_matrix')
| -rw-r--r-- | quantum/led_matrix/led_matrix.c | 4 | ||||
| -rw-r--r-- | quantum/led_matrix/led_matrix.h | 2 | ||||
| -rw-r--r-- | quantum/led_matrix/led_matrix_types.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c index 58263c62e3..2e107a66e9 100644 --- a/quantum/led_matrix/led_matrix.c +++ b/quantum/led_matrix/led_matrix.c | |||
| @@ -86,9 +86,9 @@ static last_hit_t last_hit_buffer; | |||
| 86 | const uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; | 86 | const uint8_t k_led_matrix_split[2] = LED_MATRIX_SPLIT; |
| 87 | #endif | 87 | #endif |
| 88 | 88 | ||
| 89 | EECONFIG_DEBOUNCE_HELPER(led_matrix, EECONFIG_LED_MATRIX, led_matrix_eeconfig); | 89 | EECONFIG_DEBOUNCE_HELPER(led_matrix, led_matrix_eeconfig); |
| 90 | 90 | ||
| 91 | void eeconfig_update_led_matrix(void) { | 91 | void eeconfig_force_flush_led_matrix(void) { |
| 92 | eeconfig_flush_led_matrix(true); | 92 | eeconfig_flush_led_matrix(true); |
| 93 | } | 93 | } |
| 94 | 94 | ||
diff --git a/quantum/led_matrix/led_matrix.h b/quantum/led_matrix/led_matrix.h index a3468a2003..0006d487e9 100644 --- a/quantum/led_matrix/led_matrix.h +++ b/quantum/led_matrix/led_matrix.h | |||
| @@ -115,7 +115,7 @@ enum led_matrix_effects { | |||
| 115 | }; | 115 | }; |
| 116 | 116 | ||
| 117 | void eeconfig_update_led_matrix_default(void); | 117 | void eeconfig_update_led_matrix_default(void); |
| 118 | void eeconfig_update_led_matrix(void); | 118 | void eeconfig_force_flush_led_matrix(void); |
| 119 | void eeconfig_debug_led_matrix(void); | 119 | void eeconfig_debug_led_matrix(void); |
| 120 | 120 | ||
| 121 | uint8_t led_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t *led_i); | 121 | uint8_t led_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t *led_i); |
diff --git a/quantum/led_matrix/led_matrix_types.h b/quantum/led_matrix/led_matrix_types.h index 5a516ceb10..810420f46f 100644 --- a/quantum/led_matrix/led_matrix_types.h +++ b/quantum/led_matrix/led_matrix_types.h | |||
| @@ -71,7 +71,7 @@ typedef struct PACKED { | |||
| 71 | uint8_t flags[LED_MATRIX_LED_COUNT]; | 71 | uint8_t flags[LED_MATRIX_LED_COUNT]; |
| 72 | } led_config_t; | 72 | } led_config_t; |
| 73 | 73 | ||
| 74 | typedef union { | 74 | typedef union led_eeconfig_t { |
| 75 | uint32_t raw; | 75 | uint32_t raw; |
| 76 | struct PACKED { | 76 | struct PACKED { |
| 77 | uint8_t enable : 2; | 77 | uint8_t enable : 2; |
