Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: Set DMTimer priority , using Task

$
0
0

Hello,

with this line"timerParams.hwiParams = &hwiParams;"   I got an error:

#515 a value of type "ti_sysbios_family_arm_a8_intcps_Hwi_Params *" cannot be assigned to an
entity of type "ti_sysbios_hal_Hwi_Params *"    

hal/Hwi.h is included in /dmtimer/Timer.h (  ti_sysbios_hal_Hwi_Params* hwiParams; ) and not the specified arm/a8/intcps/Hwi.h

my code:
    Timer_Handle timer3;
    timerParams.instance->name = "timer3";
    timerParams.period = 1200;        

    // HWI *********************************************
    UInt  intNum;
    Hwi_Params hwiParams;
    intNum = 69;
    Hwi_Params_init(&hwiParams);
    hwiParams.arg = 1;
    hwiParams.priority = 0;
    hwiParams.enableInt = true;

    timerParams.hwiParams = &hwiParams;

    TimerFuncPointer = timer3isr;
    timer3 = Timer_create(1,TimerFuncPointer,&timerParams,&eb);

If i include this line:
#include <ti/sysbios/hal/hwi.h>
I got a lot of warnings "redefinition 0f macros xyz" because they are declared in /sysbios/family/arm/a8/intcps/Hwi.h


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>