|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
16 static volatile int t, dt, cog;
17 static unsigned int stack[40 + 25];
19 void ms_timer(
void *par);
24 cog = 1 +
cogstart(ms_timer, NULL, stack,
sizeof(stack));
52 void ms_timer(
void *par)
Tracks milliseconds elapsed in another cog. This is part of a tutorial on adding a Simple Library to ...
int mstime_get()
Get milliseconds since call to start.
void mstime_reset()
Reset the millisecond time elapsed to zero.
int mstime_start()
Start the millisecond timer.
void mstime_stop()
Stop the millisecond timer and free up a cog.
#define CLKFREQ
Returns the current clock frequency.
void mstime_set(int newTime)
Set the millisecond timer.
#define waitcnt(a)
Wait until system counter reaches a value.
#define cogstop(a)
Stop a COG.
#define CNT
The system clock count.
int cogstart(void(*func)(void *), void *par, void *stack, size_t stacksize)
Start a new propeller LMM function/thread in another COG.