diff options
| author | Bernard Xiong <[email protected]> | 2019-12-11 08:30:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-11 08:30:29 +0800 |
| commit | ea507e2e81bc0bf4ddfa17124dd1a9e585d7c281 (patch) | |
| tree | ee694c5077ad5ce56132f19b0685849b39d73546 /components/drivers/spi | |
| parent | 85ad44479c63c28549471740856b4806549f4401 (diff) | |
| parent | 15b10bd5e2da72a96d7ef8791a97b95ca143d757 (diff) | |
Merge pull request #3232 from balanceTWK/sfud_temp
[components][sfud] update sfud options.
Diffstat (limited to 'components/drivers/spi')
| -rw-r--r-- | components/drivers/spi/spi_flash_sfud.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index 7fa7de6ad5..ce67ce9a72 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -22,12 +22,17 @@ #endif /* RT_DEBUG_SFUD */ #ifndef RT_SFUD_DEFAULT_SPI_CFG + +#ifndef RT_SFUD_SPI_MAX_HZ +#define RT_SFUD_SPI_MAX_HZ 50000000 +#endif + /* read the JEDEC SFDP command must run at 50 MHz or less */ #define RT_SFUD_DEFAULT_SPI_CFG \ { \ .mode = RT_SPI_MODE_0 | RT_SPI_MSB, \ .data_width = 8, \ - .max_hz = 50 * 1000 * 1000, \ + .max_hz = RT_SFUD_SPI_MAX_HZ, \ } #endif |
