diff options
| author | liYangYang <[email protected]> | 2023-01-08 12:03:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-07 23:03:42 -0500 |
| commit | 7c05d8517c09f6a859b85cca689690d0968c4636 (patch) | |
| tree | e26408492f650b0cf7e7663c42f6c4e8e302dd6a /components/drivers/include | |
| parent | 98a997c57eeefcd8c8941ff144e817125a2f720c (diff) | |
[STM32][SPI]解决挂载函数里面不同bsp对uaer_data的滥用 (#6819)
* [spi]attach 片选引脚依赖pin框架
* 修改attach函数
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/spi.h index 0bcac3aac0..2cce830cd6 100644 --- a/components/drivers/include/drivers/spi.h +++ b/components/drivers/include/drivers/spi.h @@ -15,6 +15,7 @@ #include <stdlib.h> #include <rtthread.h> +#include <rtdevice.h> #ifdef __cplusplus extern "C"{ @@ -78,6 +79,7 @@ struct rt_spi_configuration rt_uint8_t mode; rt_uint8_t data_width; rt_uint16_t reserved; + rt_base_t cs_pin; rt_uint32_t max_hz; }; |
