Consolidate some EEPROM Driver configuration (#22321)

This commit is contained in:
Joel Challis 2023-10-23 00:37:27 +01:00 committed by GitHub
parent 79094d3f72
commit bf6f13a2b0
Failed to generate hash of commit
21 changed files with 28 additions and 70 deletions

View file

@ -16,6 +16,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.