Hi, I have developed a very simple task in native code and it works fine (included in native.tar.gz). This simple task generates a square waveform through the parallel port ( and also the speaker).
Currently I'm trying to transform this code into the POSIX skin (Makefile
and .c included in posix,tar.gz).
Unfortunatelly It does not work, although the parallel port shows a square
waveform its period is not the desired
one (0.1ms), its period is very small. This makes the system to freeze.
It seems that pthread_wait_np is not working properly, or may be I'm not
using pthread_make_periodic_np
properly. I used it in the following way :
#define PERIOD 100000
clock_gettime ( CLOCK_REALTIME, &now);
pthread_make_periodic_np (pthread_self(), &now, (struct timespec
*)PERIOD);
I also have tried
struct timespec period;
period.tv_sec=0;
period.tv_nsec=PERIOD;
clock_gettime ( CLOCK_REALTIME, &now);
pthread_make_periodic_np (pthread_self(), &now,&period);
Although both compile and execute, non of them works fine to me. Any clue ?
Best wishes,
Ramon
native.tar.gz
Description: GNU Zip compressed data
posix.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
