OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52221_CodeWarrior/] [sources/] [uart_support.h] - Blame information for rev 866

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/*
2
 * File:        uart_support.h
3
 * Purpose:     Implements UART basic support, Derivative Specific Interrupt handler and need function needed
4
 *              for MSL Support (printf\cout to terminal), defined in <UART.h>
5
 *
6
 * Notes:
7
 *
8
 */
9
 
10
#ifndef __UART_SUPPORT_H__
11
#define __UART_SUPPORT_H__
12
 
13
#ifdef __cplusplus
14
extern "C" {
15
#endif
16
 
17
 
18
#include "support_common.h"
19
 
20
#if ENABLE_UART_SUPPORT==1 
21
 
22
/*
23
 * Include the Freescale UART specific header file for printf/cout/scanf support
24
 */
25
#include <ansi_parms.h>
26
#ifdef __cplusplus
27
extern "C" {
28
#endif
29
#include <UART.h>
30
#ifdef __cplusplus
31
}
32
#endif
33
 
34
#define UART_STANDARD   0
35
#define UART_DIVIDER    1
36
#define UART_5407               2
37
#define UART_PSC                3
38
#define UART_54451              4
39
 
40
#define UART_SUPPORT_TYPE    UART_STANDARD
41
 
42
void uart_init(int channel, unsigned long systemClockKHz, unsigned long baudRate);
43
 
44
/********************************************************************/
45
/*
46
 * Wait for a character to be received on the specified UART
47
 *
48
 * Return Values:
49
 *  the received character
50
 */
51
char uart_getchar (int channel);
52
 
53
/********************************************************************/
54
/*
55
 * Wait for space in the UART Tx FIFO and then send a character
56
 */
57
void uart_putchar (int channel, char ch);
58
 
59
 
60
#endif  /* ENABLE_UART_SUPPORT */
61
 
62
#ifdef __cplusplus
63
}
64
#endif
65
 
66
#endif /* __UART_SUPPORT_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.