Skip to content

SDIO 1-bit (and other interfaces) support for ESP-Hosted #11964

@cruzjuniel

Description

@cruzjuniel

Related area

WiFi/BT via ESP-Hosted

Hardware specification

Any ESP32-P4 board with no on-board ESP-Hosted co-processor, or only connected via 1-bit SDIO

Is your feature request related to a problem?

We'd like to use 1-bit SDIO for ESP-Hosted allowing us to free up some GPIO. This also allows space constrained PCBs to have optional ESP-Hosted coprocessor attachment in exchange for reduced speed, these are cases where using DNM components is also not an option.

Describe the solution you'd like

When using WiFi.setPins(), using d1 to d3 should be allowed to be -1 when not in use and automatically set it to use 1-bit SDIO for ESP-Hosted.

Currently, it doesn't seem to be allowed:

bool hostedSetPins(int8_t clk, int8_t cmd, int8_t d0, int8_t d1, int8_t d2, int8_t d3, int8_t rst) {
if (clk < 0 || cmd < 0 || d0 < 0 || d1 < 0 || d2 < 0 || d3 < 0 || rst < 0) {
log_e("All SDIO pins must be defined");
return false;
}

Different modes like SPI should be handled as well.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs investigationWe need to do some research before taking next steps on this issueType: Feature requestFeature request for Arduino ESP32

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions