mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #14240 from benpicco/boards/WeAct-f411_dynamic_flash
boards/weact-f411ce: determine flash size at run-time
This commit is contained in:
commit
1cf1f75db1
@ -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