Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add QSPI define for external flash
  • Loading branch information
ladyada committed Feb 1, 2020
commit bffffaf35eeed8fda415c2c5a994eabb8cb5b98b
1 change: 1 addition & 0 deletions variants/circuitplayground_nrf52840/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down
1 change: 1 addition & 0 deletions variants/clue_nrf52840/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down
1 change: 1 addition & 0 deletions variants/feather_nrf52840_express/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down
1 change: 1 addition & 0 deletions variants/feather_nrf52840_sense/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down
1 change: 1 addition & 0 deletions variants/itsybitsy_nrf52840_express/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down
5 changes: 5 additions & 0 deletions variants/metro_nrf52840_express/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
// On-board QSPI Flash
// If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

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


#ifdef __cplusplus
}
Expand Down
1 change: 1 addition & 0 deletions variants/particle_xenon/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down
1 change: 1 addition & 0 deletions variants/pca10056/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ static const uint8_t SCK = PIN_SPI_SCK ;

// On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES MX25R6435F
#define EXTERNAL_FLASH_USE_QSPI

#define USB_MSC_BLOCK_SIZE 512
#define USB_MSC_BLOCK_COUNT ((8*1024*1024) / USB_MSC_BLOCK_SIZE)
Expand Down