Skip to content

Commit 94f659d

Browse files
authored
Merge pull request #432 from adafruit/exp_flash_interface
add QSPI define for external flash
2 parents a6d2326 + af2cf01 commit 94f659d

File tree

9 files changed

+15
-3
lines changed

9 files changed

+15
-3
lines changed

boards.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ feather52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
114114

115115

116116
# ----------------------------------
117-
# Bluefruit Feather nRF52840 sense
117+
# Feather Bluefruit sense
118118
# ----------------------------------
119-
feather52840sense.name=Adafruit Feather nRF52840 Sense
119+
feather52840sense.name=Adafruit Feather Bluefruit Sense
120120

121121
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
122122
feather52840sense.vid.0=0x239A
@@ -144,7 +144,7 @@ feather52840sense.build.board=NRF52840_FEATHER_SENSE
144144
feather52840sense.build.core=nRF5
145145
feather52840sense.build.variant=feather_nrf52840_sense
146146
feather52840sense.build.usb_manufacturer="Adafruit LLC"
147-
feather52840sense.build.usb_product="Feather nRF52840 Sense"
147+
feather52840sense.build.usb_product="Feather Bluefruit Sense"
148148
feather52840sense.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
149149
feather52840sense.build.ldscript=nrf52840_s140_v6.ld
150150
feather52840sense.build.vid=0x239A

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)