2 * File: uart_support.h
\r
3 * Purpose: Implements UART basic support, Derivative Specific Interrupt handler and need function needed
\r
4 * for MSL Support (printf\cout to terminal), defined in <UART.h>
\r
10 #ifndef __UART_SUPPORT_H__
\r
11 #define __UART_SUPPORT_H__
\r
18 #include "support_common.h"
\r
20 #if ENABLE_UART_SUPPORT==1
\r
23 * Include the Freescale UART specific header file for printf/cout/scanf support
\r
25 #include <ansi_parms.h>
\r
34 #define UART_STANDARD 0
\r
35 #define UART_DIVIDER 1
\r
38 #define UART_54451 4
\r
40 #define UART_SUPPORT_TYPE UART_STANDARD
\r
42 void uart_init(int channel, unsigned long systemClockKHz, unsigned long baudRate);
\r
44 /********************************************************************/
\r
46 * Wait for a character to be received on the specified UART
\r
49 * the received character
\r
51 char uart_getchar (int channel);
\r
53 /********************************************************************/
\r
55 * Wait for space in the UART Tx FIFO and then send a character
\r
57 void uart_putchar (int channel, char ch);
\r
60 #endif /* ENABLE_UART_SUPPORT */
\r
66 #endif /* __UART_SUPPORT_H__ */
\r