diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-20 22:36:19 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-20 22:36:19 +0200 |
| commit | cb1c0345c766fada621b521ca39aac02ae25056b (patch) | |
| tree | e7d20a64ba04886a540e8387b023758dac361b24 /Source/Serial.h | |
| parent | 98d3232ef413351380d2299af7058fc06a40ff86 (diff) | |
| download | airport-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.h | 32 |
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__ |
