1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pinetime: add erase timings to mtd_spi_nor instance

This commit is contained in:
Koen Zandberg 2020-02-26 10:42:26 +01:00
parent dcdaf8a2ab
commit 8931889865
No known key found for this signature in database
GPG Key ID: 0E63411F8FCA8247

View File

@ -27,10 +27,15 @@
#include "mtd_spi_nor.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "timex.h"
#ifdef MODULE_MTD
static const mtd_spi_nor_params_t _pinetime_nor_params = {
.opcode = &mtd_spi_nor_opcode_default,
.wait_chip_erase = 9LU * US_PER_SEC,
.wait_32k_erase = 160LU *US_PER_MS,
.wait_sector_erase = 70LU * US_PER_MS,
.wait_4k_erase = 70LU * US_PER_MS,
.clk = PINETIME_NOR_SPI_CLK,
.flag = PINETIME_NOR_FLAGS,
.spi = PINETIME_NOR_SPI_DEV,