mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'fix/sdio_revert_intrstatus_alloc' into 'master'
fix(sdio): restore generic interrupt allocation See merge request espressif/esp-idf!51389
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -355,15 +355,7 @@ esp_err_t sdio_slave_initialize(sdio_slave_config_t *config)
|
|||||||
r = init_context(config);
|
r = init_context(config);
|
||||||
SDIO_SLAVE_CHECK(r == ESP_OK, "context initialization failed", r);
|
SDIO_SLAVE_CHECK(r == ESP_OK, "context initialization failed", r);
|
||||||
|
|
||||||
r = esp_intr_alloc_intrstatus(
|
r = esp_intr_alloc(ETS_SLC0_INTR_SOURCE, flags, sdio_intr, NULL, &intr_handle);
|
||||||
ETS_SLC0_INTR_SOURCE,
|
|
||||||
flags,
|
|
||||||
(uint32_t)sdio_slave_hal_get_intr_status_reg(context.hal),
|
|
||||||
sdio_slave_ll_intr_status_mask,
|
|
||||||
sdio_intr,
|
|
||||||
NULL,
|
|
||||||
&intr_handle
|
|
||||||
);
|
|
||||||
SDIO_SLAVE_CHECK(r == ESP_OK, "interrupt allocation failed", r);
|
SDIO_SLAVE_CHECK(r == ESP_OK, "interrupt allocation failed", r);
|
||||||
context.intr_handle = intr_handle;
|
context.intr_handle = intr_handle;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user