drivers: spi_esp32_spim: Support more CS pins per SPI instance

Support more CS pins per SPI instance

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
Yannis Damigos 2022-03-27 22:43:01 +03:00 committed by Fabio Baltieri
parent 04a080bf70
commit f845d9ac02
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ static int IRAM_ATTR spi_esp32_configure(const struct device *dev,
return -ENOTSUP;
}
hal_dev->cs_pin_id = ctx->config->slave;
int ret = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT);
/* input parameters to calculate timing configuration */