Pumpkin, Inc.

Pumpkin User Forums

Problem in configuring salvocfg.h

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

Problem in configuring salvocfg.h

Postby dirk41 » Thu Feb 21, 2008 5:58 am

Hi guys/aek,
I'm a new Salvo Pro user, and I have a problem in compiling my application. I've read the userguide and followed the instructions on how to integrate salvo with my code. I'm quite confused with regards to the configuration file salvocfg.h. Tutorial 4 under "including salvo.h" in the userguide states that "Including salvo.h will automatically include your project specific version of salvocfg.h"
I'd like to ask if where can i locate this file?

I also understand that I have to make my own salvocfg.h for each new application. i've included my salvocfg in my project tree and also saved it in salvo's inc folder (C:PumpkinSalvoInc). Could you confirm if this is correct?

Below is an example application using salvo and also included is a salvocfg.h file that reflects to the example application. When i compile this, the error points to salvostr.h stating "expected a declaration" This was shown in my previous post here in the forum. I think some of the "ifs" were false or does not complywith the configured salvocfg.h.

I'm using IAR Embedded Workbench v4 and MSP430F2252 microcontroller.

Can you shed some light into this?

thanks so much

*****/ example application/******
#include "msp430x22x2.h"
#include <salvo.h>

void TaskA ()
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
P1DIR |= 0x01; // P1.0 output
TACCTL0 = CCIE; // TACCR0 interrupt enabled
TACCR0 = 50000;
TACTL = TASSEL_2 + MC_2; // SMCLK, contmode

__bis_SR_register(LPM0_bits + GIE); // Enter LPM0 w/ interrupt

OS_Yield();

}
// Timer A0 interrupt service routine
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
{
P1OUT ^= 0x01; // Toggle P1.0
TACCR0 += 50000; // Add Offset to TACCR0
}

void TaskB()
{
WDTCTL = WDTPW + WDTHOLD;
P1OUT |= 0x01;

OS_Yield();
}

int main( void )
{
WDTCTL = WDTPW + WDTHOLD;
BCSCTL1 = CALBC1_8MHZ;
DCOCTL = CALDCO_8MHZ;
OSInit();
OSCreateTask(TaskB, OSTCBP(1), 1);
OSCreateTask(TaskA, OSTCBP(2), 2);


while (1)
{
OSSched();
}

}


************************************************************/salvocfg.h/**************

#include <msp430.h>

#define OSEVENTS 1
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 2

#define OSENABLE_BINARY_SEMAPHORES FALSE

dirk41
 
Posts: 5
Joined: Fri Feb 15, 2008 12:00 am

Re: Problem in configuring salvocfg.h

Postby aek » Thu Feb 21, 2008 9:53 am

See the response in the Configuration forum.

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

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


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 1 guest

cron