mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 09:02:08 +00:00
feat(mbedtls): Add config for interrupt priority in AES and RSA(MPI)
This commit is contained in:
@@ -85,7 +85,9 @@ static esp_err_t esp_mpi_isr_initialise(void)
|
||||
return ESP_FAIL;
|
||||
}
|
||||
|
||||
esp_intr_alloc(ETS_RSA_INTR_SOURCE, 0, esp_mpi_complete_isr, NULL, NULL);
|
||||
const int isr_flags = esp_intr_level_to_flags(CONFIG_MBEDTLS_MPI_INTERRUPT_LEVEL);
|
||||
|
||||
esp_intr_alloc(ETS_RSA_INTR_SOURCE, isr_flags, esp_mpi_complete_isr, NULL, NULL);
|
||||
}
|
||||
|
||||
/* MPI is clocked proportionally to CPU clock, take power management lock */
|
||||
|
||||
Reference in New Issue
Block a user