lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

WiringPi lib for accessing GPIO.

Tue Dec 17, 2013 5:22 pm

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?

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: WiringPi lib for accessing GPIO.

Tue Dec 17, 2013 5:32 pm

All Pi's have a Broadcom SOC. Yours happens to have Samsung memory.

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: WiringPi lib for accessing GPIO.

Tue Dec 17, 2013 6:15 pm

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.


lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: WiringPi lib for accessing GPIO.

Tue Dec 17, 2013 6:29 pm

Oh my bad, the Samsung chip is stacked on top of the broadcom SOC.
Thanks

Return to “General discussion”