[spi]优化挂载函数对cs_pin的处理

This commit is contained in:
liYony 2023-02-16 22:15:52 +08:00 committed by Man, Jianting (Meco)
parent 73f1ee76b6
commit bc385cd55c
1 changed files with 0 additions and 1 deletions

View File

@ -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));