mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/weact-f411ce: determine flash size at run-time
The pad for SPI-Flash on the WeAct-f411ce does not come pre-populated. The user has to manually solder a SPI-flash chip on the board, so specifying a size here makes no sense. Instead, rely on automatic detection of the flash size at run-time.
This commit is contained in:
parent
58cd126517
commit
59a41968b5
@ -46,7 +46,6 @@ static mtd_spi_nor_t weact_nor_dev = {
|
||||
.driver = &mtd_spi_nor_driver,
|
||||
.page_size = WEACT_411CE_NOR_PAGE_SIZE,
|
||||
.pages_per_sector = WEACT_411CE_NOR_PAGES_PER_SECTOR,
|
||||
.sector_count = WEACT_411CE_NOR_SECTOR_COUNT,
|
||||
},
|
||||
.params = &_weact_nor_params,
|
||||
};
|
||||
|
@ -76,7 +76,6 @@ extern "C" {
|
||||
*/
|
||||
#define WEACT_411CE_NOR_PAGE_SIZE (256)
|
||||
#define WEACT_411CE_NOR_PAGES_PER_SECTOR (16)
|
||||
#define WEACT_411CE_NOR_SECTOR_COUNT (128)
|
||||
#define WEACT_411CE_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K)
|
||||
#define WEACT_411CE_NOR_SPI_DEV SPI_DEV(0)
|
||||
#define WEACT_411CE_NOR_SPI_CLK SPI_CLK_10MHZ
|
||||
|
Loading…
Reference in New Issue
Block a user