as a way of creating accurately timed delays. A simple 'msleep' is implemented by watching the system clock to wait a certain number of milleseconds before it returns. Its a bit more accurate than a for loop, although it really shines when your running multiple threads.
9 lines
307 B
Plaintext
9 lines
307 B
Plaintext
README
|
|
------
|
|
|
|
This example is the same as fancy_blink except that it uses the
|
|
systick timer to generate time accurate delays. Shows how to set
|
|
up the systick timer to create an interrupt every millisecond and
|
|
how to write a delay routine (msleep) that can then delay for a
|
|
specific number of milliseconds.
|