Skip to content

Commit 1152a47

Browse files
committed
drivers/lcd: adapt ltdc periph disp_dev interface
1 parent eb6afbb commit 1152a47

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/lcd/lcd_disp_dev.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
#define LCD_DISP_COLOR_DEPTH (16U)
2828
#endif
2929

30-
static void _lcd_map(const disp_dev_t *dev, uint16_t x1, uint16_t x2,
31-
uint16_t y1, uint16_t y2, const uint16_t *color)
30+
static void _lcd_map(const disp_dev_t *dev, const disp_dev_area_t *area, const uint16_t *color)
3231
{
3332
lcd_t *lcd = (lcd_t *)dev;
34-
lcd_pixmap(lcd, x1, x2, y1, y2, color);
33+
lcd_pixmap(lcd, area->x1, area->x2, area->y1, area->y2, color);
3534
}
3635

3736
static uint16_t _lcd_height(const disp_dev_t *disp_dev)

0 commit comments

Comments
 (0)