aboutsummaryrefslogtreecommitdiff
path: root/Source/Serial.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-07-20 22:36:19 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-07-20 22:36:19 +0200
commitcb1c0345c766fada621b521ca39aac02ae25056b (patch)
treee7d20a64ba04886a540e8387b023758dac361b24 /Source/Serial.h
parent98d3232ef413351380d2299af7058fc06a40ff86 (diff)
downloadairport-cb1c0345c766fada621b521ca39aac02ae25056b.tar.gz
+ Added support for SIO (Serial Input Output).
* On SystemLoadFileToBuffer(), files can be now uploaded to PSX using QPSXSerial.
Diffstat (limited to 'Source/Serial.h')
-rw-r--r--Source/Serial.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/Serial.h b/Source/Serial.h
new file mode 100644
index 0000000..7323d3b
--- /dev/null
+++ b/Source/Serial.h
@@ -0,0 +1,32 @@
+#ifndef __SERIAL_HEADER__
+#define __SERIAL_HEADER__
+
+/* *************************************
+ * Includes
+ * *************************************/
+
+#include "Global_Inc.h"
+#include "System.h"
+#include "Gfx.h"
+#include "Font.h"
+
+/* *************************************
+ * Defines
+ * *************************************/
+
+#define SERIAL_DATA_PACKET_SIZE 8
+#define ACK_BYTE_STRING "b"
+
+/* *************************************
+ * Global prototypes
+ * *************************************/
+
+void SerialInit(void);
+bool SerialRead(uint8_t* ptrArray, size_t nBytes);
+bool SerialWrite(void* ptrArray, size_t nBytes);
+
+#ifdef SERIAL_INTERFACE
+void Serial_printf(const char* str, ...);
+#endif // SERIAL_INTERFACE
+
+#endif // __SERIAL_HEADER__