ESP32

ESP32, UART, uart channel (0~2)

CoyoteUgly 2018. 8. 20. 23:21

ESP32, UART, uart channel (0~2)



소스 위치는 다음과 같습니다.

 esp-idf/components/soc/esp32/include/soc/uart_channel.h



github 위치는 다음과 같습니다.



//UART channels
#define UART_GPIO1_DIRECT_CHANNEL       UART_NUM_0
#define UART_NUM_0_TXD_DIRECT_GPIO_NUM  1
#define UART_GPIO3_DIRECT_CHANNEL       UART_NUM_0
#define UART_NUM_0_RXD_DIRECT_GPIO_NUM  3
#define UART_GPIO19_DIRECT_CHANNEL      UART_NUM_0
#define UART_NUM_0_CTS_DIRECT_GPIO_NUM  19
#define UART_GPIO22_DIRECT_CHANNEL      UART_NUM_0
#define UART_NUM_0_RTS_DIRECT_GPIO_NUM  22

#define UART_TXD_GPIO1_DIRECT_CHANNEL   UART_GPIO1_DIRECT_CHANNEL
#define UART_RXD_GPIO3_DIRECT_CHANNEL   UART_GPIO3_DIRECT_CHANNEL
#define UART_CTS_GPIO19_DIRECT_CHANNEL  UART_GPIO19_DIRECT_CHANNEL
#define UART_RTS_GPIO22_DIRECT_CHANNEL  UART_GPIO22_DIRECT_CHANNEL

#define UART_GPIO10_DIRECT_CHANNEL      UART_NUM_1
#define UART_NUM_1_TXD_DIRECT_GPIO_NUM  10
#define UART_GPIO9_DIRECT_CHANNEL       UART_NUM_1
#define UART_NUM_1_RXD_DIRECT_GPIO_NUM  9
#define UART_GPIO6_DIRECT_CHANNEL       UART_NUM_1
#define UART_NUM_1_CTS_DIRECT_GPIO_NUM  6
#define UART_GPIO11_DIRECT_CHANNEL      UART_NUM_1
#define UART_NUM_1_RTS_DIRECT_GPIO_NUM  11

#define UART_TXD_GPIO10_DIRECT_CHANNEL  UART_GPIO10_DIRECT_CHANNEL
#define UART_RXD_GPIO9_DIRECT_CHANNEL   UART_GPIO9_DIRECT_CHANNEL
#define UART_CTS_GPIO6_DIRECT_CHANNEL   UART_GPIO6_DIRECT_CHANNEL
#define UART_RTS_GPIO11_DIRECT_CHANNEL  UART_GPIO11_DIRECT_CHANNEL

#define UART_GPIO17_DIRECT_CHANNEL      UART_NUM_2
#define UART_NUM_2_TXD_DIRECT_GPIO_NUM  17
#define UART_GPIO16_DIRECT_CHANNEL      UART_NUM_2
#define UART_NUM_2_RXD_DIRECT_GPIO_NUM  16
#define UART_GPIO8_DIRECT_CHANNEL       UART_NUM_2
#define UART_NUM_2_CTS_DIRECT_GPIO_NUM  8
#define UART_GPIO7_DIRECT_CHANNEL       UART_NUM_2
#define UART_NUM_2_RTS_DIRECT_GPIO_NUM  7

#define UART_TXD_GPIO17_DIRECT_CHANNEL  UART_GPIO17_DIRECT_CHANNEL
#define UART_RXD_GPIO16_DIRECT_CHANNEL  UART_GPIO16_DIRECT_CHANNEL
#define UART_CTS_GPIO8_DIRECT_CHANNEL   UART_GPIO8_DIRECT_CHANNEL
#define UART_RTS_GPIO7_DIRECT_CHANNEL UART_GPIO7_DIRECT_CHANNEL

'ESP32' 카테고리의 다른 글

ESP32, Bluetooth, Wi-Fi, blufi  (0) 2018.08.21
ESP32, Wi-Fi, http2_request  (0) 2018.08.21
EPS32, monitor option  (0) 2018.08.20
ESP32, make option  (0) 2018.08.20
ESP32, 리눅스 개발 환경 설정  (0) 2018.08.20