2013-09-05 06:54 PM
The code I'm porting use the __nop() function the delay but I don't have that function on F1, should I use the systick instead?
https://github.com/metropt/STM32StepperDriver/blob/master/Source/main.c#L28
thanks :)2013-09-05 07:21 PM
Which F1 library are you using?
STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h This has __NOP defined for 3 compiler architectures, __nop is Keil/RealView specific Software loops are notoriously poor solutions, SysTick perhaps has too large a granularity, DWT_CYCCNT has less. If signal placement is important one should use hw timers.