diff options
author | Joel Challis <[email protected]> | 2023-10-23 00:37:27 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-23 00:37:27 +0100 |
commit | bf6f13a2b0a185e935b8554e41317ab471a4c0ec (patch) | |
tree | 23d1f65f68e4ae8c1b236ed8ac5daccfa8ead348 /drivers | |
parent | 79094d3f72709be3c55bd8f22cc0a7e98f4b6564 (diff) | |
download | qmk_firmware-bf6f13a2b0a185e935b8554e41317ab471a4c0ec.tar.gz qmk_firmware-bf6f13a2b0a185e935b8554e41317ab471a4c0ec.zip |
Consolidate some EEPROM Driver configuration (#22321)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/eeprom/eeprom_spi.h | 12 |
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. */ |