aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/RaspberryPi/FreeRTOS/uart.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-10-06 17:05:16 +1000
committerinmarket <andrewh@inmarket.com.au>2014-10-06 17:05:48 +1000
commit211254ed6c5a945be18334aa540de55db885000c (patch)
tree19b94dd69a4a95d4b718c06c0d6eb27f6aa7a9a8 /boards/base/RaspberryPi/FreeRTOS/uart.h
parent3348128fe289aae37f2df46802709aaa7aedb0c1 (diff)
downloaduGFX-211254ed6c5a945be18334aa540de55db885000c.tar.gz
uGFX-211254ed6c5a945be18334aa540de55db885000c.tar.bz2
uGFX-211254ed6c5a945be18334aa540de55db885000c.zip
Add support for FreeRTOS into make system
Diffstat (limited to 'boards/base/RaspberryPi/FreeRTOS/uart.h')
-rw-r--r--boards/base/RaspberryPi/FreeRTOS/uart.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/boards/base/RaspberryPi/FreeRTOS/uart.h b/boards/base/RaspberryPi/FreeRTOS/uart.h
new file mode 100644
index 00000000..fe7f64aa
--- /dev/null
+++ b/boards/base/RaspberryPi/FreeRTOS/uart.h
@@ -0,0 +1,25 @@
+/* uart.h - UART initialization & communication */
+
+#ifndef UART_H
+#define UART_H
+
+#include <stdint.h>
+
+/*
+ * Initialize UART0.
+ */
+void uart_init();
+
+/*
+ * Transmit a byte via UART0.
+ * uint8_t Byte: byte to send.
+ */
+void uart_putc(uint8_t byte);
+
+/*
+ * print a string to the UART one character at a time
+ * const char *str: 0-terminated string
+ */
+void uart_puts(const char *str);
+
+#endif // #ifndef UART_H