File tree Expand file tree Collapse file tree 19 files changed +79
-0
lines changed Expand file tree Collapse file tree 19 files changed +79
-0
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change @@ -125,6 +125,12 @@ static const uint8_t DAC0 = PIN_DAC0;
125125#define PIN_ATN (38ul)
126126static 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 */
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -125,6 +125,11 @@ static const uint8_t DAC0 = PIN_DAC0;
125125#define PIN_ATN (38ul)
126126static 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 */
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ static const uint8_t DAC0 = PIN_DAC0;
118118#define PIN_ATN (38ul)
119119static 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 */
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -125,6 +125,11 @@ static const uint8_t DAC0 = PIN_DAC0;
125125#define PIN_ATN (38ul)
126126static 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 */
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments