C2A_Core
port_config.h
[詳解]
1 #ifndef PORT_CONFIG_H_
2 #define PORT_CONFIG_H_
3 
4 // ============================================== //
5 // = UART関連のポート設定 = //
6 // ============================================== //
7 #define PORT_CH_RS422_MOBC_EXT (0)
8 #define PORT_CH_RS422_AOBC (1)
9 #define PORT_CH_RS422_SAMPLE2 (2)
10 #define PORT_CH_RS422_SAMPLE3 (3)
11 #define PORT_CH_RS422_SAMPLE4 (4)
12 #define PORT_CH_RS422_SAMPLE5 (5)
13 #define PORT_CH_RS422_SAMPLE6 (6)
14 #define PORT_CH_RS422_SAMPLE7 (7)
15 
16 #define PORT_CH_UART_TEST (PORT_CH_RS422_AOBC)
17 
18 #define PORT_CH_MAX_UART_PORT (8)
19 
20 // ============================================== //
21 // = GPIO関連のポート設定 = //
22 // ============================================== //
23 #define PORT_CH_GPIO_OUT_SAMPLE0 (0x0001)
24 #define PORT_CH_GPIO_OUT_SAMPLE1 (0x0002)
25 
26 #define PORT_CH_GPIO_IN_SAMPLE0 (0x0001)
27 #define PORT_CH_GPIO_IN_SAMPLE1 (0x0002)
28 
29 // ============================================== //
30 // = ADC関連のポート設定 = //
31 // ============================================== //
32 #define PORT_CH_ADC_SAMPLE0 (0x00)
33 #define PORT_CH_ADC_SAMPLE1 (0x01)
34 
35 #endif