Skip to content

Commit

Permalink
add QSPI define for external flash
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Feb 1, 2020
1 parent a6d2326 commit bffffaf
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
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

0 comments on commit bffffaf

Please sign in to comment.