Skip to content

Commit f55ecad

Browse files
authored
Merge pull request arduino#210 from adafruit/flashdefines
Flashdefines
2 parents bee96c4 + b09a926 commit f55ecad

File tree

19 files changed

+79
-0
lines changed

19 files changed

+79
-0
lines changed

variants/circuitplay/variant.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ static const uint8_t DAC0 = PIN_DAC0;
108108

109109
#define ADC_RESOLUTION 12
110110

111+
112+
// On-board SPI Flash
113+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
114+
#define EXTERNAL_FLASH_USE_SPI SPI
115+
#define EXTERNAL_FLASH_USE_CS SS
116+
111117
/*
112118
* SPI Interfaces
113119
*/

variants/feather_m0_express/variant.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ static const uint8_t DAC0 = PIN_DAC0;
125125
#define PIN_ATN (38ul)
126126
static const uint8_t ATN = PIN_ATN;
127127

128+
129+
// On-board SPI Flash
130+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
131+
#define EXTERNAL_FLASH_USE_SPI SPI1
132+
#define EXTERNAL_FLASH_USE_CS SS1
133+
128134
/*
129135
* Serial interfaces
130136
*/

variants/feather_m4/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ static const uint8_t SCL = PIN_WIRE_SCL;
186186
#define PIN_I2S_FS (10u)
187187
#define PIN_I2S_MCK PIN_SERIAL1_RX
188188

189+
// On-board QSPI Flash
190+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
191+
#define EXTERNAL_FLASH_USE_QSPI
192+
189193
//QSPI Pins
190194
#define PIN_QSPI_SCK (34u)
191195
#define PIN_QSPI_CS (35u)

variants/grand_central_m4/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ static const uint8_t SCL1 = PIN_WIRE1_SCL;
258258
#define PIN_I2S_FS (33)
259259
#define PIN_I2S_MCK PIN_SERIAL4_RX
260260

261+
// On-board QSPI Flash
262+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
263+
#define EXTERNAL_FLASH_USE_QSPI
264+
261265
//QSPI Pins
262266
#define PIN_QSPI_SCK (89)
263267
#define PIN_QSPI_CS (90)

variants/hallowing_m0_express/variant.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ static const uint8_t DAC0 = PIN_DAC0;
125125
#define PIN_ATN (38ul)
126126
static const uint8_t ATN = PIN_ATN;
127127

128+
// On-board SPI Flash
129+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
130+
#define EXTERNAL_FLASH_USE_SPI SPI1
131+
#define EXTERNAL_FLASH_USE_CS SS1
132+
128133
/*
129134
* Serial interfaces
130135
*/

variants/hallowing_m4/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ static const uint8_t SCL = PIN_WIRE_SCL;
187187
*/
188188
#define I2S_INTERFACES_COUNT 0
189189

190+
// On-board QSPI Flash
191+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
192+
#define EXTERNAL_FLASH_USE_QSPI
190193

191194
//QSPI Pins
192195
#define PIN_QSPI_SCK (35u)

variants/itsybitsy_m0/variant.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ static const uint8_t DAC0 = PIN_DAC0;
118118
#define PIN_ATN (38ul)
119119
static const uint8_t ATN = PIN_ATN;
120120

121+
// On-board SPI Flash
122+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
123+
#define EXTERNAL_FLASH_USE_SPI SPI1
124+
#define EXTERNAL_FLASH_USE_CS SS1
125+
121126
/*
122127
* Serial interfaces
123128
*/

variants/itsybitsy_m4/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ static const uint8_t SCL = PIN_WIRE_SCL;
174174
#define I2S_DEVICE 0
175175
// no I2S on G19!
176176

177+
// On-board QSPI Flash
178+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
179+
#define EXTERNAL_FLASH_USE_QSPI
180+
177181
//QSPI Pins
178182
#define PIN_QSPI_SCK (32u)
179183
#define PIN_QSPI_CS (33u)

variants/metro_m0/variant.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ static const uint8_t DAC0 = PIN_DAC0;
125125
#define PIN_ATN (38ul)
126126
static const uint8_t ATN = PIN_ATN;
127127

128+
// On-board SPI Flash
129+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
130+
#define EXTERNAL_FLASH_USE_SPI SPI1
131+
#define EXTERNAL_FLASH_USE_CS SS1
132+
128133
/*
129134
* Serial interfaces
130135
*/

variants/metro_m4/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ static const uint8_t SCL = PIN_WIRE_SCL;
188188
#define PIN_I2S_FS (9u)
189189
#define PIN_I2S_MCK (2u)
190190

191+
// On-board QSPI Flash
192+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
193+
#define EXTERNAL_FLASH_USE_QSPI
194+
191195
//QSPI Pins
192196
#define PIN_QSPI_SCK (41u)
193197
#define PIN_QSPI_CS (42u)

0 commit comments

Comments
 (0)