diff options
| author | liYony <[email protected]> | 2023-02-16 22:15:52 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-02-16 09:47:55 -0500 |
| commit | bc385cd55cad248c6965545470e5dc1ff6a6f87e (patch) | |
| tree | 6ab3c36d12773a771b270de41537af1817c28e75 /components/drivers | |
| parent | 73f1ee76b676ebc1e5eed33218c80c0c1857045a (diff) | |
[spi]优化挂载函数对cs_pin的处理
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/spi/spi_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/drivers/spi/spi_core.c b/components/drivers/spi/spi_core.c index dd805337f5..63b50f265a 100644 --- a/components/drivers/spi/spi_core.c +++ b/components/drivers/spi/spi_core.c @@ -63,7 +63,6 @@ rt_err_t rt_spi_bus_attach_device_cspin(struct rt_spi_device *device, if(cs_pin != PIN_NONE) { rt_pin_mode(cs_pin, PIN_MODE_OUTPUT); - rt_pin_write(cs_pin, PIN_HIGH); } rt_memset(&device->config, 0, sizeof(device->config)); |
