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)
This commit is contained in:
parent
6fa75afbc6
commit
cfe514913f
@ -328,12 +328,6 @@
|
|||||||
/* CoreSight Lock Access key, common for all */
|
/* CoreSight Lock Access key, common for all */
|
||||||
#define SCS_LAR_KEY 0xC5ACCE55
|
#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)
|
#define SCS_SYSTICK_DISABLED() (SCS_SYST_CSR = 0)
|
||||||
|
|
||||||
/* Macro to be called at startup to Enable CortexMx SysTick (but IRQ not
|
/* Macro to be called at startup to Enable CortexMx SysTick (but IRQ not
|
||||||
|
Loading…
x
Reference in New Issue
Block a user