feat(mbedtls): Add config for interrupt priority in AES and RSA(MPI)

This commit is contained in:
nilesh.kale
2023-09-25 13:28:29 +05:30
parent a9f7579e0a
commit cf4a7bb09d
4 changed files with 36 additions and 2 deletions

View File

@@ -300,6 +300,15 @@ static inline int esp_intr_flags_to_level(int flags)
return __builtin_ffs((flags & ESP_INTR_FLAG_LEVELMASK) >> 1);
}
/**
* @brief Get the interrupt flags from the supplied level (priority)
* @param level The interrupt priority level
*/
static inline int esp_intr_level_to_flags(int level)
{
return (level > 0) ? (1 << level) & ESP_INTR_FLAG_LEVELMASK : 0;
}
/**
* @brief Dump the status of allocated interrupts
* @param stream The stream to dump to, if NULL then stdout is used