diff --git a/bsp/ls1cdev/drivers/touch.c b/bsp/ls1cdev/drivers/touch.c index 5172b7a359..249e7682bf 100644 --- a/bsp/ls1cdev/drivers/touch.c +++ b/bsp/ls1cdev/drivers/touch.c @@ -22,6 +22,8 @@ * 2017-12-30 Sundm75 first version */ +#include +#include #include #include #include "ls1c.h" @@ -30,9 +32,9 @@ #include "drv_spi.h" #include "touch.h" +#ifdef RT_USING_RTGUI + #include -#include -#include #include #include #include @@ -605,3 +607,5 @@ rt_err_t rtgui_touch_hw_init(const char * spi_device_name) rt_device_init((rt_device_t)touch); return RT_EOK; } + +#endif