dwt_delay
dwt_delay copied to clipboard
Microseconds delay lib for STM32 (or whatever ARM) based on DWT
It would be nice if you could change the license of this project to something more permissive like MIT. GPL v3.0 leaves a bad taste for everybody in a commercial...
Hi, I cannot make it work under STM32F769, perhaps the unlocking sequence. ``` void DWT_Init(void) { if (!(CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk)) { CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT->LAR = 0xC5ACCE55; DWT->CYCCNT = 0;...
The timer function hangs or stops after a few seconds if placed in a infinite while loop.Please verify.
I replaced the include stmf1xx.h for 0xx and it instantly errored every line, does the library not work with those chips (cortex m0) or am I doing something wrong here?