8devices Community https://www.8devices.com/community/ |
|
Working with SPI, GPIO and I2C https://www.8devices.com/community/viewtopic.php?f=1&t=13 |
Page 3 of 3 |
Author: | David [ 24 Feb 2012, 12:24 ] |
Post subject: | Re: Working with SPI, GPIO and I2C |
Just a little bump. I still have some unanswered questions regarding Carambola and peripherals: 1. Is there a way to find out which driver is using which pin? I'd like to use the SPI pins as GPIO. 2. When can we expect to see the source for mmio? I'd rather see messy code than no code at all 3. When will the WIki pages on registers, I2C, SPI, GPIO and I2S be updated? On a more general level: when can we expect more info on using Carambola to drive peripherals? I'm specifically looking for more basic building blocks: not programs that perform a certain function but things like C libraries or other ways to access Carambola's pins from C, Lua or other languages. This is really what Carambola needs in order to become an even greater success. Look at the Arduino: its popularity is mainly due to the available documentation and example code. |
Author: | zilvinas [ 29 Feb 2012, 13:42 ] |
Post subject: | Re: Working with SPI, GPIO and I2C |
Author: | David [ 01 Mar 2012, 09:38 ] |
Post subject: | Re: Working with SPI, GPIO and I2C |
Thanks for sharing. That doesn't look messy at all! |
Author: | xn2000 [ 14 Apr 2014, 22:11 ] |
Post subject: | Re: Working with SPI, GPIO and I2C |
Author: | xn2000 [ 15 Apr 2014, 12:51 ] |
Post subject: | Re: Working with SPI, GPIO and I2C |
Ps: i forgot to mention you have to set "io 0x10000060 0x1f" if you had set "io 0x10000060 0x01" for uart before. |
Author: | Sherbin [ 27 Feb 2017, 09:13 ] |
Post subject: | Re: Working with SPI, GPIO and I2C |
As I mentioned before, some I/O pins are shared with other functions. If function is set to GPIO, gpioctl can control them, else function should be switched. |
Page 3 of 3 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |