Skip to content

Commit 83b0115

Browse files
committed
feat(esp_coex): set the pull mode of the external coex input pin
1 parent 23d4af4 commit 83b0115

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/esp_coex/src/coexist.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
185185
{
186186
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[gpio_pin.priority], PIN_FUNC_GPIO);
187187
gpio_set_direction(gpio_pin.priority, GPIO_MODE_INPUT);
188+
gpio_set_pull_mode(gpio_pin.priority, GPIO_PULLDOWN_ONLY);
188189
esp_rom_gpio_connect_in_signal(gpio_pin.priority, EXTERNAL_COEX_SIGNAL_I1_IDX, false);
189190
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.priority), GPIO_PIN1_SYNC1_BYPASS, 2);
190191
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.priority), GPIO_PIN1_SYNC2_BYPASS, 2);
@@ -202,6 +203,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
202203
{
203204
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[gpio_pin.request], PIN_FUNC_GPIO);
204205
gpio_set_direction(gpio_pin.request, GPIO_MODE_INPUT);
206+
gpio_set_pull_mode(gpio_pin.request, GPIO_PULLDOWN_ONLY);
205207
esp_rom_gpio_connect_in_signal(gpio_pin.request, EXTERNAL_COEX_SIGNAL_I0_IDX, false);
206208
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.request), GPIO_PIN1_SYNC1_BYPASS, 2);
207209
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.request), GPIO_PIN1_SYNC2_BYPASS, 2);
@@ -220,6 +222,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
220222
{
221223
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[gpio_pin.tx_line], PIN_FUNC_GPIO);
222224
gpio_set_direction(gpio_pin.tx_line, GPIO_MODE_INPUT);
225+
gpio_set_pull_mode(gpio_pin.tx_line, GPIO_PULLDOWN_ONLY);
223226
esp_rom_gpio_connect_in_signal(gpio_pin.tx_line, EXTERNAL_COEX_SIGNAL_I1_IDX, false);
224227
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.tx_line), GPIO_PIN1_SYNC1_BYPASS, 2);
225228
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.tx_line), GPIO_PIN1_SYNC2_BYPASS, 2);
@@ -237,6 +240,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
237240
{
238241
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[gpio_pin.grant], PIN_FUNC_GPIO);
239242
gpio_set_direction(gpio_pin.grant, GPIO_MODE_INPUT);
243+
gpio_set_pull_mode(gpio_pin.grant, GPIO_PULLUP_ONLY);
240244
esp_rom_gpio_connect_in_signal(gpio_pin.grant, EXTERNAL_COEX_SIGNAL_I0_IDX, false);
241245
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.grant), GPIO_PIN1_SYNC1_BYPASS, 2);
242246
REG_SET_FIELD(GPIO_PIN_REG(gpio_pin.grant), GPIO_PIN1_SYNC2_BYPASS, 2);

0 commit comments

Comments
 (0)