- Beaglebone black device driver examples.
- Simple Character device driver example that read/write to kernel memory.
- Beaglebone black pinmux register control example.
- Setting some pins to gpio mode(pinmux mode 7).
- Read/Write gpio direction/value by direct register access(No kernel gpio interface)
- Userspace app to test functionality(userapp/pinmux)
- Beaglebone black interrupt request example.
- Request rising/falling edge interrupt.
- Read/Write gpio direction/value by kernel gpio interface(No direct register access)
- Userspace app to test functionality(userapp/interrupt)
- CONTROL_MODULE Registers - 1458p
- conf__ Register (offset = 800hโA34h) - 1515p
- GPIO Registers - 4990p
-
https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
-
https://www.kernel.org/doc/html/v4.14/driver-api/pinctl.html
config-pin -q P8.03 gpio
config-pin P8.03 in
config-pin -q P8.03
config-pin -q P8.04 gpio
config-pin P8.04 out
config-pin -q P8.04
echo 0 >/sys/class/gpio/gpio39/value
cat /sys/class/gpio/gpio38/value
echo 1 >/sys/class/gpio/gpio39/value
cat /sys/class/gpio/gpio38/value