diff --git a/bsp/stm32/stm32l496-ali-developer/board/ports/drv_spi_lcd.c b/bsp/stm32/stm32l496-ali-developer/board/ports/drv_spi_lcd.c index 74054eae5c..e37a67f4a1 100644 --- a/bsp/stm32/stm32l496-ali-developer/board/ports/drv_spi_lcd.c +++ b/bsp/stm32/stm32l496-ali-developer/board/ports/drv_spi_lcd.c @@ -14,14 +14,12 @@ #include #include -#define BSP_USING_SPI_LCD - #ifdef BSP_USING_SPI_LCD static int rt_hw_spi_lcd_init(void) { - rt_hw_spi_device_attach("spi1", "spi10", GPIOA, GPIO_PIN_4); - + rt_hw_spi_device_attach("spi1", "spi10", GPIOA, GPIO_PIN_4); + return RT_EOK; } INIT_PREV_EXPORT(rt_hw_spi_lcd_init);