1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/lcd: adapt ltdc periph disp_dev interface

This commit is contained in:
Alexandre Abadie 2022-04-12 14:32:59 +02:00
parent eb6afbba98
commit 1152a47817
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -27,11 +27,10 @@
#define LCD_DISP_COLOR_DEPTH (16U)
#endif
static void _lcd_map(const disp_dev_t *dev, uint16_t x1, uint16_t x2,
uint16_t y1, uint16_t y2, const uint16_t *color)
static void _lcd_map(const disp_dev_t *dev, const disp_dev_area_t *area, const uint16_t *color)
{
lcd_t *lcd = (lcd_t *)dev;
lcd_pixmap(lcd, x1, x2, y1, y2, color);
lcd_pixmap(lcd, area->x1, area->x2, area->y1, area->y2, color);
}
static uint16_t _lcd_height(const disp_dev_t *disp_dev)