please choosego to mobile | Continue to access the PC version
View: 7150|Reply: 7

Small GPIO lib

[Copy link]

2

threads

10

posts

182

credits

Registered member

Rank: 2

credits
182
Published in 2015-11-7 04:47:56 | Show all floors |Read mode
Hi, i created small GPIO library for Orange Pi 2. Max output toggle speed is 3 MHz.

https://github.com/majsi/OpiGpioH3

0

threads

13

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-11-20 21:12:07 | Show all floors
success to driver gpio on orange pi pc
thank you!
I change PA20 to PA15 which connect to STATUS_LED and the STATUS_LED is blinking

I want to driver I2C, SPI and other UART. can you help me ?

0

threads

13

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-11-21 09:49:52 | Show all floors
I read your code , and find that PA7 is 7, PA20 is 20, PC4 is 68, PD14 is 110, so I guess that PL10 is 362.
I change PA20 to 362, but the code seems to be failed.

2

threads

10

posts

182

credits

Registered member

Rank: 2

credits
182
 Author| Published in 2015-11-22 05:39:44 | Show all floors
Hi, port L have a different address. Registers for port L begin at 0x01C20800. I also create a native driver to the SPI, I2C and UART, but later.

0

threads

13

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-11-23 09:45:04 | Show all floors
majsi replied at 2015-11-22 05:39
Hi, port L have a different address. Registers for port L begin at 0x01C20800. I also create a nativ ...

Thanks for your help
I read the datasheet and got the details about PL


This thread contains more resources

You need to Log in to download or view,No account?    Register

x

0

threads

13

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-11-23 09:48:45 | Show all floors
wish to read your new driver code

2

threads

10

posts

182

credits

Registered member

Rank: 2

credits
182
 Author| Published in 2015-11-23 20:50:13 | Show all floors
Sorry my bad address to PL is 0x01F02C00

0

threads

13

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-12-6 13:01:27 | Show all floors
Edited by renpeng009 at 2015-12-6 13:03



hello , I try to drive PWM as your method , but failed.

Could u help me ? The code is uploaded above.
Tks

This thread contains more resources

You need to Log in to download or view,No account?    Register

x
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list