mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-26 05:09:19 +00:00
feat(esp_coex): set the pull mode of the external coex input pin
This commit is contained in:
@@ -189,6 +189,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
|
||||
{
|
||||
gpio_func_sel(gpio_pin.priority, PIN_FUNC_GPIO);
|
||||
gpio_set_direction(gpio_pin.priority, GPIO_MODE_INPUT);
|
||||
gpio_set_pull_mode(gpio_pin.priority, GPIO_PULLDOWN_ONLY);
|
||||
esp_rom_gpio_connect_in_signal(gpio_pin.priority, EXTERNAL_COEX_SIGNAL_I1_IDX, false);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.priority), GPIO_PIN1_SYNC1_BYPASS, 2);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.priority), GPIO_PIN1_SYNC2_BYPASS, 2);
|
||||
@@ -206,6 +207,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
|
||||
{
|
||||
gpio_func_sel(gpio_pin.request, PIN_FUNC_GPIO);
|
||||
gpio_set_direction(gpio_pin.request, GPIO_MODE_INPUT);
|
||||
gpio_set_pull_mode(gpio_pin.request, GPIO_PULLDOWN_ONLY);
|
||||
esp_rom_gpio_connect_in_signal(gpio_pin.request, EXTERNAL_COEX_SIGNAL_I0_IDX, false);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.request), GPIO_PIN1_SYNC1_BYPASS, 2);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.request), GPIO_PIN1_SYNC2_BYPASS, 2);
|
||||
@@ -224,6 +226,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
|
||||
{
|
||||
gpio_func_sel(gpio_pin.tx_line, PIN_FUNC_GPIO);
|
||||
gpio_set_direction(gpio_pin.tx_line, GPIO_MODE_INPUT);
|
||||
gpio_set_pull_mode(gpio_pin.tx_line, GPIO_PULLDOWN_ONLY);
|
||||
esp_rom_gpio_connect_in_signal(gpio_pin.tx_line, EXTERNAL_COEX_SIGNAL_I1_IDX, false);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.tx_line), GPIO_PIN1_SYNC1_BYPASS, 2);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.tx_line), GPIO_PIN1_SYNC2_BYPASS, 2);
|
||||
@@ -241,6 +244,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
|
||||
{
|
||||
gpio_func_sel(gpio_pin.grant, PIN_FUNC_GPIO);
|
||||
gpio_set_direction(gpio_pin.grant, GPIO_MODE_INPUT);
|
||||
gpio_set_pull_mode(gpio_pin.grant, GPIO_PULLUP_ONLY);
|
||||
esp_rom_gpio_connect_in_signal(gpio_pin.grant, EXTERNAL_COEX_SIGNAL_I0_IDX, false);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.grant), GPIO_PIN1_SYNC1_BYPASS, 2);
|
||||
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.grant), GPIO_PIN1_SYNC2_BYPASS, 2);
|
||||
|
||||
Reference in New Issue
Block a user