1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/pinetime
Benjamin Valentin fde3026312 drivers/mtd_spi_nor: prevent data corruption on 'sector erase'
There is no difference between 4k erase and sector erase.
But sector erase would previously do `.block_erase` which would not
erase a sector (4k) but a whole block (64k).

Fortunately all boards declare `SPI_NOR_F_SECT_4K` and all file systems
don't try to erase anything smaller, so this was never triggered.

Add an `assert(0)` to crash instead of corrupting data.
2020-10-26 13:48:26 +01:00
..
include pinetime: Adapt SPI periph config 2020-05-18 19:18:30 +02:00
board.c drivers/mtd_spi_nor: prevent data corruption on 'sector erase' 2020-10-26 13:48:26 +01:00
doc.txt boards/pinetime: initial support for the PINE64 PineTime smartwatch 2020-01-14 21:06:43 +01:00
Kconfig boards/pinetime: Add Kconfig symbols 2020-07-16 10:23:57 +02:00
Makefile boards/pinetime: initial support for the PINE64 PineTime smartwatch 2020-01-14 21:06:43 +01:00
Makefile.dep boards/pinetime: remove useless makefile.dep include 2020-06-23 15:56:32 +02:00
Makefile.features boards/pinetime: initial support for the PINE64 PineTime smartwatch 2020-01-14 21:06:43 +01:00
Makefile.include boards/nrf52: remove useless export of FLASH_TARGET_TYPE 2020-03-08 15:12:44 +01:00