diff options
| author | SummerGift <[email protected]> | 2018-11-22 16:33:28 +0800 |
|---|---|---|
| committer | SummerGift <[email protected]> | 2018-11-22 16:33:32 +0800 |
| commit | e9c0964061ce8e0c26d994ea1809d266493d573f (patch) | |
| tree | a7177517c47d1a479c8edbb98ae935b94f2163df | |
| parent | fac430805f5f87931af29929342cf6326090e17d (diff) | |
[components][driver]: optimized code
| -rw-r--r-- | components/drivers/spi/spi_msd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/components/drivers/spi/spi_msd.c b/components/drivers/spi/spi_msd.c index 97a71deff6..a109fd9488 100644 --- a/components/drivers/spi/spi_msd.c +++ b/components/drivers/spi/spi_msd.c @@ -1176,11 +1176,6 @@ static rt_err_t rt_msd_init(rt_device_t dev) } /* read CSD */ - /* Store configuration to msd spi device*/ - msd->spi_device->config.data_width = 8; - msd->spi_device->config.mode = RT_SPI_MODE_0 | RT_SPI_MSB; - msd->spi_device->config.max_hz = msd->max_clock; - /* config spi to high speed */ { struct rt_spi_configuration cfg; |
