SetTimer
function. The updated SOS sources can be downloaded from here.
task
function attribute patch
is there, so you can download new SOS sources and avoid using the code shown
below (see news from 15.02.04). With the new version of SOS that code is unnecessary
and should be removed from you projects.
KSetEvents
) and is 100% compatible with SOS.
It will be available soon for the $50 fee.
naked
attribute is used with the task
functions. I have made a patch for msp430-gcc which implements new task
function attribute. A quick fix is to insert
the following code at the start of the task function (needed only if
FrameSize>0):
asm volatile("sub #.L__FrameSize_"__FUNCTION__",r1" : :);
There was the same problem with the osinterrupt
functions. But it is not likely to have
a FrameSize>0 in interrupt handlers, and I have already fixed it (no changes are needed for
your programs, just download new SOS sources from the download section,
and recompile SOS).
__EnterLPM
function (you
should implement this function by yourself) during periods of IDLE time. Your
__EnterLPM
function should look like:
void __EnterLPM(void)
{
for(;;)LPM1; //Use LPM appropriate for your application
}
Now it is possible to use SOS in the low power
applications.
osinterrupt
macro syntax to match
the standard msp430-gcc's interrupt
macro
syntax.
#define RR_SHEDULER
line in the
'Config.h' file. inttypes.h
. This will make file OS.h
compatible with UNIX systems. FAQs.