diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-07-09 18:47:59 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-07-09 18:47:59 +1000 |
commit | 6dea259ea2dd0afc4b610961e211d77460cfd0c6 (patch) | |
tree | 225a157a5ac0c7cf8d4e1b451b47075a57e3110b /boards/base/RaspberryPi/example-FreeRTOS/Drivers/uart.h | |
parent | ab9ce99647965d0d3e9ea65ea92ad694c8b8ee1b (diff) | |
download | uGFX-6dea259ea2dd0afc4b610961e211d77460cfd0c6.tar.gz uGFX-6dea259ea2dd0afc4b610961e211d77460cfd0c6.tar.bz2 uGFX-6dea259ea2dd0afc4b610961e211d77460cfd0c6.zip |
Example added for FreeRTOS on Raspberry Pi
Diffstat (limited to 'boards/base/RaspberryPi/example-FreeRTOS/Drivers/uart.h')
-rw-r--r-- | boards/base/RaspberryPi/example-FreeRTOS/Drivers/uart.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/boards/base/RaspberryPi/example-FreeRTOS/Drivers/uart.h b/boards/base/RaspberryPi/example-FreeRTOS/Drivers/uart.h new file mode 100644 index 00000000..fe7f64aa --- /dev/null +++ b/boards/base/RaspberryPi/example-FreeRTOS/Drivers/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 |