aboutsummaryrefslogtreecommitdiff
path: root/drivers/eeprom/eeprom_spi.h
diff options
context:
space:
mode:
authorNick Brassel <[email protected]>2023-11-28 16:39:48 +1100
committerNick Brassel <[email protected]>2023-11-28 16:40:47 +1100
commit0115951de12bd4c798a43a380651c34552552e85 (patch)
tree62999011ae782d93aa6dc9c889615db2a840cafc /drivers/eeprom/eeprom_spi.h
parent0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff)
parent4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff)
downloadqmk_firmware-0115951de12bd4c798a43a380651c34552552e85.tar.gz
qmk_firmware-0115951de12bd4c798a43a380651c34552552e85.zip
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'drivers/eeprom/eeprom_spi.h')
-rw-r--r--drivers/eeprom/eeprom_spi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/eeprom/eeprom_spi.h b/drivers/eeprom/eeprom_spi.h
index 282c603565..6a21d5516b 100644
--- a/drivers/eeprom/eeprom_spi.h
+++ b/drivers/eeprom/eeprom_spi.h
@@ -17,6 +17,18 @@
#pragma once
/*
+ Default device configurations:
+
+ For the Adafruit SPI Non-Volatile FRAM Breakout: https://www.adafruit.com/product/1897
+ #define EEPROM_SPI_MB85RS64V
+*/
+#if defined(EEPROM_SPI_MB85RS64V)
+# define EXTERNAL_EEPROM_BYTE_COUNT 8192
+# define EXTERNAL_EEPROM_PAGE_SIZE 64 // it's FRAM, so it doesn't actually matter, this just sets the RAM buffer
+# define EXTERNAL_EEPROM_ADDRESS_SIZE 2
+#endif
+
+/*
The slave select pin of the EEPROM.
This needs to be a normal GPIO pin_t value, such as A7.
*/