提交 bc385cd5 编写于 作者: L liYony 提交者: mysterywolf

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

上级 73f1ee76
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册