| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,24 @@ |
| 1 |
+/* |
|
| 2 |
+ * Author: Pawel Jablonski |
|
| 3 |
+ * E-mail: pj@xirx.net |
|
| 4 |
+ * WWW: xirx.net |
|
| 5 |
+ * GIT: git.xirx.net |
|
| 6 |
+ * |
|
| 7 |
+ * License: You can use this code however you like |
|
| 8 |
+ * but leave information about the original author. |
|
| 9 |
+ * Code is free for non-commercial and commercial use. |
|
| 10 |
+ */ |
|
| 11 |
+ |
|
| 12 |
+#ifndef _RS232_H |
|
| 13 |
+#define _RS232_H |
|
| 14 |
+ |
|
| 15 |
+#include "type.h" |
|
| 16 |
+ |
|
| 17 |
+void rs232Init(void); |
|
| 18 |
+ |
|
| 19 |
+void rs232Send(unsigned char byte); |
|
| 20 |
+unsigned char rs232Receive(void); |
|
| 21 |
+ |
|
| 22 |
+bool rs232RxIsData(void); |
|
| 23 |
+ |
|
| 24 |
+#endif |