summaryrefslogtreecommitdiff
path: root/include/kernel/uart.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/kernel/uart.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/kernel/uart.h b/include/kernel/uart.h
new file mode 100644
index 0000000..97eebfd
--- /dev/null
+++ b/include/kernel/uart.h
@@ -0,0 +1,20 @@
+#ifndef _PSP2_KERN_UART_H_
+#define _PSP2_KERN_UART_H_
+
+#include <psp2kern/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int sceUartInit(int port);
+int sceUartReadAvailable(int port);
+int sceUartRead(int port);
+int sceUartWrite(int port, char data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_KERN_UART_H_ */
+