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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [coldfire/] [m5272c3/] [current/] [include/] [plf_serial.h] - Blame information for rev 811

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

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_PLF_SERIAL_H
2
#define CYGONCE_PLF_SERIAL_H
3
 
4
//=============================================================================
5
//
6
//      plf_serial.h
7
//
8
//      Platform specific definitions for diagnstic ouput via serial port
9
//
10
//==========================================================================
11
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
12
// -------------------------------------------                              
13
// This file is part of eCos, the Embedded Configurable Operating System.   
14
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2006 Free Software Foundation, Inc.
15
//
16
// eCos is free software; you can redistribute it and/or modify it under    
17
// the terms of the GNU General Public License as published by the Free     
18
// Software Foundation; either version 2 or (at your option) any later      
19
// version.                                                                 
20
//
21
// eCos is distributed in the hope that it will be useful, but WITHOUT      
22
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
23
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
24
// for more details.                                                        
25
//
26
// You should have received a copy of the GNU General Public License        
27
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
28
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
29
//
30
// As a special exception, if other files instantiate templates or use      
31
// macros or inline functions from this file, or you compile this file      
32
// and link it with other works to produce a work based on this file,       
33
// this file does not by itself cause the resulting work to be covered by   
34
// the GNU General Public License. However the source code for this file    
35
// must still be made available in accordance with section (3) of the GNU   
36
// General Public License v2.                                               
37
//
38
// This exception does not invalidate any other reasons why a work based    
39
// on this file might be covered by the GNU General Public License.         
40
// -------------------------------------------                              
41
// ####ECOSGPLCOPYRIGHTEND####                                              
42
//==========================================================================
43
//#####DESCRIPTIONBEGIN####
44
//
45
// Author(s):     Enrico Piria
46
// Contributors:
47
// Date:          2005-25-06
48
// Purpose:       Definitions for diagnostic output via serial port
49
// Usage:         #include <cyg/hal/plf_serial.h>
50
//
51
//####DESCRIPTIONEND####
52
//========================================================================
53
 
54
#define MCF5272_UART_UMR_8BNP       (0x13)
55
#define MCF5272_UART_UMR_1S         (0x07)
56
 
57
#define MCF5272_UART_USR_RRDY       (1<<0)
58
#define MCF5272_UART_USR_FFUL       (1<<1)
59
#define MCF5272_UART_USR_TXRDY      (1<<2)
60
#define MCF5272_UART_USR_TXEMP      (1<<3)
61
#define MCF5272_UART_USR_OE         (1<<4)
62
#define MCF5272_UART_USR_PE         (1<<5)
63
#define MCF5272_UART_USR_FE         (1<<6)
64
#define MCF5272_UART_USR_RB         (1<<7)
65
 
66
#define MCF5272_UART_UCSR_CLKIN     (0xDD)
67
 
68
#define MCF5272_UART_UCR_RMR        (0x01<<4)
69
#define MCF5272_UART_UCR_RRX        (0x02<<4)
70
#define MCF5272_UART_UCR_RTX        (0x03<<4)
71
#define MCF5272_UART_UCR_RES        (0x04<<4)
72
#define MCF5272_UART_UCR_RBC        (0x05<<4)
73
#define MCF5272_UART_UCR_TXEN       (1<<2)
74
#define MCF5272_UART_UCR_TXDE       (1<<3)
75
#define MCF5272_UART_UCR_RXEN       (1<<0)
76
#define MCF5272_UART_UCR_RXDE       (1<<1)
77
 
78
#define MCF5272_UART_UCR_TXRXEN     \
79
        (MCF5272_UART_UCR_TXEN |    \
80
         MCF5272_UART_UCR_RXEN)
81
 
82
#define MCF5272_UART_UIMR_FFULL     (0x02)
83
 
84
#define MCF5272_UART_UTF_TXB        (0x1F)
85
 
86
#define MCF5272_UART_UOP0_RTS       (0x01)
87
#define MCF5272_UART_UOP1_RTS       (0x01)
88
 
89
#define MCF5272_GPIO_PBCNT_URT0_EN      (0x00000155)
90
#define MCF5272_GPIO_PBCNT_URT0_DE      (0x00000000)
91
#define MCF5272_GPIO_PBCNT_URT0_MSK     (0x000003FF)
92
 
93
#define MCF5272_GPIO_PDCNT_URT1_EN      (0x000002AA)
94
#define MCF5272_GPIO_PDCNT_URT1_DE      (0x00000000)
95
#define MCF5272_GPIO_PDCNT_URT1_MSK     (0x000003FF)
96
 
97
// ---------------------------------------------------------------------------
98
// End of plf_serial.h
99
#endif // CYGONCE_PLF_SERIAL_H

powered by: WebSVN 2.1.0

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