From 7a874e5d4c1877f7366d80ca369061d8a1724dfa Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 19 Dec 2014 13:52:40 -0600 Subject: [PATCH] ili9341: update interface control definitions Signed-off-by: Marco Krahl --- include/nuttx/lcd/ili9341.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/nuttx/lcd/ili9341.h b/include/nuttx/lcd/ili9341.h index 7652c3d2db..6450d4f2d0 100644 --- a/include/nuttx/lcd/ili9341.h +++ b/include/nuttx/lcd/ili9341.h @@ -191,6 +191,17 @@ #define ILI9341_INTERFACE_CONTROL_DM(n) ((n) << ILI9341_INTERFACE_CONTROL_DM_SHIFT) #define ILI9341_INTERFACE_CONTROL_ENDIAN (1 << 5) +/* Interface Mode control */ + +#define ILI9341_INTERFACE_CONTROL_EPL (1) +#define ILI9341_INTERFACE_CONTROL_DPL (1 << 1) +#define ILI9341_INTERFACE_CONTROL_HSPL (1 << 2) +#define ILI9341_INTERFACE_CONTROL_VSPL (1 << 3) +#define ILI9341_INTERFACE_CONTROL_RCM_SHIFT (5) +#define ILI9341_INTERFACE_CONTROL_RCM_MASK (2 << ILI9341_INTERFACE_CONTROL_RCM_SHIFT) +#define ILI9341_INTERFACE_CONTROL_RCM(n) ((n) << ILI9341_INTERFACE_CONTROL_RCM_SHIFT) +#define ILI9341_INTERFACE_CONTROL_BPASS (1 << 7) + /************************************************************************************** * Public Types **************************************************************************************/