feat(ecc): use RCC atomic block to enable/reset the ECC peripheral

This commit is contained in:
harshal.patil
2023-09-06 17:03:55 +05:30
parent c5cc4f488a
commit 1c6ff8ce9f
7 changed files with 143 additions and 9 deletions

View File

@@ -15,8 +15,10 @@ extern "C" {
#if SOC_RCC_IS_INDEPENDENT
#define MPI_RCC_ATOMIC()
#define ECC_RCC_ATOMIC()
#else /* !SOC_RCC_IS_INDEPENDENT */
#define MPI_RCC_ATOMIC() PERIPH_RCC_ATOMIC()
#define ECC_RCC_ATOMIC() PERIPH_RCC_ATOMIC()
#endif /* SOC_RCC_IS_INDEPENDENT */
#ifdef __cplusplus