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_PWM.h] - Blame information for rev 592

Go to most recent revision | 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_PWM_H__
17
#define __MCF52221_PWM_H__
18
 
19
 
20
/*********************************************************************
21
*
22
* Pulse Width Modulation (PWM)
23
*
24
*********************************************************************/
25
 
26
/* Register read/write macros */
27
#define MCF_PWM_PWME                         (*(vuint8 *)(0x401B0000))
28
#define MCF_PWM_PWMPOL                       (*(vuint8 *)(0x401B0001))
29
#define MCF_PWM_PWMCLK                       (*(vuint8 *)(0x401B0002))
30
#define MCF_PWM_PWMPRCLK                     (*(vuint8 *)(0x401B0003))
31
#define MCF_PWM_PWMCAE                       (*(vuint8 *)(0x401B0004))
32
#define MCF_PWM_PWMCTL                       (*(vuint8 *)(0x401B0005))
33
#define MCF_PWM_PWMSCLA                      (*(vuint8 *)(0x401B0008))
34
#define MCF_PWM_PWMSCLB                      (*(vuint8 *)(0x401B0009))
35
#define MCF_PWM_PWMCNT0                      (*(vuint8 *)(0x401B000C))
36
#define MCF_PWM_PWMCNT1                      (*(vuint8 *)(0x401B000D))
37
#define MCF_PWM_PWMCNT2                      (*(vuint8 *)(0x401B000E))
38
#define MCF_PWM_PWMCNT3                      (*(vuint8 *)(0x401B000F))
39
#define MCF_PWM_PWMCNT4                      (*(vuint8 *)(0x401B0010))
40
#define MCF_PWM_PWMCNT5                      (*(vuint8 *)(0x401B0011))
41
#define MCF_PWM_PWMCNT6                      (*(vuint8 *)(0x401B0012))
42
#define MCF_PWM_PWMCNT7                      (*(vuint8 *)(0x401B0013))
43
#define MCF_PWM_PWMPER0                      (*(vuint8 *)(0x401B0014))
44
#define MCF_PWM_PWMPER1                      (*(vuint8 *)(0x401B0015))
45
#define MCF_PWM_PWMPER2                      (*(vuint8 *)(0x401B0016))
46
#define MCF_PWM_PWMPER3                      (*(vuint8 *)(0x401B0017))
47
#define MCF_PWM_PWMPER4                      (*(vuint8 *)(0x401B0018))
48
#define MCF_PWM_PWMPER5                      (*(vuint8 *)(0x401B0019))
49
#define MCF_PWM_PWMPER6                      (*(vuint8 *)(0x401B001A))
50
#define MCF_PWM_PWMPER7                      (*(vuint8 *)(0x401B001B))
51
#define MCF_PWM_PWMDTY0                      (*(vuint8 *)(0x401B001C))
52
#define MCF_PWM_PWMDTY1                      (*(vuint8 *)(0x401B001D))
53
#define MCF_PWM_PWMDTY2                      (*(vuint8 *)(0x401B001E))
54
#define MCF_PWM_PWMDTY3                      (*(vuint8 *)(0x401B001F))
55
#define MCF_PWM_PWMDTY4                      (*(vuint8 *)(0x401B0020))
56
#define MCF_PWM_PWMDTY5                      (*(vuint8 *)(0x401B0021))
57
#define MCF_PWM_PWMDTY6                      (*(vuint8 *)(0x401B0022))
58
#define MCF_PWM_PWMDTY7                      (*(vuint8 *)(0x401B0023))
59
#define MCF_PWM_PWMSDN                       (*(vuint8 *)(0x401B0024))
60
#define MCF_PWM_PWMCNT(x)                    (*(vuint8 *)(0x401B000C + ((x)*0x1)))
61
#define MCF_PWM_PWMPER(x)                    (*(vuint8 *)(0x401B0014 + ((x)*0x1)))
62
#define MCF_PWM_PWMDTY(x)                    (*(vuint8 *)(0x401B001C + ((x)*0x1)))
63
 
64
 
65
/* Bit definitions and macros for MCF_PWM_PWME */
66
#define MCF_PWM_PWME_PWME0                   (0x1)
67
#define MCF_PWM_PWME_PWME1                   (0x2)
68
#define MCF_PWM_PWME_PWME2                   (0x4)
69
#define MCF_PWM_PWME_PWME3                   (0x8)
70
#define MCF_PWM_PWME_PWME4                   (0x10)
71
#define MCF_PWM_PWME_PWME5                   (0x20)
72
#define MCF_PWM_PWME_PWME6                   (0x40)
73
#define MCF_PWM_PWME_PWME7                   (0x80)
74
 
75
/* Bit definitions and macros for MCF_PWM_PWMPOL */
76
#define MCF_PWM_PWMPOL_PPOL0                 (0x1)
77
#define MCF_PWM_PWMPOL_PPOL1                 (0x2)
78
#define MCF_PWM_PWMPOL_PPOL2                 (0x4)
79
#define MCF_PWM_PWMPOL_PPOL3                 (0x8)
80
#define MCF_PWM_PWMPOL_PPOL4                 (0x10)
81
#define MCF_PWM_PWMPOL_PPOL5                 (0x20)
82
#define MCF_PWM_PWMPOL_PPOL6                 (0x40)
83
#define MCF_PWM_PWMPOL_PPOL7                 (0x80)
84
 
85
/* Bit definitions and macros for MCF_PWM_PWMCLK */
86
#define MCF_PWM_PWMCLK_PCLK0                 (0x1)
87
#define MCF_PWM_PWMCLK_PCLK1                 (0x2)
88
#define MCF_PWM_PWMCLK_PCLK2                 (0x4)
89
#define MCF_PWM_PWMCLK_PCLK3                 (0x8)
90
#define MCF_PWM_PWMCLK_PCLK4                 (0x10)
91
#define MCF_PWM_PWMCLK_PCLK5                 (0x20)
92
#define MCF_PWM_PWMCLK_PCLK6                 (0x40)
93
#define MCF_PWM_PWMCLK_PCLK7                 (0x80)
94
 
95
/* Bit definitions and macros for MCF_PWM_PWMPRCLK */
96
#define MCF_PWM_PWMPRCLK_PCKA(x)             (((x)&0x7)<<0)
97
#define MCF_PWM_PWMPRCLK_PCKB(x)             (((x)&0x7)<<0x4)
98
 
99
/* Bit definitions and macros for MCF_PWM_PWMCAE */
100
#define MCF_PWM_PWMCAE_CAE0                  (0x1)
101
#define MCF_PWM_PWMCAE_CAE1                  (0x2)
102
#define MCF_PWM_PWMCAE_CAE2                  (0x4)
103
#define MCF_PWM_PWMCAE_CAE3                  (0x8)
104
#define MCF_PWM_PWMCAE_CAE4                  (0x10)
105
#define MCF_PWM_PWMCAE_CAE5                  (0x20)
106
#define MCF_PWM_PWMCAE_CAE6                  (0x40)
107
#define MCF_PWM_PWMCAE_CAE7                  (0x80)
108
 
109
/* Bit definitions and macros for MCF_PWM_PWMCTL */
110
#define MCF_PWM_PWMCTL_PFRZ                  (0x4)
111
#define MCF_PWM_PWMCTL_PSWAI                 (0x8)
112
#define MCF_PWM_PWMCTL_CON01                 (0x10)
113
#define MCF_PWM_PWMCTL_CON23                 (0x20)
114
#define MCF_PWM_PWMCTL_CON45                 (0x40)
115
#define MCF_PWM_PWMCTL_CON67                 (0x80)
116
 
117
/* Bit definitions and macros for MCF_PWM_PWMSCLA */
118
#define MCF_PWM_PWMSCLA_SCALEA(x)            (((x)&0xFF)<<0)
119
 
120
/* Bit definitions and macros for MCF_PWM_PWMSCLB */
121
#define MCF_PWM_PWMSCLB_SCALEB(x)            (((x)&0xFF)<<0)
122
 
123
/* Bit definitions and macros for MCF_PWM_PWMCNT */
124
#define MCF_PWM_PWMCNT_COUNT(x)              (((x)&0xFF)<<0)
125
 
126
/* Bit definitions and macros for MCF_PWM_PWMPER */
127
#define MCF_PWM_PWMPER_PERIOD(x)             (((x)&0xFF)<<0)
128
 
129
/* Bit definitions and macros for MCF_PWM_PWMDTY */
130
#define MCF_PWM_PWMDTY_DUTY(x)               (((x)&0xFF)<<0)
131
 
132
/* Bit definitions and macros for MCF_PWM_PWMSDN */
133
#define MCF_PWM_PWMSDN_SDNEN                 (0x1)
134
#define MCF_PWM_PWMSDN_PWM7IL                (0x2)
135
#define MCF_PWM_PWMSDN_PWM7IN                (0x4)
136
#define MCF_PWM_PWMSDN_LVL                   (0x10)
137
#define MCF_PWM_PWMSDN_RESTART               (0x20)
138
#define MCF_PWM_PWMSDN_IE                    (0x40)
139
#define MCF_PWM_PWMSDN_IF                    (0x80)
140
 
141
 
142
#endif /* __MCF52221_PWM_H__ */

powered by: WebSVN 2.1.0

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