mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 21:35:39 +08:00
fix the code sytle
This commit is contained in:
parent
6c7ae38938
commit
3e6b866956
@ -36,24 +36,20 @@ rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name,
|
||||
#endif
|
||||
#ifdef BSP_USING_SPI1
|
||||
#ifdef BSP_USING_SPI1A //The SPI1A is conflit with UART1 TX RX P0.10 P0.11
|
||||
#define MCU_SPI1_CONFIG \
|
||||
#define MCU_SPI1_CONFIG \
|
||||
{ \
|
||||
.bus_name = "spi1", \
|
||||
.spi_instance = SPI1A \
|
||||
.spi_instance = SPI1A \
|
||||
}
|
||||
#else
|
||||
#define MCU_SPI1_CONFIG \
|
||||
#define MCU_SPI1_CONFIG \
|
||||
{ \
|
||||
.bus_name = "spi1", \
|
||||
.spi_instance = SPI1B \
|
||||
.spi_instance = SPI1B \
|
||||
}
|
||||
#endif
|
||||
|
||||
//TODO LIST SPI1A SPI1B
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
struct mcu_drv_spi_config
|
||||
{
|
||||
char *bus_name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user