aboutsummaryrefslogtreecommitdiff
path: root/display.h
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-02-27 22:09:06 +1300
committerDavid Phillips <david@yeah.nah.nz>2021-02-27 22:09:06 +1300
commit8f9cd223c74ce0b026ae3368701a443f62d7b3d5 (patch)
tree77d276b9904263d3c6833e213e677dbc0f16679a /display.h
parent27d6d2fc5a1647395a7a9074faf8362d6d0c358a (diff)
downloadaltimeter-8f9cd223c74ce0b026ae3368701a443f62d7b3d5.tar.xz
Migrate display to new peripheral model
Diffstat (limited to 'display.h')
-rw-r--r--display.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/display.h b/display.h
index 771323c..ab8c078 100644
--- a/display.h
+++ b/display.h
@@ -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 *);