diff options
author | David Phillips <david@yeah.nah.nz> | 2021-02-27 22:09:06 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2021-02-27 22:09:06 +1300 |
commit | 8f9cd223c74ce0b026ae3368701a443f62d7b3d5 (patch) | |
tree | 77d276b9904263d3c6833e213e677dbc0f16679a /display.h | |
parent | 27d6d2fc5a1647395a7a9074faf8362d6d0c358a (diff) | |
download | altimeter-8f9cd223c74ce0b026ae3368701a443f62d7b3d5.tar.xz |
Migrate display to new peripheral model
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -8,7 +8,11 @@ #define C_IDLE (3) #define C_ASC (4) -void display_clear(void); -void display_init(void); -void display_write(const char *text); -void display_set_cursor(int x, int y); +struct display { + void (*clear)(void); + void (*init)(void); + void (*write)(const char *text); + void (*set_cursor)(int x, int y); +}; + +void get_system_display(struct display *); |