Page 1 of 1

WiringPi lib for accessing GPIO.

Posted: Tue Dec 17, 2013 5:22 pm
by lilzz
The WiringPi lib for accessing GPIO

https://projects.drogon.net/raspberry-p ... functions/


I need access the periperhal pin on pi board therefore I am using this wiringPi lib. However, I check it's using Broadcom chipset.

Code: Select all

// BCM Magic

#define	BCM_PASSWORD		0x5A000000


// The BCM2835 has 54 GPIO pins.
//	BCM2835 data sheet, Page 90 onwards.
//	There are 6 control registers, each control the functions of a block
//	of 10 pins.
//	Each control register has 10 sets of 3 bits per GPIO pin - the ALT values

Now my Pi has a Samsung chipset, so does the wiringPi still gonna work? In the code there's a board com magic key, I suppose Samsung would have one different.

Now, Why my pi use a Samsung chipset, I prefer to get Broadcom.. Do I need to return the pi and ask one with Broadcom chipset?

Re: WiringPi lib for accessing GPIO.

Posted: Tue Dec 17, 2013 5:32 pm
by joan
All Pi's have a Broadcom SOC. Yours happens to have Samsung memory.

Re: WiringPi lib for accessing GPIO.

Posted: Tue Dec 17, 2013 6:15 pm
by lilzz
joan wrote:All Pi's have a Broadcom SOC. Yours happens to have Samsung memory.
Nope that's not true. Mine is clearly a Samsung ARM chipset.
Also, there's no memory chip onboard, everything runs off from the SD Card.

Re: WiringPi lib for accessing GPIO.

Posted: Tue Dec 17, 2013 6:19 pm
by joan

Re: WiringPi lib for accessing GPIO.

Posted: Tue Dec 17, 2013 6:29 pm
by lilzz
Oh my bad, the Samsung chip is stacked on top of the broadcom SOC.
Thanks