diff options
Diffstat (limited to 'mig_test/software/include/uart.h')
-rw-r--r-- | mig_test/software/include/uart.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mig_test/software/include/uart.h b/mig_test/software/include/uart.h new file mode 100644 index 0000000..ca040e4 --- /dev/null +++ b/mig_test/software/include/uart.h @@ -0,0 +1,25 @@ +/* + * $HeadURL: https://svn.fzd.de/repo/concast/FWF_Projects/FWKE/hw_sp605/bsp_zpuahb/software/include/uart.h $ + * $Date$ + * $Author$ + * $Revision$ + */ + + +#ifndef UART_H +#define UART_H + + +//////////////////////////////////////// +// uart functions + +#define UART_HW_HANDSHAKE_ON (uart0-> ctrl |= UART_CONTROL_FLOW_CONTROL) +#define UART_HW_HANDSHAKE_OFF (uart0-> ctrl &= ~UART_CONTROL_FLOW_CONTROL) + +void uart_init( void); +unsigned int uart_check_receiver(); +char uart_getchar(); +void uart_putchar_raw( char c); +char uart_putchar( char c); + +#endif // UART_H |