1 /*******************************************************************************
\r
3 * This software is supplied by Renesas Electronics Corporation and is only
\r
4 * intended for use with Renesas products. No other uses are authorized. This
\r
5 * software is owned by Renesas Electronics Corporation and is protected under
\r
6 * all applicable laws, including copyright laws.
\r
7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
\r
8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
\r
9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
\r
10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
\r
11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
\r
12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
\r
13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
\r
14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
\r
15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
16 * Renesas reserves the right, without notice, to make changes to this software
\r
17 * and to discontinue the availability of this software. By using this software,
\r
18 * you agree to the additional terms and conditions found by accessing the
\r
20 * http://www.renesas.com/disclaimer
\r
21 *******************************************************************************/
\r
22 /*******************************************************************************
\r
23 * Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved. */
\r
24 /*******************************************************************************
\r
25 * File Name : rskrx64mdef.h
\r
28 * Tool-Chain : Renesas RX Standard 2.01.0
\r
29 * H/W Platform : RSK+RX64M
\r
30 * Description : Defines macros relating to the RX64M user LEDs and switches
\r
31 *******************************************************************************/
\r
32 /*******************************************************************************
\r
33 * History : 20 Mar. 2014 Ver. 0.00 Alpha Release
\r
34 *******************************************************************************/
\r
36 /*******************************************************************************
\r
38 *******************************************************************************/
\r
39 /* Multiple inclusion prevention macro */
\r
40 #ifndef RSKRX64MDEF_H
\r
41 #define RSKRX64MDEF_H
\r
43 /*******************************************************************************
\r
44 * User Includes (Project Level Includes)
\r
45 *******************************************************************************/
\r
46 /* Defines RX64M port registers */
\r
47 #include "r_cg_macrodriver.h"
\r
49 /* General Values */
\r
52 #define SET_BIT_HIGH (1)
\r
53 #define SET_BIT_LOW (0)
\r
54 #define SET_BYTE_HIGH (0xFF)
\r
55 #define SET_BYTE_LOW (0x00)
\r
56 #define OUTPUT_PIN (1)
\r
57 #define INPUT_PIN (0)
\r
59 /* Switch port pins data direction */
\r
60 #define SW1_PIN_DIR (PORT1.PDR.BIT.B5)
\r
61 #define SW2_PIN_DIR (PORT1.PDR.BIT.B2)
\r
62 #define SW3_PIN_DIR (PORT0.PDR.BIT.B7)
\r
65 #define SW1 (PORT1.PIDR.BIT.B5)
\r
66 #define SW2 (PORT1.PIDR.BIT.B2)
\r
67 #define SW3 (PORT0.PIDR.BIT.B7)
\r
69 /* LED data direction */
\r
70 #define LED0_PIN_DIR (PORT0.PDR.BIT.B3)
\r
71 #define LED1_PIN_DIR (PORT0.PDR.BIT.B5)
\r
72 #define LED2_PIN_DIR (PORT2.PDR.BIT.B6)
\r
73 #define LED3_PIN_DIR (PORT2.PDR.BIT.B7)
\r
75 /* LED ouptut pin settings */
\r
76 #define LED0 (PORT0.PODR.BIT.B3)
\r
77 #define LED1 (PORT0.PODR.BIT.B5)
\r
78 #define LED2 (PORT2.PODR.BIT.B6)
\r
79 #define LED3 (PORT2.PODR.BIT.B7)
\r
81 /* End of multiple inclusion prevention macro */
\r