11 #define DEMCR_TRCENA 0x01000000 14 #define DEMCR (*((volatile uint32_t *)0xE000EDFC)) 16 #define DWT_CTRL (*(volatile uint32_t *)0xe0001000) 17 #define CYCCNTENA (1<<0) 18 #define DWT_CYCCNT ((volatile uint32_t *)0xE0001004) 19 #define CPU_CYCLES *DWT_CYCCNT static uint32_t stopwatch_getticks()
void stopwatch_delay_us(uint32_t us)
void stopwatch_init(void)
static void stopwatch_reset(void)