diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-10-06 17:05:16 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-10-06 17:05:16 +1000 |
commit | 5a3f22617b02ec366461be21765e636e6bdd0222 (patch) | |
tree | 853945ab638d80f7d027bd08231f18ea94b4b4e9 /boards/base/RaspberryPi/FreeRTOS/uart.h | |
parent | 50dfad6f038ed5d20a357f634a70b23c570b26ed (diff) | |
download | uGFX-5a3f22617b02ec366461be21765e636e6bdd0222.tar.gz uGFX-5a3f22617b02ec366461be21765e636e6bdd0222.tar.bz2 uGFX-5a3f22617b02ec366461be21765e636e6bdd0222.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.h | 25 |
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 |