Fix lcd/ili9225.c:388:46: error: shift count >= width of type

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 13:24:26 +08:00 committed by Petro Karashchenko
parent f28cfbf2f3
commit 1a942c3c31

View File

@ -223,7 +223,7 @@
#define ILI9225_VCI_REC_VCIR_SHIFT (4) /* Set CVI recycling period */
#define ILI9225_VCI_REC_VCIR_MASK (0x7 << ILI9225_VCI_REC_VCIR_SHIFT)
#define ILI9225_VCI_REC_VCIR(n) (((uint16_t)(n) << ILI9225_VCI_REC_VCIR_MASK) & ILI9225_VCI_REC_VCIR_SHIFT)
#define ILI9225_VCI_REC_VCIR(n) (((uint16_t)(n) << ILI9225_VCI_REC_VCIR_SHIFT) & ILI9225_VCI_REC_VCIR_MASK)
/* ILI9225_HORIZONTAL_GRAM_ADDR_SET,
* Horizontal GRAM Address Set, Offset: 0x20