aboutsummaryrefslogtreecommitdiff
path: root/svc_interface.h
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-30 14:36:31 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-30 14:36:31 +0100
commit26685f5203bc38cfa082b96182a406f4f7e6435a (patch)
tree5566b6812c7cc127da597a08a6824616b2aa5bb5 /svc_interface.h
parentee8668f9fcd952e4952706789bdde7fd223dacb5 (diff)
downloadrpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.tar.gz
rpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.zip
implement getchar() and putchar() in terms of supervisor call
Diffstat (limited to 'svc_interface.h')
-rw-r--r--svc_interface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/svc_interface.h b/svc_interface.h
new file mode 100644
index 0000000..aa478ce
--- /dev/null
+++ b/svc_interface.h
@@ -0,0 +1,11 @@
+#ifndef SVC_INTERFACE_H
+#define SVC_INTERFACE_H
+
+enum svc_type
+ {
+ UART_PUTCHAR,
+ UART_GETCHAR,
+ UART_WRITE
+ };
+
+#endif // SVC_INTERFACE_H