mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
623bffaab8
Use dedicated GPIOs in examples to show how to emulate a UART, I2C and SPI bus. (Using assembly and C)
22 lines
629 B
Plaintext
22 lines
629 B
Plaintext
menu "Example Configuration"
|
|
|
|
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
|
|
|
config EMULATE_UART_GPIO_TX
|
|
int "GPIO pin for UART TX"
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
|
default 0 if IDF_TARGET_ARCH_RISCV
|
|
default 16
|
|
help
|
|
GPIO pin number to be used as UART TX.
|
|
|
|
config EMULATE_UART_GPIO_RX
|
|
int "GPIO pin for UART RX"
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
|
default 2 if IDF_TARGET_ARCH_RISCV
|
|
default 17
|
|
help
|
|
GPIO pin number to be used as UART RX.
|
|
|
|
endmenu
|