Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2943|Reply: 7

Small GPIO lib

[Copy link]

2

Threads

10

Posts

182

Credits

Registered member

Rank: 2

Credits
182
Post time 2015-11-7 04:47:56 | Show all posts |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
Post time 2015-11-20 21:12:07 | Show all posts
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
Post time 2015-11-21 09:49:52 | Show all posts
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| Post time 2015-11-22 05:39:44 | Show all posts
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
Post time 2015-11-23 09:45:04 | Show all posts
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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

0

Threads

13

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-11-23 09:48:45 | Show all posts
wish to read your new driver code

2

Threads

10

Posts

182

Credits

Registered member

Rank: 2

Credits
182
 Author| Post time 2015-11-23 20:50:13 | Show all posts
Sorry my bad address to PL is 0x01F02C00

0

Threads

13

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-12-6 13:01:27 | Show all posts
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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-9-22 20:49 GMT+8 , Processed in 0.033592 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list