Skip to contentSkip to conversation

rt_timer_ticks2ns

Xenomai-core Steven Seeger 2 participants 4 messages Oct 11, 2005

lore
Share & tools
lore
#0 lore raw

In periodic mode, rt_timer_ticks2ns should convert ticks to periodic jiffies. However, it always seems to return 0.

#1 lore raw
Quoted 2 lines · Steven Seeger

In periodic mode, rt_timer_ticks2ns should 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.
#2 lore raw

Do you have to ask? :)

rt_timer_start(125000);

Quoted 5 lines · Gilles Chanteperdrix
Quoted 2 lines · Steven Seeger

In periodic mode, rt_timer_ticks2ns should convert ticks to periodic jiffies. However, it always seems to return 0.

Did you call rt_timer_start before rt_timer_tick2ns ?

#3 lore raw
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.