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; }