aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-03-14 10:45:03 +0000
committerGitHub <[email protected]>2024-03-14 21:45:03 +1100
commit4bbfecae90e994b4a7d9bf5db06a995fb05d6ab2 (patch)
tree51d3ca05791953a67c972841a6605e8cca19c481 /platforms
parent6720e9c58c3a239ff0de4be1ff2ad075a0b2c248 (diff)
downloadqmk_firmware-4bbfecae90e994b4a7d9bf5db06a995fb05d6ab2.tar.gz
qmk_firmware-4bbfecae90e994b4a7d9bf5db06a995fb05d6ab2.zip
Infer eeconfig identifiers (#22135)
Co-authored-by: Nick Brassel <[email protected]>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/eeprom.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/eeprom.h b/platforms/eeprom.h
index fbfef20334..8e69eecc4c 100644
--- a/platforms/eeprom.h
+++ b/platforms/eeprom.h
@@ -22,6 +22,10 @@ void eeprom_update_dword(uint32_t *__p, uint32_t __value);
void eeprom_update_block(const void *__src, void *__dst, size_t __n);
#endif
+static inline void eeprom_write_qword(uint64_t *__p, uint64_t __value) {
+ eeprom_update_block(&__value, __p, sizeof(uint64_t));
+}
+
#if defined(EEPROM_CUSTOM)
# ifndef EEPROM_SIZE
# error EEPROM_SIZE has not been defined for custom driver.