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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52259_CodeWarrior/] [Freescale_Headers/] [mcf5225x_evb.h] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/*
2
 * File:                m5225x_evb.h
3
 * Purpose:             Evaluation board definitions and memory map information
4
 *
5
 * Notes:
6
 *
7
 * License:     All software covered by license agreement in -
8
 *              docs/Freescale_Software_License.pdf
9
 */
10
 
11
#ifndef _M5225xEVB_H
12
#define _M5225xEVB_H
13
 
14
#define COLDFIRE_MAC_ADDRESS    {0x00, 0x04, 0x9f, 0x00, 0xab, 0x2b}
15
 
16
/********************************************************************/
17
 
18
//#include "mcf5xxx.h"
19
 
20
/********************************************************************/
21
#define LED0_TOGGLE     MCF_GPIO_PORTTC = (uint8)(MCF_GPIO_PORTTC ^ MCF_GPIO_PORTTC_PORTTC0)
22
 
23
/*
24
 * Debug prints ON (#undef) or OFF (#define)
25
 */
26
#undef DEBUG
27
 
28
/*
29
 * System Bus Clock Info
30
 */
31
 
32
 
33
#define SYSTEM_CLOCK                    80      /* system bus frequency in MHz */
34
//#define PERIOD                            12.5        /* system bus period in ns */
35
#define TERMINAL_BAUD                   19200
36
#define UART_BAUD                               TERMINAL_BAUD   /*  19200*/
37
 
38
#define TERMINAL_PORT                   0
39
#define REF_CLK_MHZ             48
40
#define SYS_CLK_MHZ             SYSTEM_CLOCK
41
#define REF_CLK_KHZ             (REF_CLK_MHZ * 1000)
42
#define SYS_CLK_KHZ             (SYS_CLK_MHZ * 1000)
43
 
44
/*
45
 * Memory map definitions from linker command files
46
 */
47
 
48
extern uint8 __IPSBAR[];
49
extern uint8 __SRAM[];
50
extern uint8 __FLASH[];
51
extern uint8 __SRAM_SIZE[];
52
extern uint8 __FLASH_SIZE[];
53
extern uint8 __DATA_ROM[];
54
extern uint8 __DATA_RAM[];
55
extern uint8 __DATA_END[];
56
extern uint8 __BSS_START[];
57
extern uint8 __BSS_END[];
58
extern uint32 VECTOR_TABLE[];
59
extern uint32 __VECTOR_RAM[];
60
 
61
 
62
/*
63
 * Memory Map Info
64
 */
65
#define IPSBAR_ADDRESS          (uint32)__IPSBAR
66
 
67
#define SRAM_ADDRESS            (uint32)__SRAM
68
#define SRAM_SIZE                       (uint32)__SRAM_SIZE
69
 
70
#define FLASH_ADDRESS       (uint32)__FLASH
71
#define FLASH_SIZE          (uint32)__FLASH_SIZE
72
 
73
/*
74
 *      Interrupt Controller Definitions
75
 */
76
#define TIMER_NETWORK_LEVEL             3
77
#define USB_NETWORK_LEVEL               1
78
 
79
/*
80
 *      Timer period info
81
 */
82
 
83
 /* 1 sec / max timeout */
84
#define TIMER_NETWORK_PERIOD    1000000000/0x10000      
85
 
86
/*
87
 * Board specific function prototypes
88
 */
89
 
90
void leds_init();
91
void board_led_display(uint8 number);
92
 
93
/********************************************************************/
94
 
95
#endif /* _M5225xEVB_H */

powered by: WebSVN 2.1.0

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