Merge branch 'feature/add_intr_priority_config_option' into 'master'

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

Closes IDF-7963 and IDF-7964

See merge request espressif/esp-idf!26190
This commit is contained in:
Mahavir Jain
2023-10-16 11:33:03 +08:00
4 changed files with 36 additions and 2 deletions
@@ -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