[bsp/at32] remove #ifndef (#7168)
This commit is contained in:
parent
69e5b10e31
commit
3bee170d52
|
@ -8,6 +8,7 @@
|
||||||
* 2022-05-16 shelton first version
|
* 2022-05-16 shelton first version
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <rtdevice.h>
|
||||||
#include "drv_common.h"
|
#include "drv_common.h"
|
||||||
#include "drv_qspi.h"
|
#include "drv_qspi.h"
|
||||||
|
|
||||||
|
|
|
@ -17,23 +17,21 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BSP_USING_QSPI
|
#ifdef BSP_USING_QSPI1
|
||||||
#ifndef QSPI1_BUS_CONFIG
|
|
||||||
#define QSPI1_BUS_CONFIG \
|
#define QSPI1_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.qspi_x = QSPI1, \
|
.qspi_x = QSPI1, \
|
||||||
.bus_name = "qspi1", \
|
.bus_name = "qspi1", \
|
||||||
}
|
}
|
||||||
#endif /* QSPI1_BUS_CONFIG */
|
#endif /* BSP_USING_QSPI1 */
|
||||||
|
|
||||||
#ifndef QSPI2_BUS_CONFIG
|
#ifdef BSP_USING_QSPI2
|
||||||
#define QSPI2_BUS_CONFIG \
|
#define QSPI2_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.qspi_x = QSPI2, \
|
.qspi_x = QSPI2, \
|
||||||
.bus_name = "qspi2", \
|
.bus_name = "qspi2", \
|
||||||
}
|
}
|
||||||
#endif /* QSPI2_BUS_CONFIG */
|
#endif /* BSP_USING_QSPI2 */
|
||||||
#endif /* BSP_USING_QSPI */
|
|
||||||
|
|
||||||
rt_err_t at32_qspi_bus_attach_device(const char *bus_name, const char *device_name, rt_uint32_t pin, rt_uint8_t data_line_width, void (*enter_qspi_mode)(), void (*exit_qspi_mode)());
|
rt_err_t at32_qspi_bus_attach_device(const char *bus_name, const char *device_name, rt_uint32_t pin, rt_uint8_t data_line_width, void (*enter_qspi_mode)(), void (*exit_qspi_mode)());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue