summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/display/display.c
blob: 6fe78a9f37af70cab6cd13a33d5d4ac51147e6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdint.h>

#include <display.h>

struct display_driver *display;

int display_puts(const char *str)
{
	char c;

	if (display->puts)
		display->puts(str);
	else {
		while ((c = *str++))
			display_putchar(c);
	}

	return 0;
}

int display_goto_xy(int x, int y)
{
	char c;

	if (display->goto_xy)
		display->goto_xy(x, y);

	return 0;
}