Aligning with CMSIS-6 update for profiling.
Removes usage of (deprecated) `CoreDebug` in favour of `DCB`.
Change-Id: I05ad7b686dc0faff22249c23db9c056373999ea2
Signed-off-by: Matthew Dalzell <matthew.dalzell@arm.com>
diff --git a/profiling/export/platform/tfm_hal_dwt_prof.c b/profiling/export/platform/tfm_hal_dwt_prof.c
index 4f81100..f757fc0 100644
--- a/profiling/export/platform/tfm_hal_dwt_prof.c
+++ b/profiling/export/platform/tfm_hal_dwt_prof.c
@@ -10,7 +10,7 @@
/* Initialize the timer/cycle counter hardware for profiling */
void prof_hal_init(void)
{
- CoreDebug->DEMCR = CoreDebug_DEMCR_TRCENA_Msk; /* Enable DWT. */
+ DCB->DEMCR = DCB_DEMCR_TRCENA_Msk; /* Enable DWT. */
DWT->CTRL = DWT_CTRL_CYCCNTENA_Msk; /* Enable CYCCNT. */
DWT->CYCCNT = 0x0; /* Reset the processor cycle counter. */
}