Page 1 of 1

OSUSE_INLINE_OSTIMER

PostPosted: Tue Apr 29, 2008 1:30 am
by Dave Hohl
I set OSUSE_INLINE_OSTIMER to TRUE in my salvocfg.h file, and the compiler complains that OSTimer is undefined. I searched the Salvo include files for OSTimer, and all I found is the following in salvofpt.h:

#if !OSUSE_INLINE_OSTIMER
OStypeErr OSTimer ( void );
#endif


There does not appear to be a macro version of OSTimer defined for when OSUSE_INLINE_OSTIMER is TRUE.


Re: OSUSE_INLINE_OSTIMER

PostPosted: Tue Apr 29, 2008 3:33 am
by aek
Salvo's inline timer is implemented in a manner that might strike you as a bit odd ... not a conventional "inline function".

See the bottom of page 182 of http://www.pumpkininc.com/content/doc/manual/SalvoUserManual.pdf .

------------------


Re: OSUSE_INLINE_OSTIMER

PostPosted: Tue Apr 29, 2008 4:04 am
by Dave Hohl
I should have read the manual a bit more carefully. Sorry.

Re: OSUSE_INLINE_OSTIMER

PostPosted: Tue Apr 29, 2008 4:28 am
by aek
No Problem.

I wouldn't recommend inlining OSTimer() for something like the MSP430 -- this capability is mainly there for e.g. the PIC, which has only an 8-level-deep hardware stack, and every call/return level is precious.

------------------