OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF5282_Eclipse/] [RTOSDemo/] [MCF5282/] [MCF5282.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.9
6
 */
7
 
8
#ifndef __MCF5282_H__
9
#define __MCF5282_H__
10
 
11
 
12
/********************************************************************/
13
/*
14
 * The basic data types
15
 */
16
 
17
typedef unsigned char           uint8;   /*  8 bits */
18
typedef unsigned short int      uint16;  /* 16 bits */
19
typedef unsigned long int       uint32;  /* 32 bits */
20
 
21
typedef signed char             int8;    /*  8 bits */
22
typedef signed short int        int16;   /* 16 bits */
23
typedef signed long int         int32;   /* 32 bits */
24
 
25
typedef volatile uint8          vuint8;  /*  8 bits */
26
typedef volatile uint16         vuint16; /* 16 bits */
27
typedef volatile uint32         vuint32; /* 32 bits */
28
 
29
#ifdef __cplusplus
30
extern "C" {
31
#endif
32
 
33
#if 0
34
#pragma define_section system ".system" far_absolute RW
35
 
36
/***
37
 * MCF5282 Derivative Memory map definitions from linker command files:
38
 * __IPSBAR, __FLASHBAR, __FLASHBAR_SIZE, __RAMBAR, __RAMBAR_SIZE
39
 * linker symbols must be defined in the linker command file.
40
 */
41
 
42
extern __declspec(system)  uint8 __IPSBAR[];
43
extern __declspec(system)  uint8 __FLASHBAR[];
44
extern __declspec(system)  uint8 __FLASHBAR_SIZE[];
45
extern __declspec(system)  uint8 __RAMBAR[];
46
extern __declspec(system)  uint8 __RAMBAR_SIZE[];
47
#endif
48
 
49
#define __IPSBAR ((uint8*)0x40000000)
50
 
51
#define IPSBAR_ADDRESS   (uint32)__IPSBAR
52
#define FLASHBAR_ADDRESS (uint32)__FLASHBAR
53
#define FLASHBAR_SIZE    (uint32)__FLASHBAR_SIZE
54
#define RAMBAR_ADDRESS   (uint32)__RAMBAR
55
#define RAMBAR_SIZE      (uint32)__RAMBAR_SIZE
56
 
57
 
58
#include "MCF5282_SCM.h"
59
#include "MCF5282_SDRAMC.h"
60
#include "MCF5282_CS.h"
61
#include "MCF5282_DMA.h"
62
#include "MCF5282_UART.h"
63
#include "MCF5282_I2C.h"
64
#include "MCF5282_QSPI.h"
65
#include "MCF5282_DTIM.h"
66
#include "MCF5282_INTC.h"
67
#include "MCF5282_GIACR.h"
68
#include "MCF5282_FEC.h"
69
#include "MCF5282_GPIO.h"
70
#include "MCF5282_PAD.h"
71
#include "MCF5282_RCM.h"
72
#include "MCF5282_PMM.h"
73
#include "MCF5282_CCM.h"
74
#include "MCF5282_CLOCK.h"
75
#include "MCF5282_EPORT.h"
76
#include "MCF5282_WTM.h"
77
#include "MCF5282_PIT.h"
78
#include "MCF5282_QADC.h"
79
#include "MCF5282_GPTA.h"
80
#include "MCF5282_GPTB.h"
81
#include "MCF5282_FlexCAN.h"
82
#include "MCF5282_CFM.h"
83
 
84
#ifdef __cplusplus
85
}
86
#endif
87
 
88
#define MCF5XXX_CACR_CENB               (0x80000000)
89
#define MCF5XXX_CACR_CPDI               (0x10000000)
90
#define MCF5XXX_CACR_CPD                (0x10000000)
91
#define MCF5XXX_CACR_CFRZ               (0x08000000)
92
#define MCF5XXX_CACR_CINV               (0x01000000)
93
#define MCF5XXX_CACR_DIDI               (0x00800000)
94
#define MCF5XXX_CACR_DISD               (0x00400000)
95
#define MCF5XXX_CACR_INVI               (0x00200000)
96
#define MCF5XXX_CACR_INVD               (0x00100000)
97
#define MCF5XXX_CACR_CEIB               (0x00000400)
98
#define MCF5XXX_CACR_DCM_WR             (0x00000000)
99
#define MCF5XXX_CACR_DCM_CB             (0x00000100)
100
#define MCF5XXX_CACR_DCM_IP             (0x00000200)
101
#define MCF5XXX_CACR_DCM                (0x00000200)
102
#define MCF5XXX_CACR_DCM_II             (0x00000300)
103
#define MCF5XXX_CACR_DBWE               (0x00000100)
104
#define MCF5XXX_CACR_DWP                (0x00000020)
105
#define MCF5XXX_CACR_EUST               (0x00000010)
106
#define MCF5XXX_CACR_CLNF_00    (0x00000000)
107
#define MCF5XXX_CACR_CLNF_01    (0x00000002)
108
#define MCF5XXX_CACR_CLNF_10    (0x00000004)
109
#define MCF5XXX_CACR_CLNF_11    (0x00000006)
110
 
111
#endif /* __MCF5282_H__ */

powered by: WebSVN 2.1.0

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