mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Adding Byte-Per-Pixel Memory model option to memlcd
This commit is contained in:
@@ -1148,6 +1148,13 @@ config MEMLCD_SPI_FREQUENCY
|
|||||||
---help---
|
---help---
|
||||||
Define to use a different bus frequency, FIXME DEFAULT VALUE OK?
|
Define to use a different bus frequency, FIXME DEFAULT VALUE OK?
|
||||||
|
|
||||||
|
config MEMLCD_BYTE_PER_PIXEL
|
||||||
|
bool "Byte-Per-Pixel Memory Model"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Selects the Byte-Per-Pixel buffer model, instead of Bit-Per-Pixel.
|
||||||
|
LVGL Graphics Library uses Byte-Per-Pixel memory model.
|
||||||
|
|
||||||
endif # LCD_SHARP_MEMLCD
|
endif # LCD_SHARP_MEMLCD
|
||||||
|
|
||||||
choice
|
choice
|
||||||
|
|||||||
@@ -477,7 +477,9 @@ static int memlcd_putrun(FAR struct lcd_dev_s *dev,
|
|||||||
__clear_bit(col % 8 + i, p);
|
__clear_bit(col % 8 + i, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_LCD_PACKEDMSFIRST
|
#ifdef CONFIG_MEMLCD_BYTE_PER_PIXEL
|
||||||
|
buffer++;
|
||||||
|
#elif defined(CONFIG_LCD_PACKEDMSFIRST)
|
||||||
if (usrmask == LS_BIT)
|
if (usrmask == LS_BIT)
|
||||||
{
|
{
|
||||||
buffer++;
|
buffer++;
|
||||||
@@ -570,7 +572,9 @@ static int memlcd_getrun(FAR struct lcd_dev_s *dev,
|
|||||||
*buffer &= ~usrmask;
|
*buffer &= ~usrmask;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_LCD_PACKEDMSFIRST
|
#ifdef CONFIG_MEMLCD_BYTE_PER_PIXEL
|
||||||
|
buffer++;
|
||||||
|
#elif defined(CONFIG_LCD_PACKEDMSFIRST)
|
||||||
if (usrmask == LS_BIT)
|
if (usrmask == LS_BIT)
|
||||||
{
|
{
|
||||||
buffer++;
|
buffer++;
|
||||||
|
|||||||
Reference in New Issue
Block a user