From cfe514913f0ee642c47f5ca2423d16a475dfd83f Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 21 Aug 2018 21:18:25 +0000 Subject: [PATCH] cm3: scs: drop (superseded) dwt macros They are all superseded by dwt.h, and the function dwt_enable_cycle_counter Fixes https://github.com/libopencm3/libopencm3/issues/125 (But only for the cycle count enabling) --- include/libopencm3/cm3/scs.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/libopencm3/cm3/scs.h b/include/libopencm3/cm3/scs.h index b4801549..02618efd 100644 --- a/include/libopencm3/cm3/scs.h +++ b/include/libopencm3/cm3/scs.h @@ -328,12 +328,6 @@ /* CoreSight Lock Access key, common for all */ #define SCS_LAR_KEY 0xC5ACCE55 -/* TODO bit definition values for other DWT_XXX register */ - -/* Macro to be called at startup to enable SCS & Cycle Counter */ -#define SCS_DWT_CYCLE_COUNTER_ENABLED() ((SCS_DEMCR |= SCS_DEMCR_TRCENA)\ - (SCS_DWT_CTRL |= SCS_DWT_CTRL_CYCCNTENA)) - #define SCS_SYSTICK_DISABLED() (SCS_SYST_CSR = 0) /* Macro to be called at startup to Enable CortexMx SysTick (but IRQ not