summaryrefslogtreecommitdiff
path: root/include/kernel/uart.h
diff options
context:
space:
mode:
authorSergi Granell2017-11-29 23:38:29 +0100
committerdevnoname1202017-11-29 23:38:29 +0100
commita512c73dd92549475ccc90cd7a5bf3482142733a (patch)
treec2083e3307b6effddfb910d7960c60fcce346b4b /include/kernel/uart.h
parentAdd kscePervasiveUartSetBaudrate NID (diff)
downloadvds-libraries-a512c73dd92549475ccc90cd7a5bf3482142733a.tar.gz
Add psp2kern/{lowio/pervasive.h, power.h, syscon.h, uart.h}, minor nits (#255)
* Add psp2kern/{lowio/pervasive.h, power.h, syscon.h, uart.h}, minor nits * Fix psp2kern/power.h kernelgroup * Remove stray kscePervasiveUartSetBaudrate from psp2kern/uart.h * Add missing docs * Documentation improvements
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_ */
+