Pumpkin, Inc.

Pumpkin User Forums

OSUSE_INLINE_OSTIMER

If you're having difficulty with Salvo's configuration options, post it here.

OSUSE_INLINE_OSTIMER

Postby Dave Hohl » Tue Apr 29, 2008 1:30 am

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.

Dave Hohl
 
Posts: 24
Joined: Wed Apr 02, 2008 11:00 pm
Location: Sunnyvale, CA, USA

Re: OSUSE_INLINE_OSTIMER

Postby aek » Tue Apr 29, 2008 3:33 am

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 .

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: OSUSE_INLINE_OSTIMER

Postby Dave Hohl » Tue Apr 29, 2008 4:04 am

I should have read the manual a bit more carefully. Sorry.
Dave Hohl
 
Posts: 24
Joined: Wed Apr 02, 2008 11:00 pm
Location: Sunnyvale, CA, USA

Re: OSUSE_INLINE_OSTIMER

Postby aek » Tue Apr 29, 2008 4:28 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron