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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [RX600_RX62N-RSK_Renesas/] [RTOSDemo/] [include/] [rskrx62ndef.h] - Blame information for rev 609

Go to most recent revision | 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 RSKRX62N_H
17
#define RSKRX62N_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
#define         LED_ON          (0)
44
#define         LED_OFF                 (1)
45
#define         SET_BIT_HIGH    (1)
46
#define         SET_BIT_LOW             (0)
47
#define         SET_BYTE_HIGH   (0xFF)
48
#define         SET_BYTE_LOW    (0x00)
49
 
50
/* Define switches to be polled if not available as interrupts */
51
#define         SW_ACTIVE               FALSE
52
#define         SW1                     PORT0.DR.BIT.B0
53
#define         SW2                     PORT0.DR.BIT.B1
54
#define     SW3             PORT0.DR.BIT.B7
55
#define         SW1_DDR                 PORT0.DDR.BIT.B0
56
#define         SW2_DDR                 PORT0.DDR.BIT.B1
57
#define     SW3_DDR         PORT0.DDR.BIT.B7
58
#define         SW1_ICR                 PORT0.ICR.BIT.B0
59
#define         SW2_ICR                 PORT0.ICR.BIT.B1
60
#define     SW3_ICR         PORT0.ICR.BIT.B7
61
 
62
/* LEDs */
63
#define         LED0                    PORT0.DR.BIT.B2
64
#define         LED1                    PORT0.DR.BIT.B3
65
#define         LED2                    PORT0.DR.BIT.B5
66
#define         LED3                    PORT3.DR.BIT.B4
67
#define     LED4                        PORT6.DR.BIT.B0
68
#define     LED5                        PORT7.DR.BIT.B3
69
#define         LED0_DDR        PORT0.DDR.BIT.B2
70
#define         LED1_DDR        PORT0.DDR.BIT.B3
71
#define         LED2_DDR        PORT0.DDR.BIT.B5
72
#define         LED3_DDR        PORT3.DDR.BIT.B4
73
#define     LED4_DDR        PORT6.DDR.BIT.B0
74
#define     LED5_DDR        PORT7.DDR.BIT.B3
75
 
76
/* 2x8 segment LCD */
77
#define     LCD_RS          PORT8.DR.BIT.B4
78
#define     LCD_EN          PORT8.DR.BIT.B5
79
#define     LCD_DATA        PORT9.DR.BYTE
80
#define     LCD_RS_DDR      PORT8.DDR.BIT.B4
81
#define     LCD_EN_DDR      PORT8.DDR.BIT.B5
82
#define     LCD_DATA_DDR    PORT9.DDR.BYTE
83
 
84
 
85
 
86
/******************************************************************************
87
Variable Externs
88
******************************************************************************/
89
 
90
/******************************************************************************
91
Functions Prototypes
92
******************************************************************************/
93
 
94
 
95
 
96
/* RSKRX62N_H */
97
#endif          
98
 

powered by: WebSVN 2.1.0

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