This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

user timer

Hello,

the user timers that you can make with RTX are limited to U16, can this be extended to U32 by for example change te kernel code? This by changing function os_tmr_create () and os_tmr_tick () in the rt_Timer.c file in my map C:\Keil\ARM\RL\RTX\SRC

Tried to change them, but did'nt work. Do I need to change some other things (header files were also changed) beside these functions/files, or is this not possible?

thx

Parents
  • Yes you will need to change the list structures used by the Kernel for the timers. It looks as though you should be able to change both the tcnt to 32-bits as well as the info parameter.

    1) Change the rt_timer.c and rt_timer.h
    2) Change the TMR structures in RTX_Config.h (these are quite important as they are used in a few places)
    3) Make sure the RTX_Config.c is referencing the modified RTX_Config.h above.

    I have probably missed something, but this should be close if not right on.

Reply
  • Yes you will need to change the list structures used by the Kernel for the timers. It looks as though you should be able to change both the tcnt to 32-bits as well as the info parameter.

    1) Change the rt_timer.c and rt_timer.h
    2) Change the TMR structures in RTX_Config.h (these are quite important as they are used in a few places)
    3) Make sure the RTX_Config.c is referencing the modified RTX_Config.h above.

    I have probably missed something, but this should be close if not right on.

Children
No data