![]() |
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Code for tracking milliseconds elapsed in another cog. This is part of a tutorial on adding a Simple Library to the project. More...
Go to the source code of this file.
Functions | |
void | ms_timer (void *par) |
int | mstime_start () |
Start the millisecond timer. More... | |
void | mstime_stop () |
Stop the millisecond timer and free up a cog. | |
int | mstime_get () |
Get milliseconds since call to start. More... | |
void | mstime_reset () |
Reset the millisecond time elapsed to zero. | |
void | mstime_set (int newTime) |
Set the millisecond timer. More... | |
Variables | |
static volatile int | t |
static volatile int | dt |
static volatile int | cog |
static unsigned int | stack [40+25] |
Code for tracking milliseconds elapsed in another cog. This is part of a tutorial on adding a Simple Library to the project.
Definition in file mstimer.c.
int mstime_get | ( | ) |
void mstime_set | ( | int | newTime | ) |