Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Device::BCM2835, hardware access on a pi, SIGSEGV

by Anonymous Monk
on Aug 25, 2014 at 12:02 UTC ( [id://1098520]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      # Low level register access
      Device::BCM2835::peri_read(&Device::BCM2835::BCM2835_GPIO_BASE + &De
    +vice::BCM2835::BCM2835_GPFSEL1);
      Device::BCM2835::peri_write(&Device::BCM2835::BCM2835_GPIO_BASE + &D
    +evice::BCM2835::BCM2835_GPFSEL2, 0xdeadbeef)
      Device::BCM2835::peri_set_bits(&Device::BCM2835::BCM2835_GPIO_BASE +
    + &Device::BCM2835::BCM2835_GPFSEL3, 0xdeadbeef, 0x1f);
    
  2. or download this
    Device::BCM2835::gpio_fsel($_, &Device::BCM2835::BCM2835_GPIO_FSEL_OUT
    +P) for @pins;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-18 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found