Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cp210x_gpio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
cp210x_gpio
Commits
a780d129
Commit
a780d129
authored
Nov 22, 2013
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.code.sf.net/p/elphel/cp210x_gpio
parents
dbf5cfa6
9674c954
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+2
-2
build_driver.sh
build_driver.sh
+1
-1
No files found.
README.md
View file @
a780d129
...
@@ -22,11 +22,11 @@ A patch to the CP210x USB to UART Bridges driver that adds GPIO pins control by
...
@@ -22,11 +22,11 @@ A patch to the CP210x USB to UART Bridges driver that adds GPIO pins control by
1.
Examples:
1.
Examples:
*
Set all 1's:
*
Set all 1's:
./cp210x_gpio.py -d /dev/ttyUSB0 -m 0xff 0xff
sudo
./cp210x_gpio.py -d /dev/ttyUSB0 -m 0xff 0xff
* Set GPIO[3]=1, others - 0:
* Set GPIO[3]=1, others - 0:
./cp210x_gpio.py -d /dev/ttyUSB1 -m 0xff 0x08
sudo
./cp210x_gpio.py -d /dev/ttyUSB1 -m 0xff 0x08
## Changes in the driver
## Changes in the driver
*
Changes in the driver cp210x.c are based on the patch found
[
here
](
https://lkml.org/lkml/2012/5/1/2
)
*
Changes in the driver cp210x.c are based on the patch found
[
here
](
https://lkml.org/lkml/2012/5/1/2
)
...
...
build_driver.sh
View file @
a780d129
...
@@ -36,5 +36,5 @@ Now to reload the driver type:
...
@@ -36,5 +36,5 @@ Now to reload the driver type:
sudo rmmod cp210x
sudo rmmod cp210x
sudo insmod cp210x.ko
sudo insmod cp210x.ko
Then try the script:
Then try the script:
./cp210x_gpio.py [-d /dev/ttyUSB0] [-m 0xf] 0xf
sudo
./cp210x_gpio.py [-d /dev/ttyUSB0] [-m 0xf] 0xf
"
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment