.. index:: systick .. _systick-library: Systick Library =============== This is a general purpose interrupt driven Systick timing library that should work on any STM32Fxxxx. It has an accurate blocking delay and event timer. .. note:: Systick must be initialised before use and takes the "1ms-cal-value" as a parameter: "<1ms-cal-value> init.systick" Library Words ------------- ====================================== ====================================== ======================================= Word Description Example ====================================== ====================================== ======================================= ms.delay ( u - - delay ) Accurate BLOCKING ms delay 1000 ms.delay ms.counter.reset ( - - ) zero counter ms.counter.reset ms.read ( - - ) put ms.counter value on Stack 1000 on the stack ms.print ( - - ) print ms.counter to terminal screen 1000 ms seconds.print ( - - ) print seconds to 3 decimal places Elapsed time is: 1.000 seconds ms.reached? ( u - - yes = -1 | no = 0) True if count >= u 500 ms.reached? ====================================== ====================================== ======================================= .. _ststick-library-code: Code ---- :download:`Download systick.fs ` .. raw:: html :file: library/systick.fs.html