]> git.sur5r.net Git - freertos/blob - Demo/RX600_RX63N-RDK_Renesas/RTOSDemo/Renesas-Files/board/rdkrx63n/yrdkrx63n.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / RX600_RX63N-RDK_Renesas / RTOSDemo / Renesas-Files / board / rdkrx63n / yrdkrx63n.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        : yrdkrx63n.h\r
21 * H/W Platform : YRDKRX63N\r
22 * Description  : Board specific definitions for the RDKRX63N.\r
23 ***********************************************************************************************************************/\r
24 /***********************************************************************************************************************\r
25 * History : DD.MM.YYYY Version  Description\r
26 *         : 30.11.2011 1.00     First Release\r
27 ***********************************************************************************************************************/\r
28 \r
29 #ifndef RDK_RX63N_H\r
30 #define RDK_RX63N_H\r
31 \r
32 \r
33 /* Local defines */
34 #define LED_ON              (0)
35 #define LED_OFF             (1)\r
36 \r
37 /* I/0 port 1 */
38 #define USB_VBUSEN          PORT1.PODR.BIT.B6 
39 #define AUDIO_OUT_R         PORT1.PODR.BIT.B7
40 \r
41 /* I/0 port 2 */
42 #define BL_ENA              PORT2.PODR.BIT.B1 
43 #define USB_DPUPEA          PORT2.PODR.BIT.B3 
44
45 /* I/O port 3 */
46 #define CAN_WIFI_TX         PORT3.PODR.BIT.B2    
47
48 /* I/O port 4: switches and various peripherals  */
49 #define SW_ACTIVE           (0)
50 #define SW1                 PORT4.PIDR.BIT.B0   \r
51 #define SW1_PMR             PORT4.PMR.BIT.B0\r
52 #define SW1_PDR             PORT4.PDR.BIT.B0
53 #define SW2                 PORT4.PIDR.BIT.B1    \r
54 #define SW2_PMR             PORT4.PMR.BIT.B1\r
55 #define SW2_PDR             PORT4.PDR.BIT.B1
56 #define POTENTIOMETER       PORT4.PODR.BIT.B2
57 #define JN1_AN3             PORT4.PODR.BIT.B3
58 #define SW3                 PORT4.PIDR.BIT.B4 \r
59 #define SW3_PMR             PORT4.PMR.BIT.B4\r
60 #define SW3_PDR             PORT4.PDR.BIT.B4
61 #define MICROPHONE          PORT4.PODR.BIT.B5
62 #define AUDIO_IN_R          PORT4.PODR.BIT.B6
63 #define PWMLP_IN            PORT4.PODR.BIT.B7
64
65 /* I/O port 5  */
66 #define LCD_RS              PORT5.PODR.BIT.B1
67 #define BCLK                PORT5.PODR.BIT.B3
68 #define PWMLP_OUT           PORT5.PODR.BIT.B4
69
70 /* I/O port A:  Extension slot (JN2) and E/N pins */
71 #define JN2_SSLA1_B         PORTA.PODR.BIT.B0
72 #define PMOD1_PIN8          PORTA.PODR.BIT.B1
73 #define AMP_SHDN            PORTA.PODR.BIT.B2
74 #define ETH_MDIO            PORTA.PODR.BIT.B3
75 #define ETH_MDC             PORTA.PODR.BIT.B4
76 #define ETH_LINK            PORTA.PODR.BIT.B5
77
78 /* I/O port B:  Ethernet I/O pins definitions */
79 #define RMII_RXD1           PORTB.PODR.BIT.B0
80 #define RMII_RXD0           PORTB.PODR.BIT.B1
81 #define ETH_CLK             PORTB.PODR.BIT.B2
82 #define RMII_RX_ER          PORTB.PODR.BIT.B3
83 #define RMII_TX_EN          PORTB.PODR.BIT.B4        
84 #define RMII_TXD0           PORTB.PODR.BIT.B5        
85 #define RMII_TXD1           PORTB.PODR.BIT.B6    
86 #define ETH_CRS             PORTB.PODR.BIT.B7
87
88 /* I/O port C:  RSPI and peripheral I/O pins definitions */
89 #define RSPI_CHANNEL_0      0
90 #define RSPI_CHANNEL_1      1\r
91 #define FLASH_CS            PORTC.PODR.BIT.B0        /* SSL 1 */
92 #define AUDIO_OUT_L         PORTC.PODR.BIT.B1
93 #define LCD_CS              PORTC.PODR.BIT.B2        /* SSL 3 */
94 #define LCD_RESET           PORTC.PODR.BIT.B3         
95 #define SDMICRO_CS          PORTC.PODR.BIT.B4        /* SSL 0 */
96 #define RSPI_SCLOCK         PORTC.PODR.BIT.B5        
97 #define RSPI_MOSI           PORTC.PODR.BIT.B6        
98 #define RSPI_MISO           PORTC.PODR.BIT.B7
99
100 /* I/O ports D & E:  LEDs */
101 #define LED4                PORTD.PODR.BIT.B5
102 #define LED5                PORTE.PODR.BIT.B3
103 #define LED6                PORTD.PODR.BIT.B2     
104 #define LED7                PORTE.PODR.BIT.B0
105 #define LED8                PORTD.PODR.BIT.B4
106 #define LED9                PORTE.PODR.BIT.B2
107 #define LED10               PORTD.PODR.BIT.B1
108 #define LED11               PORTD.PODR.BIT.B7
109 #define LED12               PORTD.PODR.BIT.B3
110 #define LED13               PORTE.PODR.BIT.B1
111 #define LED14               PORTD.PODR.BIT.B0
112 #define LED15               PORTD.PODR.BIT.B6
113
114 /* WiFi chip select */\r
115 #define WIFI_CS             PORTJ.PODR.BIT.B3        
116 \r
117 #endif /* RDK_RX63N_H */\r
118 \r