summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/display/display.c
blob: 1c8f1fb43d87092a790e2396103ce5013a66c525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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;
}