Pumpkin, Inc.

Pumpkin User Forums

RUNNING SALVO ON WINDOWS

If you can't make Salvo do what you want it to do, post it here.

RUNNING SALVO ON WINDOWS

Postby aek » Wed Sep 20, 2006 9:16 am

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.

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

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

Re: RUNNING SALVO ON WINDOWS

Postby lawberman » Wed Sep 20, 2006 11:02 am

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

lawberman
 
Posts: 5
Joined: Sat Sep 02, 2006 11:00 pm
Location: Jerusalem, Israel

Re: RUNNING SALVO ON WINDOWS

Postby lawberman » Thu Sep 21, 2006 12:25 am

Thanks.

I would use a loop for timing, not interrupts.

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

lawberman
 
Posts: 5
Joined: Sat Sep 02, 2006 11:00 pm
Location: Jerusalem, Israel

Re: RUNNING SALVO ON WINDOWS

Postby aek » Thu Sep 21, 2006 8:19 am

quote:
I would use a loop for timing, not interrupts.
No need. Just use OS_Delay().

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

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

Re: RUNNING SALVO ON WINDOWS

Postby aek » Thu Sep 21, 2006 9:38 am

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

Re: RUNNING SALVO ON WINDOWS

Postby aek » Thu Sep 21, 2006 9:45 am

Sent you the files as well ...

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

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


Return to Coding

Who is online

Users browsing this forum: No registered users and 1 guest