1 /******************************************************************************
\r
2 * File Name : rsk7670def.h
\r
4 * Device(s) : SH2A/7670
\r
5 * Tool-Chain : Renesas SH2A V9+
\r
7 * H/W Platform : RSK+SH7670
\r
8 * Description : Defines for RSK2+SH7670 kit.
\r
9 *******************************************************************************
\r
10 * History : DD.MM.YYYY Ver. Description
\r
11 * : 01.08.2009 1.00 MAB First Release
\r
12 ******************************************************************************/
\r
14 /******************************************************************************
\r
16 * This software is supplied by Renesas Technology Corp. and is only
\r
17 * intended for use with Renesas products. No other uses are authorized.
\r
18 * This software is owned by Renesas Technology Corp. and is protected under
\r
19 * all applicable laws, including copyright laws.
\r
20 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES
\r
21 * REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY,
\r
22 * INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
\r
23 * PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY
\r
25 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
\r
26 * TECHNOLOGY CORP. NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
\r
27 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
\r
28 * FOR ANY REASON RELATED TO THE THIS SOFTWARE, EVEN IF RENESAS OR ITS
\r
29 * AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
30 * Renesas reserves the right, without notice, to make changes to this
\r
31 * software and to discontinue the availability of this software.
\r
32 * By using this software, you agree to the additional terms and
\r
33 * conditions found by accessing the following link:
\r
34 * http://www.renesas.com/disclaimer
\r
35 ******************************************************************************/
\r
36 /* Copyright (C) 2008. Renesas Technology Corp., All Rights Reserved. */
\r
37 /* Copyright (C) 2009. Renesas Technology Europe Ltd., All Rights Reserved. */
\r
38 /*****************************************************************************/
\r
40 #ifndef RSK7216DEF_H
\r
41 #define RSK7216DEF_H
\r
43 /******************************************************************************
\r
45 ******************************************************************************/
\r
47 /* General Values */
\r
50 #define SET_BIT_HIGH (1)
\r
51 #define SET_BIT_LOW (0)
\r
52 #define SET_BYTE_HIGH (0xFF)
\r
53 #define SET_BYTE_LOW (0x00)
\r
55 /* Define switches to be polled if not available as interrupts */
\r
56 #define SW_ACTIVE FALSE
\r
58 #define SW1 PORT.PDDRL.BIT.PD16DR //"IRQ0" PD16
\r
59 #define SW2 PORT.PADRL.BIT.PA20DR //"IRQ6" PA20
\r
63 #define LED0 PE.DR.BIT.B9
\r
64 #define LED1 PE.DR.BIT.B11
\r
65 #define LED2 PE.DR.BIT.B12
\r
66 #define LED3 PE.DR.BIT.B13
\r
67 #define LED4 PE.DR.BIT.B14
\r
68 #define LED5 PE.DR.BIT.B15
\r
76 #define ID_LED_ALL (ID_LED1 | ID_LED2 | ID_LED3 | ID_LED4 | ID_LED5 | ID_LED6)
\r
78 #define PERIPHERAL_CLOCK_FREQUENCY 50000000UL
\r
80 /******************************************************************************
\r
82 ******************************************************************************/
\r
84 #define BOARD_NAME "SH7216 CPU BOARD"
\r
86 /******************************************************************************
\r
88 ******************************************************************************/
\r
94 extern void led_init(void);
\r
95 extern void led_on(unsigned short ledno);
\r
96 extern void led_off(unsigned short ledno);
\r
102 #endif /* RSK7216DEF_H */
\r
104 /******************************************************************************
\r
106 ******************************************************************************/