Skip to content

Commit bffffaf

Browse files
committed
add QSPI define for external flash
1 parent a6d2326 commit bffffaf

File tree

8 files changed

+12
-0
lines changed

8 files changed

+12
-0
lines changed

variants/circuitplayground_nrf52840/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;
131131

132132
// On-board QSPI Flash
133133
#define EXTERNAL_FLASH_DEVICES GD25Q16C
134+
#define EXTERNAL_FLASH_USE_QSPI
134135

135136
#define USB_MSC_BLOCK_SIZE 512
136137
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)

variants/clue_nrf52840/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;
131131

132132
// On-board QSPI Flash
133133
#define EXTERNAL_FLASH_DEVICES GD25Q16C
134+
#define EXTERNAL_FLASH_USE_QSPI
134135

135136
#define USB_MSC_BLOCK_SIZE 512
136137
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)

variants/feather_nrf52840_express/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;
128128

129129
// On-board QSPI Flash
130130
#define EXTERNAL_FLASH_DEVICES GD25Q16C
131+
#define EXTERNAL_FLASH_USE_QSPI
131132

132133
#define USB_MSC_BLOCK_SIZE 512
133134
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)

variants/feather_nrf52840_sense/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;
132132

133133
// On-board QSPI Flash
134134
#define EXTERNAL_FLASH_DEVICES GD25Q16C
135+
#define EXTERNAL_FLASH_USE_QSPI
135136

136137
#define USB_MSC_BLOCK_SIZE 512
137138
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)

variants/itsybitsy_nrf52840_express/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;
124124

125125
// On-board QSPI Flash
126126
#define EXTERNAL_FLASH_DEVICES GD25Q16C
127+
#define EXTERNAL_FLASH_USE_QSPI
127128

128129
#define USB_MSC_BLOCK_SIZE 512
129130
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)

variants/metro_nrf52840_express/variant.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
130130
// On-board QSPI Flash
131131
// If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used
132132
#define EXTERNAL_FLASH_DEVICES GD25Q16C
133+
#define EXTERNAL_FLASH_USE_QSPI
134+
135+
#define USB_MSC_BLOCK_SIZE 512
136+
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
137+
133138

134139
#ifdef __cplusplus
135140
}

variants/particle_xenon/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
182182

183183
// On-board QSPI Flash
184184
#define EXTERNAL_FLASH_DEVICES GD25Q16C
185+
#define EXTERNAL_FLASH_USE_QSPI
185186

186187
#define USB_MSC_BLOCK_SIZE 512
187188
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)

variants/pca10056/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;
135135

136136
// On-board QSPI Flash
137137
#define EXTERNAL_FLASH_DEVICES MX25R6435F
138+
#define EXTERNAL_FLASH_USE_QSPI
138139

139140
#define USB_MSC_BLOCK_SIZE 512
140141
#define USB_MSC_BLOCK_COUNT ((8*1024*1024) / USB_MSC_BLOCK_SIZE)

0 commit comments

Comments
 (0)