_timer_create_component problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

_timer_create_component problem

ソリューションへジャンプ
1,419件の閲覧回数
ezequielwortman
Contributor I

When I try to compile the code of the Timer  example (on another project) for MQX on a KWIKSTIK, i get the message: "undefined: "timer create component"" any clues?? Also the same message with _timer_start_periodic_at_ticks

This is the main code

void Main_task(uint_32 initial_data)

{

  MQX_TICK_STRUCT ticks;

    MQX_TICK_STRUCT dticks;

    _timer_id       on_timer;

 

    uint_8          time = 6; // time in seconds

  

  

 

  _timer_create_component(TIMER_TASK_PRIORITY, TIMER_STACK_SIZE);

  _time_init_ticks(&dticks, 0);

  _time_add_sec_to_ticks(&dticks, 2);

       _time_get_elapsed_ticks(&ticks);

     

       _time_add_sec_to_ticks(&ticks, 1);

     

       on_timer = _timer_start_periodic_at_ticks(PWM_on, 0, TIMER_ELAPSED_TIME_MODE, &ticks, &dticks);

     

       _time_add_sec_to_ticks(&ticks, 1);

     

     

}

0 件の賞賛
返信
1 解決策
1,193件の閲覧回数
guillaumetiffin
Contributor III

Hello,

I think that it's too late for your problem but it should helps other people.

I'm using k60 with MQX.

When I encoutered this problem, it was because timers wasn't activated.

To do this, go to your user_config.h and add the line:

#define MQX_USE_TIMER 1

then clean and build your bsp and psp project.

Do a clean and build on your project and that should works.

Hope this help.

Regards,

Guillaume Tiffineau

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,194件の閲覧回数
guillaumetiffin
Contributor III

Hello,

I think that it's too late for your problem but it should helps other people.

I'm using k60 with MQX.

When I encoutered this problem, it was because timers wasn't activated.

To do this, go to your user_config.h and add the line:

#define MQX_USE_TIMER 1

then clean and build your bsp and psp project.

Do a clean and build on your project and that should works.

Hope this help.

Regards,

Guillaume Tiffineau

0 件の賞賛
返信
1,193件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi Guillaume,

Thank you for share with us your comments, I hope this helps to Ezequiel.

Regards

Sol

0 件の賞賛
返信