diff options
| author | Joel Challis <git@zvecr.com> | 2023-10-23 00:37:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-23 00:37:27 +0100 |
| commit | bf6f13a2b0a185e935b8554e41317ab471a4c0ec (patch) | |
| tree | 23d1f65f68e4ae8c1b236ed8ac5daccfa8ead348 /drivers/eeprom | |
| parent | 79094d3f72709be3c55bd8f22cc0a7e98f4b6564 (diff) | |
Consolidate some EEPROM Driver configuration (#22321)
Diffstat (limited to 'drivers/eeprom')
| -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 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | /* | 19 | /* |
| 20 | Default device configurations: | ||
| 21 | |||
| 22 | For the Adafruit SPI Non-Volatile FRAM Breakout: https://www.adafruit.com/product/1897 | ||
| 23 | #define EEPROM_SPI_MB85RS64V | ||
| 24 | */ | ||
| 25 | #if defined(EEPROM_SPI_MB85RS64V) | ||
| 26 | # define EXTERNAL_EEPROM_BYTE_COUNT 8192 | ||
| 27 | # define EXTERNAL_EEPROM_PAGE_SIZE 64 // it's FRAM, so it doesn't actually matter, this just sets the RAM buffer | ||
| 28 | # define EXTERNAL_EEPROM_ADDRESS_SIZE 2 | ||
| 29 | #endif | ||
| 30 | |||
| 31 | /* | ||
| 20 | The slave select pin of the EEPROM. | 32 | The slave select pin of the EEPROM. |
| 21 | This needs to be a normal GPIO pin_t value, such as A7. | 33 | This needs to be a normal GPIO pin_t value, such as A7. |
| 22 | */ | 34 | */ |
