diff --git a/drivers/s6d1121_lld.h b/drivers/s6d1121_lld.h index b2547c37..42fe3b0f 100644 --- a/drivers/s6d1121_lld.h +++ b/drivers/s6d1121_lld.h @@ -1,6 +1,10 @@ #ifndef S6D1121_H #define S6D1121_H + #include "glcd.h" +#include "lcdconf.h" + +#ifdef LCD_USE_S6D1121 // I/O assignments #define LCD_BL_GPIO GPIOB @@ -36,4 +40,5 @@ uint16_t lld_lcdGetHeight(void); uint16_t lld_lcdGetWidth(void); #endif +#endif diff --git a/drivers/ssd1289_lld.h b/drivers/ssd1289_lld.h index bfcfe105..db109749 100644 --- a/drivers/ssd1289_lld.h +++ b/drivers/ssd1289_lld.h @@ -1,9 +1,10 @@ #ifndef SSD1289_H #define SSD1289_H -#ifndef LCD_USE_SSD1289 - #include "glcd.h" +#include "lcdconf.h" + +#ifdef LCD_USE_SSD1289 #define Set_CS palSetPad(LCD_CMD_PORT, LCD_CS); #define Clr_CS palClearPad(LCD_CMD_PORT, LCD_CS); @@ -27,3 +28,4 @@ uint16_t lld_lcdGetWidth(void); #endif #endif +