Hi, guys!
I've been trying for three weeks now to write a simple device driver on a BeagleBone Black. I wanted to toggle pin GPIO0_7 on header P9. I've read tons of books on Linux device drivers and I still cannot figure out what approach should I use.
I'm trying to use DIRECT REGISTER ACCESS just like we're doing this on an MSP430 for example:
P1DIR = BIT1 | BIT2;
P1OUT |= BIT1 | BIT2;
Any idea how to do this in Beaglebone Debian or Ubuntu?
So far: I've been trying to use request_mem_region( ) or request_region( ) and the header files from BBB StarterWare. No luck - the pin does not toggle. Furthermore - each module I want to use first I remove it from the /boot/uboot/dtbs/am335x-boneblack.dtb and sometimes drivers that use the dtb crash. I can register a device node in /dev directory but dunno where to go on from there ...
Thanks in advance!