Skip to content

Instantly share code, notes, and snippets.

@danasf
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save danasf/105086bf449ba76c742a to your computer and use it in GitHub Desktop.

Select an option

Save danasf/105086bf449ba76c742a to your computer and use it in GitHub Desktop.
Useful Beaglebone Memory Locations
#define GPIO0 0x44e07000 // GPIO0 Controller
#define GPIO1 0x4804c000 // GPIO1 Controller
#define GPIO2 0x481ac000 // GPIO2 Controller
#define GPIO3 0x481ae000 // GPIO3 Controller
#define GPIO_SET_OUT 0x194 // Set 1s to OUT
#define GPIO_SET_CLEAR 0x190 // Set 1s to CLEAR
#define GPIO_DATAOUT 0x13c // SET ALL bits to state specified
#define GPIO_DATAIN 0x138 // Read state of all pins?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment