]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/Renesas-Files/board/rskrx63n/rskrx63n.h
6699734166cfbd8cd6be14a9f8597505afb659e6
[freertos] / FreeRTOS / Demo / RX600_RX63N-RSK_Renesas / RTOSDemo / Renesas-Files / board / rskrx63n / rskrx63n.h
1 /***********************************************************************************************************************\r
2 * DISCLAIMER\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
14 * following link:\r
15 * http://www.renesas.com/disclaimer \r
16 *\r
17 * Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved.    \r
18 ***********************************************************************************************************************/\r
19 /***********************************************************************************************************************\r
20 * File Name        : rskrx63n.h\r
21 * H/W Platform : RSK+RX63N\r
22 * Description  : Board specific definitions for the RSKRX630.\r
23 ***********************************************************************************************************************/\r
24 /***********************************************************************************************************************\r
25 * History : DD.MM.YYYY Version  Description\r
26 *         : 28.11.2011 1.00     First Release\r
27 ***********************************************************************************************************************/\r
28 \r
29 #ifndef RSKRX63N_H
30 #define RSKRX63N_H
31
32 /* Local defines */
33 #define LED_ON              (0)
34 #define LED_OFF             (1)
35 #define SET_BIT_HIGH        (1)
36 #define SET_BIT_LOW         (0)
37 #define SET_BYTE_HIGH       (0xFF)
38 #define SET_BYTE_LOW        (0x00)\r
39 \r
40 /* Switches */\r
41 #define SW_ACTIVE           0\r
42 #define SW1                         PORT3.PIDR.BIT.B2\r
43 #define SW2                         PORT0.PIDR.BIT.B0\r
44 #define SW3                         PORT0.PIDR.BIT.B7\r
45 #define SW1_PDR                     PORT3.PDR.BIT.B2\r
46 #define SW2_PDR                     PORT0.PDR.BIT.B0\r
47 #define SW3_PDR                     PORT0.PDR.BIT.B7\r
48 #define SW1_PMR                     PORT3.PMR.BIT.B2\r
49 #define SW2_PMR                     PORT0.PMR.BIT.B0\r
50 #define SW3_PMR                     PORT0.PMR.BIT.B7\r
51 \r
52 /* LEDs */\r
53 #define LED0                        PORT0.PODR.BIT.B3\r
54 #define LED1                        PORT0.PODR.BIT.B5\r
55 #define LED2                        PORT1.PODR.BIT.B0\r
56 #define LED3                        PORT1.PODR.BIT.B1\r
57 #define LED0_PDR                    PORT0.PDR.BIT.B3\r
58 #define LED1_PDR                    PORT0.PDR.BIT.B5\r
59 #define LED2_PDR                    PORT1.PDR.BIT.B0\r
60 #define LED3_PDR                    PORT1.PDR.BIT.B1\r
61 \r
62 /* Slave select. */\r
63 #define FLASH_CS            PORT3.PDR.BIT.B1        // SSLB0\r
64
65 #endif /* RSKRX63N_H */\r