diff options
author | pashamray <pashamray@gmail.com> | 2014-07-10 08:04:52 +0300 |
---|---|---|
committer | pashamray <pashamray@gmail.com> | 2014-07-10 08:04:52 +0300 |
commit | b46e58ba6ccd80130b05dc662739cde55a8275f8 (patch) | |
tree | abb566e21fbea1f475cb3e1496cd5f5eaae3823e /boards/base/RaspberryPi/example-FreeRTOS/Drivers/uart.h | |
parent | ddeeacea0e31ee6d2dad798b6a5f79bbd548b8b9 (diff) | |
parent | 5c8c0c7b36cd8f2c94b67cce56e99804a048a906 (diff) | |
download | uGFX-b46e58ba6ccd80130b05dc662739cde55a8275f8.tar.gz uGFX-b46e58ba6ccd80130b05dc662739cde55a8275f8.tar.bz2 uGFX-b46e58ba6ccd80130b05dc662739cde55a8275f8.zip |
Tectu/ugfx слито с master
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 |