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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [RX600_RX62N-RDK_IAR/] [include/] [yrdkrx62ndef.h] - Blame information for rev 585

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 585 jeremybenn
 
2
/******************************************************************************
3
* DISCLAIMER
4
* Please refer to http://www.renesas.com/disclaimer
5
******************************************************************************
6
  Copyright (C) 2008. Renesas Technology Corp., All Rights Reserved.
7
*******************************************************************************
8
* File Name    : rsksh7216.h
9
* Version      : 1.00
10
* Description  : RSK 7216 board specific settings
11
******************************************************************************
12
* History : DD.MM.YYYY Version Description
13
*         : 06.10.2009 1.00    First Release
14
******************************************************************************/
15
 
16
#ifndef RDKRX62N_H
17
#define RDKRX62N_H
18
 
19
/******************************************************************************
20
Includes   <System Includes> , "Project Includes"
21
******************************************************************************/
22
 
23
/******************************************************************************
24
Typedef definitions
25
******************************************************************************/
26
 
27
/******************************************************************************
28
Macro definitions
29
******************************************************************************/
30
 
31
/* System Clock Settings */
32
#define     XTAL_FREQUENCY  (12000000L)
33
#define     ICLK_MUL        (8)
34
#define     PCLK_MUL        (4)
35
#define     BCLK_MUL        (4)
36
#define     ICLK_FREQUENCY  (XTAL_FREQUENCY * ICLK_MUL)
37
#define     PCLK_FREQUENCY  (XTAL_FREQUENCY * PCLK_MUL)
38
#define     BCLK_FREQUENCY  (XTAL_FREQUENCY * BCLK_MUL)
39
 
40
#define     CMT0_CLK_SELECT (512)
41
 
42
/* General Values */
43
#ifdef LED_POSITIVE_LOGIC
44
        #define         LED_ON          (1) 
45
        #define         LED_OFF                 (0)
46
#else
47
/* LEDs are using NEGATIVE LOGIC... */
48
        #define         LED_ON          (0)
49
        #define         LED_OFF                 (1)
50
#endif
51
#define         SET_BIT_HIGH    (1)
52
#define         SET_BIT_LOW             (0)
53
#define         SET_BYTE_HIGH   (0xFF)
54
#define         SET_BYTE_LOW    (0x00)
55
 
56
/* Define switches to be polled if not available as interrupts */
57
#define         SW_ACTIVE               FALSE
58
#define     SW1             PORT4.PORT.BIT.B0
59
#define     SW2             PORT4.PORT.BIT.B1
60
#define     SW3             PORT4.PORT.BIT.B2
61
#define     SW1_DDR         PORT4.DDR.BIT.B0
62
#define     SW2_DDR         PORT4.DDR.BIT.B1
63
#define     SW3_DDR         PORT4.DDR.BIT.B2
64
#define     SW1_ICR         PORT4.ICR.BIT.B0
65
#define     SW2_ICR         PORT4.ICR.BIT.B1
66
#define     SW3_ICR         PORT4.ICR.BIT.B2
67
 
68
/* LEDs */
69
#define     LED4            PORTD.DR.BIT.B5
70
#define     LED5            PORTE.DR.BIT.B3
71
#define     LED6            PORTD.DR.BIT.B2
72
#define     LED7            PORTE.DR.BIT.B0
73
#define     LED8            PORTD.DR.BIT.B4
74
#define     LED9            PORTE.DR.BIT.B2
75
#define     LED10           PORTD.DR.BIT.B1
76
#define     LED11           PORTD.DR.BIT.B7
77
#define     LED12           PORTD.DR.BIT.B3
78
#define     LED13           PORTE.DR.BIT.B1
79
#define     LED14           PORTD.DR.BIT.B0
80
#define     LED15           PORTD.DR.BIT.B6
81
 
82
#define     LED4_DDR        PORTD.DDR.BIT.B5
83
#define     LED5_DDR        PORTE.DDR.BIT.B3
84
#define     LED6_DDR        PORTD.DDR.BIT.B2
85
#define     LED7_DDR        PORTE.DDR.BIT.B0
86
#define     LED8_DDR        PORTD.DDR.BIT.B4
87
#define     LED9_DDR        PORTE.DDR.BIT.B2
88
#define     LED10_DDR       PORTD.DDR.BIT.B1
89
#define     LED11_DDR       PORTD.DDR.BIT.B7
90
#define     LED12_DDR       PORTD.DDR.BIT.B3
91
#define     LED13_DDR       PORTE.DDR.BIT.B1
92
#define     LED14_DDR       PORTD.DDR.BIT.B0
93
#define     LED15_DDR       PORTD.DDR.BIT.B6
94
 
95
 
96
 
97
 
98
/******************************************************************************
99
Variable Externs
100
******************************************************************************/
101
 
102
/******************************************************************************
103
Functions Prototypes
104
******************************************************************************/
105
 
106
 
107
 
108
/* RDKRX62N_H */
109
#endif          
110
 

powered by: WebSVN 2.1.0

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