Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

how to control GPIO in Android application?

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/7/2015 18:02:01      1#
Last edited by busybee In 9/7/2015 18:10 Editor

Please reference:
- http://falsinsoft.blogspot.jp/20 ... nux-user-space.html
- http://android.serverbox.ch/?p=972

Make sure your program has access permission to the files.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/11/2015 10:33:57      2#
zamster Posted at 9/9/2015 10:09
thanks for your reply.

would you give me more explanation?

First refer to the uart driver wiki:
http://wiki.t-firefly.com/index.php/Firefly-RK3288/UART/en

If you are using uart3, you can access /dev/ttyS3.
Then google for "Linux serial programming", which will give you a bunch of
documents and examples. One is:

http://www.comptechdoc.org/os/li ... inux_pgcserial.html
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/11/2015 17:42:24      3#
Same uart driver is already configured builtin for all the uart devices.  
No need to make new one.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/12/2015 10:53:25      4#
Add:
  CONFIG_SERIAL_ROCKCHIP=y
in your kernel/.config file
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list