Skip to content

Syracusa/bbb-dd-examples

Repository files navigation

BBB-DD-EXAMPLES

  • Beaglebone black device driver examples.

Character device driver example(./char_ex/)

  • Simple Character device driver example that read/write to kernel memory.

PINMUX/GPIO example(./pinmux_ex/)

  • 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)

INTERRUPT/GPIO example(./interrupt_ex/)

  • 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)

Technical Refernece(Memory-Mapped IO)

ARM Cortex-A8 Memory Map - 177p

ARM Cortex-A8 Interrupts - 543p

Contol Module - 1448p

  • CONTROL_MODULE Registers - 1458p
  • conf__ Register (offset = 800h–A34h) - 1515p

Timers - 4435p

GPIO - 4976p

  • GPIO Registers - 4990p

Resources

Beaglebone black P8 table

Beaglebone black P9 table

Cape Expansion Header

Device Tree Overlay

Extending SD Card Stroage

ETC

PINCTRL

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

GPIO Sysfs test

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

About

Beaglebone black device driver implement examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published