RXduino  1.20a
RXduinoマニュアル 最終更新日 平成26年6月29日
brd_raxinoi.h
1 #ifndef BOARDDEF_H
2 #define BOARDDEF_H
3 
5 // GR-UME Board definition
6 // Version 0.80 H24/6/1
7 //
9 
10 // これはボード固有のカスタマイズを行うためのヘッダファイルです
11 // トップディレクトリでmake use_***を実行すると自動的に書き換わります
12 // RXduinoのSerialクラスが使うデフォルトのポート番号
13 
14 #define CPU_IS_RX63N
15 #define ROMSIZE (1024*1024)
16 #define RAMSIZE (128*1024)
17 #define DEFAULT_SERIAL SCI_USB0
18 #define USBVCOM_VID 0x2129
19 #define USBVCOM_PID 0x0542
20 #define USB_STRING_DESCRIPTOR_DATA \
21  'R', 0x00, 'X', 0x00, 'd', 0x00, 'u', 0x00, \
22  'i', 0x00, 'n', 0x00, 'o', 0x00, ' ', 0x00, \
23  'U', 0x00, 'S', 0x00, 'B', 0x00, ' ', 0x00, \
24  'V', 0x00, 'C', 0x00, 'O', 0x00, 'M', 0x00, \
25  ' ', 0x00, 'p', 0x00, 'o', 0x00, 'r', 0x00, \
26  't', 0x00,
27 
28 #include "tkdn_hal.h"
29 
30 // ボードに応じた定数の設定
31 #ifndef TARGET_BOARD
32  #define TARGET_BOARD BOARD_RAXINOI
33 #endif
34 #define CPU_TYPE RX63N
35 #define BOARD_NAME "RxXino-i"
36 
37 #define EXISTS_SDMMC
38 //#define EXISTS_SDRAM
39 //#define EXISTS_SPIROM
40 
41 // ピン番号マクロ
42 #define PIN_PD4 1 // LED0
43 #define PIN_PD5 2 // LED1
44 #define PIN_PD6 3 // LED2
45 #define PIN_PD7 4 // LED3
46 #define PIN_PC6 5
47 #define PIN_PC7 6
48 #define PIN_PC5 7
49 #define PIN_PC4 8
50 #define PIN_PC3 9
51 #define PIN_PC2 10
52 #define PIN_PE6 11
53 #define PIN_PE7 12
54 #define PIN_PE1 13
55 #define PIN_PE2 14
56 #define PIN_P45 15
57 #define PIN_P44 16
58 #define PIN_P43 17
59 #define PIN_P42 18
60 #define PIN_P41 19
61 #define PIN_P40 20
62 #define PIN_PE4 21
63 #define PIN_PE5 22
64 #define PIN_PE3 23
65 #define PIN_P24 24
66 #define PIN_P23 25
67 #define PIN_P17 26
68 #define PIN_P21 27
69 #define PIN_P20 28
70 #define PIN_PD1 29
71 #define PIN_PD2 30
72 
73 // 各種ライブラリで使われる
74 #define PIN_SDMMC_CS PIN_PC0
75 #define SDMMC_RSPI_CH 0
76 #define PHY_ADDR 0x00
77 #define ETH_PORT_IS_AB
78 #define USB_HOST_CH 0
79 #define USB_FUNC_CH 0
80 
81 #endif /* BOARDDEF_H */
82 
83 // 以下、ボード上のピン配置を定義する
84 
85 #ifdef COMPILE_TKDNGPIO
86 const unsigned char GPIO_PINMAP[] =
87 {
88  _PORTD , _BIT4, // LED0と兼用
89  _PORTD , _BIT4, // LED0と兼用
90  _PORTD , _BIT5, // LED1と兼用
91  _PORTD , _BIT6, // LED2と兼用
92  _PORTD , _BIT7, // LED3と兼用
93  _PORTC , _BIT6, // 5番ピン
94  _PORTC , _BIT7, // 6番ピン
95  _PORTC , _BIT5, // 7番ピン
96  _PORTC , _BIT4, // 8番ピン
97  _PORTC , _BIT3, // 9番ピン
98  _PORTC , _BIT2, // 10番ピン
99  _PORTE , _BIT6, // 11番ピン
100  _PORTE , _BIT7, // 12番ピン
101  _PORTE , _BIT1, // 13番ピン
102  _PORTE , _BIT2, // 14番ピン
103  _PORT4 , _BIT5, // 15番ピン
104  _PORT4 , _BIT4, // 16番ピン
105  _PORT4 , _BIT3, // 17番ピン
106  _PORT4 , _BIT2, // 18番ピン
107  _PORT4 , _BIT1, // 19番ピン
108  _PORT4 , _BIT0, // 20番ピン
109  _PORTE , _BIT4, // 21番ピン
110  _PORTE , _BIT5, // 22番ピン
111  _PORTE , _BIT3, // 23番ピン
112  _PORT2 , _BIT4, // 24番ピン
113  _PORT2 , _BIT3, // 25番ピン
114  _PORT1 , _BIT7, // 26番ピン
115  _PORT2 , _BIT1, // 27番ピン
116  _PORT2 , _BIT0, // 28番ピン
117  _PORTD , _BIT1, // 29番ピン
118  _PORTD , _BIT2, // 30番ピン
119 };
120 
121 const unsigned char SFP_PINMAP[] =
122 {
123  _PORTD , _BIT4, // LED0
124  _PORTD , _BIT5, // LED1
125  _PORTD , _BIT6, // LED2
126  _PORTD , _BIT7, // LED3
127  _PORTD , _BIT7, // BUZZ
128  _PORT3 , _BIT5, // SW(NMI端子を使う)
129  _PORTC , _BIT4, // SPI_CS0
130  _PORTC , _BIT0, // SPI_CS1
131  _PORTC , _BIT1, // SPI_CS2
132  _PORTC , _BIT2, // SPI_CS3
133 };
134 
135 #endif
特電HALのヘッダファイル