/* rtxcuart.h - MCF5282EVB uart support */ /* * RTXC Quadros Version 1.0 * Copyright (c) 1999-2003 * Quadros Systems, Inc. * ALL RIGHTS RESERVED * * THE INFORMATION HEREIN IS CONFIDENTIAL AND PROPRIETARY. * UNAUTHORIZED DISCLOSURE OR DISTRIBUTION IS PROHIBITED. */ #ifndef _RTXCUART_H /* { */ #define _RTXCUART_H /* NOTE: 2 UART devices were checked out - wld: 03-14-03 */ #define HAS_UART0 /* configure as needed */ #undef HAS_UART1 /* configure as needed */ #undef HAS_UART2 /* not yet implemented */ #define UART0_LEVEL 1 /* configure as needed (1...KCL) */ #define UART1_LEVEL 2 /* configure as needed (1...KCL) */ #define UART2_LEVEL 3 /* configure as needed (1...KCL) */ #define UART0_PRIORITY 1 /* configure as needed (0..7) */ #define UART1_PRIORITY 1 /* configure as needed (0..7) */ #define UART2_PRIORITY 1 /* configure as needed (0..7) */ #define BAUDRATE0 19200 /* 19200 is default */ #define BAUDRATE1 19200 /* 19200 is default */ #define BAUDRATE2 19200 /* 19200 is default */ /* #include this file after rtxcapi.h for the following macros */ #if defined(HAS_Queues) && defined(HAS_Semaphores) && defined(HAS_Tasks) /* { */ /* Probably HAS_RTXCms or (HAS_RTXCms && HAS_RTXCss) */ #else #ifdef HAS_Threads /* { */ #define HAS_RTXCss_only /* Transmit and receive queue configuration. */ #define UART_TX_SIZE 128 #define UART_RX_SIZE 64 #define SS_UART_STATS char rtxcss_uart_rx(void); int rtxcss_uart_tx(char); #endif /* } HAS_Threads */ #endif /* } HAS_Queues && HAS_Semaphores && HAS_Tasks */ void mcf523x_uart_init(void); /* device n = 0..2, baudrate = 9600, 19200, etc */ void mcf523x_uart_baudrate_set(int n, int baudrate); #endif /* _RTXCUART_H */