mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
drives/mtd_flashpage: Configure write_size in MTD device
This commit is contained in:
parent
9ec42492da
commit
882f76ab01
@ -43,6 +43,9 @@ extern "C"
|
||||
.sector_count = FLASHPAGE_NUMOF, \
|
||||
.pages_per_sector = _pages_per_sector, \
|
||||
.page_size = FLASHPAGE_SIZE / _pages_per_sector, \
|
||||
.write_size = FLASHPAGE_WRITE_BLOCK_SIZE >= FLASHPAGE_WRITE_BLOCK_ALIGNMENT \
|
||||
? FLASHPAGE_WRITE_BLOCK_SIZE \
|
||||
: FLASHPAGE_WRITE_BLOCK_ALIGNMENT, \
|
||||
}, \
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user