bugfix: esprv_intc_int_set_type should not use bitmap parameter

This commit is contained in:
wuzhenghui
2022-10-14 15:27:19 +08:00
parent 9e863ecdb8
commit 4934d700c9
3 changed files with 3 additions and 3 deletions

View File

@@ -458,7 +458,7 @@ void esp_memprot_set_intr_matrix(mem_type_prot_t mem_type)
}
/* Set the type and priority to cache error interrupts. */
esprv_intc_int_set_type(BIT(ETS_MEMPROT_ERR_INUM), INTR_TYPE_LEVEL);
esprv_intc_int_set_type(ETS_MEMPROT_ERR_INUM, INTR_TYPE_LEVEL);
esprv_intc_int_set_priority(ETS_MEMPROT_ERR_INUM, SOC_INTERRUPT_LEVEL_MEDIUM);
ESP_INTR_ENABLE(ETS_MEMPROT_ERR_INUM);