rt_timer_ticks2ns
In periodic mode, rt_timer_ticks2ns should convert ticks to periodic jiffies. However, it always seems to return 0.
Quoted 2 lines · Steven Seeger
In periodic mode,
rt_timer_ticks2nsshould convert ticks to periodic jiffies. However, it always seems to return 0.
Did you call rt_timer_start before rt_timer_tick2ns ?
Signature · 1 line
Gilles Chanteperdrix.
Do you have to ask? :)
rt_timer_start(125000);
Quoted 5 lines · Gilles Chanteperdrix
Quoted 2 lines · Steven Seeger
In periodic mode,
rt_timer_ticks2nsshould convert ticks to periodic jiffies. However, it always seems to return 0.Did you call
rt_timer_startbeforert_timer_tick2ns?
Quoted 3 lines · Steven Seeger
Do you have to ask? :)
rt_timer_start(125000);
Still hoping the code is fine and continuing with stupid questions : did you check rt_timer_start return value ?
Signature · 1 line
Gilles Chanteperdrix.