mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-05 04:15:21 +02:00
driver: fix gpio pin_bit_mask truncation in sdspi_host and others
Closes https://github.com/espressif/esp-idf/issues/4348
This commit is contained in:
@@ -129,7 +129,7 @@ static void reset_slave(void)
|
||||
const int pin_en = 18;
|
||||
const int pin_io0 = 19;
|
||||
gpio_config_t gpio_cfg = {
|
||||
.pin_bit_mask = BIT(pin_en) | BIT(pin_io0),
|
||||
.pin_bit_mask = BIT64(pin_en) | BIT64(pin_io0),
|
||||
.mode = GPIO_MODE_OUTPUT_OD,
|
||||
};
|
||||
TEST_ESP_OK(gpio_config(&gpio_cfg));
|
||||
|
||||
Reference in New Issue
Block a user