Giter Site home page Giter Site logo

bbb-dd-examples's Introduction

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

bbb-dd-examples's People

Contributors

syracusa avatar

Watchers

 avatar

bbb-dd-examples's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.