1 /***********************************************************************************************************************
\r
3 * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
\r
4 * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
\r
5 * applicable laws, including copyright laws.
\r
6 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
\r
7 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
\r
8 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM
\r
9 * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES
\r
10 * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS
\r
11 * SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
12 * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of
\r
13 * this software. By using this software, you agree to the additional terms and conditions found by accessing the
\r
15 * http://www.renesas.com/disclaimer
\r
17 * Copyright (C) 2015 Renesas Electronics Corporation. All rights reserved.
\r
18 ***********************************************************************************************************************/
\r
19 /***********************************************************************************************************************
\r
20 * File Name : rskrx231def.h
\r
21 * Device(s) : R5F52318AxFP
\r
23 * H/W Platform : RSKRX231
\r
24 * Description : Defines macros relating to the RSKRX231 user LEDs and switches
\r
25 ***********************************************************************************************************************/
\r
26 /**********************************************************************************************************************
\r
27 * History : DD.MM.YYYY Version Description
\r
28 * : 01.06.2015 1.00 First Release
\r
29 ***********************************************************************************************************************/
\r
32 /***********************************************************************************************************************
\r
34 ***********************************************************************************************************************/
\r
39 /* General Values */
\r
42 #define SET_BIT_HIGH (1)
\r
43 #define SET_BIT_LOW (0)
\r
44 #define SET_BYTE_HIGH (0xFF)
\r
45 #define SET_BYTE_LOW (0x00)
\r
48 #define SW1 (PORT3.PIDR.BIT.B1)
\r
49 #define SW2 (PORT3.PIDR.BIT.B4)
\r
50 #define SW3 (PORT0.PIDR.BIT.B7)
\r
52 /* LED port settings */
\r
53 #define LED0 (PORT1.PODR.BIT.B7)
\r
54 #define LED1 (PORT5.PODR.BIT.B0)
\r
55 #define LED2 (PORT5.PODR.BIT.B1)
\r
56 #define LED3 (PORT5.PODR.BIT.B2)
\r
58 /***********************************************************************************************************************
\r
60 ***********************************************************************************************************************/
\r
62 /***********************************************************************************************************************
\r
63 Exported global variables
\r
64 ***********************************************************************************************************************/
\r
66 /***********************************************************************************************************************
\r
67 Exported global functions (to be accessed by other files)
\r
68 ***********************************************************************************************************************/
\r