Fix support of max flash size

pull/7783/head
adustm 2018-07-19 16:29:13 +02:00 committed by Maciej Bocianski
parent 43258a8ff4
commit 5c26e15cd3
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@
#include "PeripheralPins.h"
/* Max amount of flash size is 4Gbytes */
/* hence 2^(31+1), then FLASH_SIZE_DEFAULT = 31<<20 */
#define QSPI_FLASH_SIZE_DEFAULT 0x1F00000
/* hence 2^(31+1), then FLASH_SIZE_DEFAULT = 1<<31 */
#define QSPI_FLASH_SIZE_DEFAULT 0x80000000
void qspi_prepare_command(const qspi_command_t *command, QSPI_CommandTypeDef *st_command)
{