fix(hal): correct the power up sequence for MPI/ECC peripherals in ESP32-C5

This commit is contained in:
Mahavir Jain
2024-06-20 10:41:20 +08:00
committed by nilesh.kale
parent 82c3a08d77
commit adea6829b3
10 changed files with 50 additions and 2 deletions

View File

@@ -49,6 +49,9 @@ static inline void ecc_ll_reset_register(void)
/// the critical section needs to declare the __DECLARE_RCC_ATOMIC_ENV variable in advance
#define ecc_ll_reset_register(...) (void)__DECLARE_RCC_ATOMIC_ENV; ecc_ll_reset_register(__VA_ARGS__)
static inline void ecc_ll_power_up(void) {}
static inline void ecc_ll_power_down(void) {}
static inline void ecc_ll_enable_interrupt(void)
{
REG_SET_FIELD(ECC_MULT_INT_ENA_REG, ECC_MULT_CALC_DONE_INT_ENA, 1);