Fix error: converting the result of '<<' to a boolean always evaluates to true
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
720acac6af
commit
908bade7a7
@ -70,11 +70,8 @@
|
||||
* ByPass_Mode: 1 (Memory)
|
||||
*/
|
||||
|
||||
#define STM32_ILI9341_IFMODE_PARAM ((!ILI9341_INTERFACE_CONTROL_EPL) | \
|
||||
ILI9341_INTERFACE_CONTROL_DPL | \
|
||||
(!ILI9341_INTERFACE_CONTROL_HSPL) | \
|
||||
(!ILI9341_INTERFACE_CONTROL_VSPL) | \
|
||||
ILI9341_INTERFACE_CONTROL_RCM(2) | \
|
||||
#define STM32_ILI9341_IFMODE_PARAM (ILI9341_INTERFACE_CONTROL_DPL | \
|
||||
ILI9341_INTERFACE_CONTROL_RCM(2) | \
|
||||
ILI9341_INTERFACE_CONTROL_BPASS)
|
||||
|
||||
/* Interface control (IFCTL)
|
||||
@ -87,11 +84,7 @@
|
||||
* WEMODE: 1 Reset column and page if data transfer exceeds
|
||||
*/
|
||||
|
||||
#define STM32_ILI9341_IFCTL_PARAM1 (ILI9341_INTERFACE_CONTROL_WEMODE | \
|
||||
!ILI9341_INTERFACE_CONTROL_BGREOR | \
|
||||
!ILI9341_INTERFACE_CONTROL_MVEOR | \
|
||||
!ILI9341_INTERFACE_CONTROL_MXEOR | \
|
||||
!ILI9341_INTERFACE_CONTROL_MYEOR)
|
||||
#define STM32_ILI9341_IFCTL_PARAM1 (ILI9341_INTERFACE_CONTROL_WEMODE)
|
||||
|
||||
/* Parameter 2: 0x0000
|
||||
*
|
||||
@ -110,10 +103,8 @@
|
||||
* RIM: 0 18-bit 1 transfer/pixel RGB interface mode
|
||||
*
|
||||
*/
|
||||
#define STM32_ILI9341_IFCTL_PARAM3 ((!ILI9341_INTERFACE_CONTROL_RIM) | \
|
||||
ILI9341_INTERFACE_CONTROL_RM | \
|
||||
ILI9341_INTERFACE_CONTROL_DM(1) | \
|
||||
(!ILI9341_INTERFACE_CONTROL_ENDIAN))
|
||||
#define STM32_ILI9341_IFCTL_PARAM3 (ILI9341_INTERFACE_CONTROL_RM | \
|
||||
ILI9341_INTERFACE_CONTROL_DM(1))
|
||||
|
||||
/* LCD CONTROL */
|
||||
|
||||
|
@ -79,10 +79,7 @@
|
||||
* ByPass_Mode: 1 (Memory)
|
||||
*/
|
||||
|
||||
#define STM32_ILI9341_IFMODE_PARAM ((!ILI9341_INTERFACE_CONTROL_EPL) | \
|
||||
ILI9341_INTERFACE_CONTROL_DPL | \
|
||||
(!ILI9341_INTERFACE_CONTROL_HSPL) | \
|
||||
(!ILI9341_INTERFACE_CONTROL_VSPL) | \
|
||||
#define STM32_ILI9341_IFMODE_PARAM (ILI9341_INTERFACE_CONTROL_DPL | \
|
||||
ILI9341_INTERFACE_CONTROL_RCM(2) | \
|
||||
ILI9341_INTERFACE_CONTROL_BPASS)
|
||||
|
||||
@ -96,11 +93,7 @@
|
||||
* WEMODE: 1 Reset column and page if data transfer exceeds
|
||||
*/
|
||||
|
||||
#define STM32_ILI9341_IFCTL_PARAM1 (ILI9341_INTERFACE_CONTROL_WEMODE | \
|
||||
!ILI9341_INTERFACE_CONTROL_BGREOR | \
|
||||
!ILI9341_INTERFACE_CONTROL_MVEOR | \
|
||||
!ILI9341_INTERFACE_CONTROL_MXEOR | \
|
||||
!ILI9341_INTERFACE_CONTROL_MYEOR)
|
||||
#define STM32_ILI9341_IFCTL_PARAM1 (ILI9341_INTERFACE_CONTROL_WEMODE)
|
||||
|
||||
/* Parameter 2: 0x0000
|
||||
*
|
||||
@ -119,10 +112,8 @@
|
||||
* RIM: 0 18-bit 1 transfer/pixel RGB interface mode
|
||||
*
|
||||
*/
|
||||
#define STM32_ILI9341_IFCTL_PARAM3 ((!ILI9341_INTERFACE_CONTROL_RIM) | \
|
||||
ILI9341_INTERFACE_CONTROL_RM | \
|
||||
ILI9341_INTERFACE_CONTROL_DM(1) | \
|
||||
(!ILI9341_INTERFACE_CONTROL_ENDIAN))
|
||||
#define STM32_ILI9341_IFCTL_PARAM3 (ILI9341_INTERFACE_CONTROL_RM | \
|
||||
ILI9341_INTERFACE_CONTROL_DM(1))
|
||||
|
||||
/* Memory access control (MADCTL) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user