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_RTC.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
 * 2007/03/19 Revision: 0.91
6
 */
7
 
8
#ifndef __MCF52235_RTC_H__
9
#define __MCF52235_RTC_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Real-Time Clock (RTC)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_RTC_HOURMIN                      (*(vuint32*)(&__IPSBAR[0x3C0]))
20
#define MCF_RTC_SECONDS                      (*(vuint32*)(&__IPSBAR[0x3C4]))
21
#define MCF_RTC_ALRM_HM                      (*(vuint32*)(&__IPSBAR[0x3C8]))
22
#define MCF_RTC_ALRM_SEC                     (*(vuint32*)(&__IPSBAR[0x3CC]))
23
#define MCF_RTC_RTCCTL                       (*(vuint32*)(&__IPSBAR[0x3D0]))
24
#define MCF_RTC_RTCISR                       (*(vuint32*)(&__IPSBAR[0x3D4]))
25
#define MCF_RTC_RTCIENR                      (*(vuint32*)(&__IPSBAR[0x3D8]))
26
#define MCF_RTC_STPWCH                       (*(vuint32*)(&__IPSBAR[0x3DC]))
27
#define MCF_RTC_DAYS                         (*(vuint32*)(&__IPSBAR[0x3E0]))
28
#define MCF_RTC_ALRM_DAY                     (*(vuint32*)(&__IPSBAR[0x3E4]))
29
 
30
 
31
/* Bit definitions and macros for MCF_RTC_HOURMIN */
32
#define MCF_RTC_HOURMIN_MINUTES(x)           (((x)&0x3F)<<0)
33
#define MCF_RTC_HOURMIN_HOURS(x)             (((x)&0x1F)<<0x8)
34
 
35
/* Bit definitions and macros for MCF_RTC_SECONDS */
36
#define MCF_RTC_SECONDS_SECONDS(x)           (((x)&0x3F)<<0)
37
 
38
/* Bit definitions and macros for MCF_RTC_ALRM_HM */
39
#define MCF_RTC_ALRM_HM_MINUTES(x)           (((x)&0x3F)<<0)
40
#define MCF_RTC_ALRM_HM_HOURS(x)             (((x)&0x1F)<<0x8)
41
 
42
/* Bit definitions and macros for MCF_RTC_ALRM_SEC */
43
#define MCF_RTC_ALRM_SEC_SECONDS(x)          (((x)&0x3F)<<0)
44
 
45
/* Bit definitions and macros for MCF_RTC_RTCCTL */
46
#define MCF_RTC_RTCCTL_SWR                   (0x1)
47
#define MCF_RTC_RTCCTL_EN                    (0x80)
48
 
49
/* Bit definitions and macros for MCF_RTC_RTCISR */
50
#define MCF_RTC_RTCISR_SW                    (0x1)
51
#define MCF_RTC_RTCISR_MIN                   (0x2)
52
#define MCF_RTC_RTCISR_ALM                   (0x4)
53
#define MCF_RTC_RTCISR_DAY                   (0x8)
54
#define MCF_RTC_RTCISR_1HZ                   (0x10)
55
#define MCF_RTC_RTCISR_HR                    (0x20)
56
 
57
/* Bit definitions and macros for MCF_RTC_RTCIENR */
58
#define MCF_RTC_RTCIENR_SW                   (0x1)
59
#define MCF_RTC_RTCIENR_MIN                  (0x2)
60
#define MCF_RTC_RTCIENR_ALM                  (0x4)
61
#define MCF_RTC_RTCIENR_DAY                  (0x8)
62
#define MCF_RTC_RTCIENR_1HZ                  (0x10)
63
#define MCF_RTC_RTCIENR_HR                   (0x20)
64
 
65
/* Bit definitions and macros for MCF_RTC_STPWCH */
66
#define MCF_RTC_STPWCH_CNT(x)                (((x)&0x3F)<<0)
67
 
68
/* Bit definitions and macros for MCF_RTC_DAYS */
69
#define MCF_RTC_DAYS_DAYS(x)                 (((x)&0xFFFF)<<0)
70
 
71
/* Bit definitions and macros for MCF_RTC_ALRM_DAY */
72
#define MCF_RTC_ALRM_DAY_DAYSAL(x)           (((x)&0xFFFF)<<0)
73
 
74
 
75
#endif /* __MCF52235_RTC_H__ */

powered by: WebSVN 2.1.0

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