On Mon, Jan 24, 2011 at 8:41 PM, Gilles Chanteperdrix <
[email protected]> wrote:

> at91_enthus wrote:
> > Hi.
> >
> > I  was testing Xenomai on my AT91SAM9G20-based board and tried to adapt
> the
> > code found here:
> > http://www.armadeus.com/wiki/index.php?title=Xenomai:Blinking_LEDs .
>
> By the way, this code is ridiculous. It creates a real-time task to
> write to some non real-time device, which makes the real-time task useless.
>
>
I know. That's why I went to mmap(). (I chose that sample code because, for
now, I am only learning to use basic functions)

>Wrong test here. Should be "if (aic_base == MAP_FAILED)"

Indeed, my program fails miserably when I check the mapping of AIC, not
PIOB's. And yet, I just can't figure why in the non-Xenomai code, AIC
mmap-ing works  fine.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to