error en codigo con codewarior 10 (error in code whit codewarriorr 10)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error en codigo con codewarior 10 (error in code whit codewarriorr 10)

632 Views
soratakun
Contributor I

tengo un problema al utilizar un un codigo de codewarrior 6, este se da cuando tratado de usar el siguiente código

(I have a problem when using a codewarrior a code of 6, this is when trying to use the following code)

void interrupt VectorNumber_Vtpm1ovf MiTimer(){

   // contador

   i++ ;

   if((SW1==0)&&(i>=10)){

    LED3=0;

    i=0;

   }

// limpiar banderas

   TPM1SC_TOF=0;

}

al tratar de usarlo en codewarrior 10 me marca syntasis error, eh buscado por todos lados y no encuentro un salucion para poder usar esta interupcion

datos:

(

to try to use it on my brand codewarrior 10 syntasis error, eh looked everywhere and can not find a salucion to use this interrupt

data:)

 

 

codewarrior 10.2

smac codebase 2.1.3

hacs08

librerías:

library:

#include <hidef.h>                  /*EnableInterrupts macro*/

#include "McuInit.h"                /*CPU and System Clock related functions*/

#include "derivative.h"             /*System Clock related declarations*/

#include "EmbeddedTypes.h"          /*Include special data types*/           

#include "Utilities_Interface.h"    /*Include Blocking Delays and data conversion functions*/

#include "PLM_config.h"

#include "SMAC_Interface.h"         /*Include all OTA functionality*/

#include "Radio_Interface.h"        /*Include all Radio functionality*/

#include "app_config.h"

#include "OTAP_Interface.h"

realmente quisiera que me ayudaran que llevo 3 dias buscando y no encuentro la solución.

(really wanted to help me I've been looking for 3 days and can not find the solution.)

Labels (1)
0 Kudos
2 Replies

434 Views
tom_thompson
Contributor III

It sounds like that you are importing a CW v6.x project into CW v10.x. Is this correct? Sometimes the importer can retain old path names to header files. The paths to directories are different under CW 10.

What I would do is create a new CW 10 project with the New Project wizard, the drag your source files from the old project into the Source folder in the CodeWarrior Projects view. That might get you started.

---Tom

0 Kudos

434 Views
soratakun
Contributor I

ello look what happens is that when I want to generate a interrpcion by the HCS08 timer gives me no need to do it for cw and 10.2 added the code I'm using to see if I have an error apart from that I do stop from daja as extra data use the codebase of smac 2.1.3, mc13213

void main(void)

{

      //activa interrupciones

      EnableInterrupts;

      //desactiva el wachtdog

      SOPT_COPE = 0;

      LED3DIR=1;

      LED3=1;

      /*TPM1SC_TOIE=1;

      TPM1SC=0x0F;

      TPM1MODH=0x7A;

      TPM1MODL=0x12;*/

     

      TimerInit();

      MCUInit();

      EnableInterrupts; /* Enable interrupts */ 

 

      InitProject();

      InitSmac();

      (void)Uart_BlockingStringTx("\f\r\n\r\n\t Generic Demonstration Application", gDefaultUartPort_c);

      for(;;)

      {

            Otap_OpcMain();

  }

}

void TimerInit()

{

      TPM1SC_TOIE=1;

            TPM1SC=0x0F;

            TPM1MODH=0x7A;

            TPM1MODL=0x12;

}

interrupt VectorNumber_Vtpm1ovf mitimer()

{

      if (LED3==0)

LED3=1;

          else {

LED3=0;

}

TPM1SC_TOF=0;

     

}

0 Kudos