Page 1 of 1

RUNNING SALVO ON WINDOWS

PostPosted: Wed Sep 20, 2006 9:16 am
by aek
The issue with running on Windows is writing an x86 context-switcher that works with the particular compiler you are using.

We used Salvo on x86 with the Power C compiler, but never tried it on other compilers (MS. Borland. etc.). We also have a user that ported Salvo to x86 under Linux.

Probably the biggest hassle on the PC is dealing with interrupts. If you avoid calling Salvo services from interrupts, then your Salvocontext switcher can be pretty simple. Then, you can do things like call OSTimer() from the main loop() via a countdown timer and still have reasonably accurate OS_Delay()'s, etc.

Send an email to support with your Salvo registration info and we'll email some files to use as a basis for Salvo-on-x86 work.

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


Re: RUNNING SALVO ON WINDOWS

PostPosted: Wed Sep 20, 2006 11:02 am
by lawberman
I am having to prototype software on a PC due to hardware delivery delays.

I would like to beable to have the PC code as similar as possible to the embedded version on the TI MSP430.

To this end, I would like to use Salvo calls in the PC software.

Is there any way to do this?

I assume that the context switching would be the main issue here as it manipulates the stack and as such assumes a specific architecture. All other references to the MSP430 would be initialisation routines which are easily changed.

Thanks


Re: RUNNING SALVO ON WINDOWS

PostPosted: Thu Sep 21, 2006 12:25 am
by lawberman
Thanks.

I would use a loop for timing, not interrupts.

I am using a Microsoft Visual C++ 8 compiler.


Re: RUNNING SALVO ON WINDOWS

PostPosted: Thu Sep 21, 2006 8:19 am
by aek
quote:
I would use a loop for timing, not interrupts.
No need. Just use OS_Delay().

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


Re: RUNNING SALVO ON WINDOWS

PostPosted: Thu Sep 21, 2006 9:38 am
by aek

Re: RUNNING SALVO ON WINDOWS

PostPosted: Thu Sep 21, 2006 9:45 am
by aek
Sent you the files as well ...

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