Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/drivers/gpu/bt81x/bt81x.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ bt81x_rd32(bt81x_t *b, uint32_t addr)
}



static void
bt81x_cmd(bt81x_t *b, uint8_t command, uint8_t param)
{
Expand Down Expand Up @@ -788,6 +787,14 @@ bt81x_backlight(gfx_display_t *gd, uint8_t backlight)
}


uint32_t
bt81x_touch_xy(gfx_display_t *gd)
{
bt81x_t *b = (bt81x_t *)gd;
return bt81x_rd32(b, EVE_REG_CTOUCH_TOUCH0_XY);
}


/************************************************************************
*
* GUI draw primitives
Expand Down Expand Up @@ -1285,3 +1292,4 @@ cmd_gpu_info(cli_t *cli, int argc, char **argv)

CLI_CMD_DEF("gpu_info", cmd_gpu_info);
#endif

3 changes: 3 additions & 0 deletions src/drivers/gpu/bt81x/bt81x.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ struct gfx_display *bt81x_create(spi_t *spi, gpio_t ncs, gpio_t pd, gpio_t irq,
void bt81x_enable(struct gfx_display *, int enabled);

void bt81x_backlight(struct gfx_display *, uint8_t backlight);

uint32_t bt81x_touch_xy(struct gfx_display *gd);

Loading