Xenomai on gumstix
It works!
But I notice that the frequency is bad configured.
I am using the trivial-periodic example.
http://www.xenomai.org/documentation/xenomai-2.4/html/api/trivial-periodic_8c-example.html
I had to changert_task_set_periodic(NULL, TM_NOW, 1000000000);
tort_task_set_periodic(NULL, TM_NOW, 1000);
to get 1 second.
How can I fix this?
I have a gumstix verdex pro:
Marvell PXA270 with XScale
Speed: 400MHz
PD: The more I go into xenomai the more I like it! Thanks for the wonderful invention!
Signature · 3 lines
Linus Casassa Estudiante Ingeniería Civil Electrónica Fono: 56-9-97776941
Quoted 7 lines · Linus Casassa
It works!
But I notice that the frequency is bad configured.
I am using the trivial-periodic example.
http://www.xenomai.org/documentation/xenomai-2.4/html/api/trivial-periodic_8c-example.html
Quoted 7 lines
I had to change
rt_task_set_periodic(NULL, TM_NOW, 1000000000);
tort_task_set_periodic(NULL, TM_NOW, 1000);
to get 1 second.How can I fix this?
You probably selected a periodic timer for the native skin. The example is made for the aperiodic timer.
Signature · 1 line
Gilles.
I don't understand. The example is for a periodic task. What did I miss? :S
Quoted 23 lines · Gilles Chanteperdrix
Quoted 6 lines · Linus Casassa
It works!
But I notice that the frequency is bad configured.
I am using the trivial-periodic example.
http://www.xenomai.org/documentation/xenomai-2.4/html/api/trivial-periodic_8c-example.html
Quoted 8 lines
I had to change
rt_task_set_periodic(NULL, TM_NOW, 1000000000);
tort_task_set_periodic(NULL, TM_NOW, 1000);
to get 1 second.How can I fix this?
You probably selected a periodic timer for the native skin. The example is made for the aperiodic timer.
--
Gilles.
Signature · 3 lines
Linus Casassa Estudiante Ingeniería Civil Electrónica Fono: 56-9-97776941
Quoted 1 line · Linus Casassa
I don't understand. The example is for a periodic task. What did I miss? :S
The configuration of the skin timer. The skin timer may be periodic or aperiodic. Whereas everyone chooses to run an aperiodic timer since it gives a much better precision, you seem to have chosen to run a periodic timer.
Signature · 1 line
Gilles.