Skip to content

Commit 824e6b3

Browse files
michallencxiaoxiang781216
authored andcommitted
lcd/st7789: raise compilation error when CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CMDDATA is required for correct functionality of the display. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
1 parent fd91af4 commit 824e6b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/lcd/st7789.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
* Pre-processor Definitions
4646
****************************************************************************/
4747

48+
/* CONFIG_SPI_CMDDATA has to be set */
49+
50+
#ifndef CONFIG_SPI_CMDDATA
51+
# error "CONFIG_SPI_CMDDATA option has to be set for SPI communication"
52+
#endif
53+
4854
/* Verify that all configuration requirements have been met */
4955

5056
#ifndef CONFIG_LCD_ST7789_SPIMODE

0 commit comments

Comments
 (0)