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>
This commit is contained in:
Michal Lenc 2023-02-11 11:45:58 +01:00 committed by Xiang Xiao
parent fd91af4f70
commit 824e6b3271
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@
* Pre-processor Definitions
****************************************************************************/
/* CONFIG_SPI_CMDDATA has to be set */
#ifndef CONFIG_SPI_CMDDATA
# error "CONFIG_SPI_CMDDATA option has to be set for SPI communication"
#endif
/* Verify that all configuration requirements have been met */
#ifndef CONFIG_LCD_ST7789_SPIMODE