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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52221_CodeWarrior/] [headers/] [MCF52221_DTIM.h] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2008/05/23 Revision: 0.95
6
 *
7
 * (c) Copyright UNIS, a.s. 1997-2008
8
 * UNIS, a.s.
9
 * Jundrovska 33
10
 * 624 00 Brno
11
 * Czech Republic
12
 * http      : www.processorexpert.com
13
 * mail      : info@processorexpert.com
14
 */
15
 
16
#ifndef __MCF52221_DTIM_H__
17
#define __MCF52221_DTIM_H__
18
 
19
 
20
/*********************************************************************
21
*
22
* DMA Timers (DTIM)
23
*
24
*********************************************************************/
25
 
26
/* Register read/write macros */
27
#define MCF_DTIM0_DTMR                       (*(vuint16*)(0x40000400))
28
#define MCF_DTIM0_DTXMR                      (*(vuint8 *)(0x40000402))
29
#define MCF_DTIM0_DTER                       (*(vuint8 *)(0x40000403))
30
#define MCF_DTIM0_DTRR                       (*(vuint32*)(0x40000404))
31
#define MCF_DTIM0_DTCR                       (*(vuint32*)(0x40000408))
32
#define MCF_DTIM0_DTCN                       (*(vuint32*)(0x4000040C))
33
 
34
#define MCF_DTIM1_DTMR                       (*(vuint16*)(0x40000440))
35
#define MCF_DTIM1_DTXMR                      (*(vuint8 *)(0x40000442))
36
#define MCF_DTIM1_DTER                       (*(vuint8 *)(0x40000443))
37
#define MCF_DTIM1_DTRR                       (*(vuint32*)(0x40000444))
38
#define MCF_DTIM1_DTCR                       (*(vuint32*)(0x40000448))
39
#define MCF_DTIM1_DTCN                       (*(vuint32*)(0x4000044C))
40
 
41
#define MCF_DTIM2_DTMR                       (*(vuint16*)(0x40000480))
42
#define MCF_DTIM2_DTXMR                      (*(vuint8 *)(0x40000482))
43
#define MCF_DTIM2_DTER                       (*(vuint8 *)(0x40000483))
44
#define MCF_DTIM2_DTRR                       (*(vuint32*)(0x40000484))
45
#define MCF_DTIM2_DTCR                       (*(vuint32*)(0x40000488))
46
#define MCF_DTIM2_DTCN                       (*(vuint32*)(0x4000048C))
47
 
48
#define MCF_DTIM3_DTMR                       (*(vuint16*)(0x400004C0))
49
#define MCF_DTIM3_DTXMR                      (*(vuint8 *)(0x400004C2))
50
#define MCF_DTIM3_DTER                       (*(vuint8 *)(0x400004C3))
51
#define MCF_DTIM3_DTRR                       (*(vuint32*)(0x400004C4))
52
#define MCF_DTIM3_DTCR                       (*(vuint32*)(0x400004C8))
53
#define MCF_DTIM3_DTCN                       (*(vuint32*)(0x400004CC))
54
 
55
#define MCF_DTIM_DTMR(x)                     (*(vuint16*)(0x40000400 + ((x)*0x40)))
56
#define MCF_DTIM_DTXMR(x)                    (*(vuint8 *)(0x40000402 + ((x)*0x40)))
57
#define MCF_DTIM_DTER(x)                     (*(vuint8 *)(0x40000403 + ((x)*0x40)))
58
#define MCF_DTIM_DTRR(x)                     (*(vuint32*)(0x40000404 + ((x)*0x40)))
59
#define MCF_DTIM_DTCR(x)                     (*(vuint32*)(0x40000408 + ((x)*0x40)))
60
#define MCF_DTIM_DTCN(x)                     (*(vuint32*)(0x4000040C + ((x)*0x40)))
61
 
62
 
63
/* Bit definitions and macros for MCF_DTIM_DTMR */
64
#define MCF_DTIM_DTMR_RST                    (0x1)
65
#define MCF_DTIM_DTMR_CLK(x)                 (((x)&0x3)<<0x1)
66
#define MCF_DTIM_DTMR_CLK_STOP               (0)
67
#define MCF_DTIM_DTMR_CLK_DIV1               (0x2)
68
#define MCF_DTIM_DTMR_CLK_DIV16              (0x4)
69
#define MCF_DTIM_DTMR_CLK_DTIN               (0x6)
70
#define MCF_DTIM_DTMR_FRR                    (0x8)
71
#define MCF_DTIM_DTMR_ORRI                   (0x10)
72
#define MCF_DTIM_DTMR_OM                     (0x20)
73
#define MCF_DTIM_DTMR_CE(x)                  (((x)&0x3)<<0x6)
74
#define MCF_DTIM_DTMR_CE_NONE                (0)
75
#define MCF_DTIM_DTMR_CE_RISE                (0x40)
76
#define MCF_DTIM_DTMR_CE_FALL                (0x80)
77
#define MCF_DTIM_DTMR_CE_ANY                 (0xC0)
78
#define MCF_DTIM_DTMR_PS(x)                  (((x)&0xFF)<<0x8)
79
 
80
/* Bit definitions and macros for MCF_DTIM_DTXMR */
81
#define MCF_DTIM_DTXMR_MODE16                (0x1)
82
#define MCF_DTIM_DTXMR_HALTED                (0x40)
83
#define MCF_DTIM_DTXMR_DMAEN                 (0x80)
84
 
85
/* Bit definitions and macros for MCF_DTIM_DTER */
86
#define MCF_DTIM_DTER_CAP                    (0x1)
87
#define MCF_DTIM_DTER_REF                    (0x2)
88
 
89
/* Bit definitions and macros for MCF_DTIM_DTRR */
90
#define MCF_DTIM_DTRR_REF(x)                 (((x)&0xFFFFFFFF)<<0)
91
 
92
/* Bit definitions and macros for MCF_DTIM_DTCR */
93
#define MCF_DTIM_DTCR_CAP(x)                 (((x)&0xFFFFFFFF)<<0)
94
 
95
/* Bit definitions and macros for MCF_DTIM_DTCN */
96
#define MCF_DTIM_DTCN_CNT(x)                 (((x)&0xFFFFFFFF)<<0)
97
 
98
 
99
#endif /* __MCF52221_DTIM_H__ */

powered by: WebSVN 2.1.0

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