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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52233_Eclipse/] [RTOSDemo/] [MCF5223x/] [MCF52235_PWM.h] - Blame information for rev 591

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
 * 2007/03/19 Revision: 0.91
6
 */
7
 
8
#ifndef __MCF52235_PWM_H__
9
#define __MCF52235_PWM_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Pulse Width Modulation (PWM)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_PWM_PWME                         (*(vuint8 *)(&__IPSBAR[0x1B0000]))
20
#define MCF_PWM_PWMPOL                       (*(vuint8 *)(&__IPSBAR[0x1B0001]))
21
#define MCF_PWM_PWMCLK                       (*(vuint8 *)(&__IPSBAR[0x1B0002]))
22
#define MCF_PWM_PWMPRCLK                     (*(vuint8 *)(&__IPSBAR[0x1B0003]))
23
#define MCF_PWM_PWMCAE                       (*(vuint8 *)(&__IPSBAR[0x1B0004]))
24
#define MCF_PWM_PWMCTL                       (*(vuint8 *)(&__IPSBAR[0x1B0005]))
25
#define MCF_PWM_PWMSCLA                      (*(vuint8 *)(&__IPSBAR[0x1B0008]))
26
#define MCF_PWM_PWMSCLB                      (*(vuint8 *)(&__IPSBAR[0x1B0009]))
27
#define MCF_PWM_PWMCNT0                      (*(vuint8 *)(&__IPSBAR[0x1B000C]))
28
#define MCF_PWM_PWMCNT1                      (*(vuint8 *)(&__IPSBAR[0x1B000D]))
29
#define MCF_PWM_PWMCNT2                      (*(vuint8 *)(&__IPSBAR[0x1B000E]))
30
#define MCF_PWM_PWMCNT3                      (*(vuint8 *)(&__IPSBAR[0x1B000F]))
31
#define MCF_PWM_PWMCNT4                      (*(vuint8 *)(&__IPSBAR[0x1B0010]))
32
#define MCF_PWM_PWMCNT5                      (*(vuint8 *)(&__IPSBAR[0x1B0011]))
33
#define MCF_PWM_PWMCNT6                      (*(vuint8 *)(&__IPSBAR[0x1B0012]))
34
#define MCF_PWM_PWMCNT7                      (*(vuint8 *)(&__IPSBAR[0x1B0013]))
35
#define MCF_PWM_PWMPER0                      (*(vuint8 *)(&__IPSBAR[0x1B0014]))
36
#define MCF_PWM_PWMPER1                      (*(vuint8 *)(&__IPSBAR[0x1B0015]))
37
#define MCF_PWM_PWMPER2                      (*(vuint8 *)(&__IPSBAR[0x1B0016]))
38
#define MCF_PWM_PWMPER3                      (*(vuint8 *)(&__IPSBAR[0x1B0017]))
39
#define MCF_PWM_PWMPER4                      (*(vuint8 *)(&__IPSBAR[0x1B0018]))
40
#define MCF_PWM_PWMPER5                      (*(vuint8 *)(&__IPSBAR[0x1B0019]))
41
#define MCF_PWM_PWMPER6                      (*(vuint8 *)(&__IPSBAR[0x1B001A]))
42
#define MCF_PWM_PWMPER7                      (*(vuint8 *)(&__IPSBAR[0x1B001B]))
43
#define MCF_PWM_PWMDTY0                      (*(vuint8 *)(&__IPSBAR[0x1B001C]))
44
#define MCF_PWM_PWMDTY1                      (*(vuint8 *)(&__IPSBAR[0x1B001D]))
45
#define MCF_PWM_PWMDTY2                      (*(vuint8 *)(&__IPSBAR[0x1B001E]))
46
#define MCF_PWM_PWMDTY3                      (*(vuint8 *)(&__IPSBAR[0x1B001F]))
47
#define MCF_PWM_PWMDTY4                      (*(vuint8 *)(&__IPSBAR[0x1B0020]))
48
#define MCF_PWM_PWMDTY5                      (*(vuint8 *)(&__IPSBAR[0x1B0021]))
49
#define MCF_PWM_PWMDTY6                      (*(vuint8 *)(&__IPSBAR[0x1B0022]))
50
#define MCF_PWM_PWMDTY7                      (*(vuint8 *)(&__IPSBAR[0x1B0023]))
51
#define MCF_PWM_PWMSDN                       (*(vuint8 *)(&__IPSBAR[0x1B0024]))
52
#define MCF_PWM_PWMCNT(x)                    (*(vuint8 *)(&__IPSBAR[0x1B000C + ((x)*0x1)]))
53
#define MCF_PWM_PWMPER(x)                    (*(vuint8 *)(&__IPSBAR[0x1B0014 + ((x)*0x1)]))
54
#define MCF_PWM_PWMDTY(x)                    (*(vuint8 *)(&__IPSBAR[0x1B001C + ((x)*0x1)]))
55
 
56
 
57
/* Bit definitions and macros for MCF_PWM_PWME */
58
#define MCF_PWM_PWME_PWME0                   (0x1)
59
#define MCF_PWM_PWME_PWME1                   (0x2)
60
#define MCF_PWM_PWME_PWME2                   (0x4)
61
#define MCF_PWM_PWME_PWME3                   (0x8)
62
#define MCF_PWM_PWME_PWME4                   (0x10)
63
#define MCF_PWM_PWME_PWME5                   (0x20)
64
#define MCF_PWM_PWME_PWME6                   (0x40)
65
#define MCF_PWM_PWME_PWME7                   (0x80)
66
 
67
/* Bit definitions and macros for MCF_PWM_PWMPOL */
68
#define MCF_PWM_PWMPOL_PPOL0                 (0x1)
69
#define MCF_PWM_PWMPOL_PPOL1                 (0x2)
70
#define MCF_PWM_PWMPOL_PPOL2                 (0x4)
71
#define MCF_PWM_PWMPOL_PPOL3                 (0x8)
72
#define MCF_PWM_PWMPOL_PPOL4                 (0x10)
73
#define MCF_PWM_PWMPOL_PPOL5                 (0x20)
74
#define MCF_PWM_PWMPOL_PPOL6                 (0x40)
75
#define MCF_PWM_PWMPOL_PPOL7                 (0x80)
76
 
77
/* Bit definitions and macros for MCF_PWM_PWMCLK */
78
#define MCF_PWM_PWMCLK_PCLK0                 (0x1)
79
#define MCF_PWM_PWMCLK_PCLK1                 (0x2)
80
#define MCF_PWM_PWMCLK_PCLK2                 (0x4)
81
#define MCF_PWM_PWMCLK_PCLK3                 (0x8)
82
#define MCF_PWM_PWMCLK_PCLK4                 (0x10)
83
#define MCF_PWM_PWMCLK_PCLK5                 (0x20)
84
#define MCF_PWM_PWMCLK_PCLK6                 (0x40)
85
#define MCF_PWM_PWMCLK_PCLK7                 (0x80)
86
 
87
/* Bit definitions and macros for MCF_PWM_PWMPRCLK */
88
#define MCF_PWM_PWMPRCLK_PCKA(x)             (((x)&0x7)<<0)
89
#define MCF_PWM_PWMPRCLK_PCKB(x)             (((x)&0x7)<<0x4)
90
 
91
/* Bit definitions and macros for MCF_PWM_PWMCAE */
92
#define MCF_PWM_PWMCAE_CAE0                  (0x1)
93
#define MCF_PWM_PWMCAE_CAE1                  (0x2)
94
#define MCF_PWM_PWMCAE_CAE2                  (0x4)
95
#define MCF_PWM_PWMCAE_CAE3                  (0x8)
96
#define MCF_PWM_PWMCAE_CAE4                  (0x10)
97
#define MCF_PWM_PWMCAE_CAE5                  (0x20)
98
#define MCF_PWM_PWMCAE_CAE6                  (0x40)
99
#define MCF_PWM_PWMCAE_CAE7                  (0x80)
100
 
101
/* Bit definitions and macros for MCF_PWM_PWMCTL */
102
#define MCF_PWM_PWMCTL_PFRZ                  (0x4)
103
#define MCF_PWM_PWMCTL_PSWAI                 (0x8)
104
#define MCF_PWM_PWMCTL_CON01                 (0x10)
105
#define MCF_PWM_PWMCTL_CON23                 (0x20)
106
#define MCF_PWM_PWMCTL_CON45                 (0x40)
107
#define MCF_PWM_PWMCTL_CON67                 (0x80)
108
 
109
/* Bit definitions and macros for MCF_PWM_PWMSCLA */
110
#define MCF_PWM_PWMSCLA_SCALEA(x)            (((x)&0xFF)<<0)
111
 
112
/* Bit definitions and macros for MCF_PWM_PWMSCLB */
113
#define MCF_PWM_PWMSCLB_SCALEB(x)            (((x)&0xFF)<<0)
114
 
115
/* Bit definitions and macros for MCF_PWM_PWMCNT */
116
#define MCF_PWM_PWMCNT_COUNT(x)              (((x)&0xFF)<<0)
117
 
118
/* Bit definitions and macros for MCF_PWM_PWMPER */
119
#define MCF_PWM_PWMPER_PERIOD(x)             (((x)&0xFF)<<0)
120
 
121
/* Bit definitions and macros for MCF_PWM_PWMDTY */
122
#define MCF_PWM_PWMDTY_DUTY(x)               (((x)&0xFF)<<0)
123
 
124
/* Bit definitions and macros for MCF_PWM_PWMSDN */
125
#define MCF_PWM_PWMSDN_SDNEN                 (0x1)
126
#define MCF_PWM_PWMSDN_PWM7IL                (0x2)
127
#define MCF_PWM_PWMSDN_PWM7IN                (0x4)
128
#define MCF_PWM_PWMSDN_LVL                   (0x10)
129
#define MCF_PWM_PWMSDN_RESTART               (0x20)
130
#define MCF_PWM_PWMSDN_IE                    (0x40)
131
#define MCF_PWM_PWMSDN_IF                    (0x80)
132
 
133
 
134
#endif /* __MCF52235_PWM_H__ */

powered by: WebSVN 2.1.0

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