hi everyone again.
I was wondering if it was possible to read and write register values to control AVR32's functionalities from user space.
I already made kernel modules to do such things, but this time I would like to experiment with user space code.
I know the GPIO modules are there to perform a similar task, but is it possible to tell linux to let me modify some registers from user space? I mean, like PIO pins, etc.
As far as I remember there were some functions for the i386 architecture, like ioperm(), outb, inb, etc. I can't find those on the avr32 toolchain, which is very likely since there isn't a I/O and memory separation.
Many may consider doing this harmful, but since I'm not running a preemptive kernel (regarding kernel threads), if my modules use up too much CPU then they will block some other important modules from executing.
For instance, the LCD module uses the PIO interface, and has some udelay and mdelay functions inside. I don't need anything time-crucial there, so that could be done with a user space program, but I don't want to use any modules, nor GPIO nor mine's.
thanks everyone,
Carlos