diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.c b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.c index 1795343ac3..3db73dbb06 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.c +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_soft_spi.c @@ -11,7 +11,7 @@ #include #include "drv_soft_spi.h" -#ifdef BSP_USING_SOFT_I2C +#ifdef BSP_USING_SOFT_SPI #define LOG_TAG "drv.soft_spi" #include @@ -225,4 +225,4 @@ int rt_soft_spi_init(void) } INIT_BOARD_EXPORT(rt_soft_spi_init); -#endif /* BSP_USING_SOFT_I2C */ +#endif /* BSP_USING_SOFT_SPI */