]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/MCF5282/MCF5282_CLOCK.h
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / ColdFire_MCF5282_Eclipse / RTOSDemo / MCF5282 / MCF5282_CLOCK.h
1 /* Coldfire C Header File\r
2  * Copyright Freescale Semiconductor Inc\r
3  * All rights reserved.\r
4  *\r
5  * 2007/03/19 Revision: 0.9\r
6  */\r
7 \r
8 #ifndef __MCF5282_CLOCK_H__\r
9 #define __MCF5282_CLOCK_H__\r
10 \r
11 \r
12 /*********************************************************************\r
13 *\r
14 * Clock Module (CLOCK)\r
15 *\r
16 *********************************************************************/\r
17 \r
18 /* Register read/write macros */\r
19 #define MCF_CLOCK_SYNCR                      (*(vuint16*)(&__IPSBAR[0x120000]))\r
20 #define MCF_CLOCK_SYNSR                      (*(vuint8 *)(&__IPSBAR[0x120002]))\r
21 \r
22 \r
23 /* Bit definitions and macros for MCF_CLOCK_SYNCR */\r
24 #define MCF_CLOCK_SYNCR_STPMD0               (0x4)\r
25 #define MCF_CLOCK_SYNCR_STPMD1               (0x8)\r
26 #define MCF_CLOCK_SYNCR_FWKUP                (0x20)\r
27 #define MCF_CLOCK_SYNCR_DISCLK               (0x40)\r
28 #define MCF_CLOCK_SYNCR_LOCEN                (0x80)\r
29 #define MCF_CLOCK_SYNCR_RFD(x)               (((x)&0x7)<<0x8)\r
30 #define MCF_CLOCK_SYNCR_LOCRE                (0x800)\r
31 #define MCF_CLOCK_SYNCR_MFD(x)               (((x)&0x7)<<0xC)\r
32 #define MCF_CLOCK_SYNCR_LOLRE                (0x8000)\r
33 \r
34 /* Bit definitions and macros for MCF_CLOCK_SYNSR */\r
35 #define MCF_CLOCK_SYNSR_LOCS                 (0x4)\r
36 #define MCF_CLOCK_SYNSR_LOCK                 (0x8)\r
37 #define MCF_CLOCK_SYNSR_LOCKS                (0x10)\r
38 #define MCF_CLOCK_SYNSR_PLLREF               (0x20)\r
39 #define MCF_CLOCK_SYNSR_PLLSEL               (0x40)\r
40 #define MCF_CLOCK_SYNSR_PLLMODE              (0x80)\r
41 \r
42 \r
43 #endif /* __MCF5282_CLOCK_H__ */\r