mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 20:21:04 +00:00
feat(mbedtls): Add config for interrupt priority in AES and RSA(MPI)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user