2022-01-17 07:32:39 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-11-25 23:39:49 -05:00
|
|
|
|
2022-01-17 07:32:39 -05:00
|
|
|
// This file defines GPIO lookup macros for available UART IO_MUX pins on ESP32C3.
|
2020-11-25 23:39:49 -05:00
|
|
|
|
|
|
|
#ifndef _SOC_UART_CHANNEL_H
|
|
|
|
#define _SOC_UART_CHANNEL_H
|
|
|
|
|
|
|
|
//UART channels
|
2022-01-17 07:32:39 -05:00
|
|
|
#define UART_GPIO21_DIRECT_CHANNEL UART_NUM_0
|
|
|
|
#define UART_NUM_0_TXD_DIRECT_GPIO_NUM 21
|
|
|
|
#define UART_GPIO20_DIRECT_CHANNEL UART_NUM_0
|
|
|
|
#define UART_NUM_0_RXD_DIRECT_GPIO_NUM 20
|
2020-11-25 23:39:49 -05:00
|
|
|
|
2022-01-17 07:32:39 -05:00
|
|
|
#define UART_TXD_GPIO21_DIRECT_CHANNEL UART_GPIO21_DIRECT_CHANNEL
|
|
|
|
#define UART_RXD_GPIO20_DIRECT_CHANNEL UART_GPIO20_DIRECT_CHANNEL
|
2020-11-25 23:39:49 -05:00
|
|
|
|
|
|
|
#endif
|