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
9674c954
Commit
9674c954
authored
Nov 22, 2013
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor edits
parent
82409d0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+4
-4
build_driver.sh
build_driver.sh
+1
-1
No files found.
README.md
View file @
9674c954
...
...
@@ -15,18 +15,18 @@ A patch to the CP210x USB to UART Bridges driver that adds GPIO pins control by
2.
Reload driver (from the built directory):
sudo rmmod 210x
sudo insmod 210x.ko
sudo rmmod
cp
210x
sudo insmod
cp
210x.ko
## Program GPIO_MAS
1.
Examples:
*
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:
./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 cp210x.c are based on the patch found
[
here
](
https://lkml.org/lkml/2012/5/1/2
)
...
...
build_driver.sh
View file @
9674c954
...
...
@@ -36,5 +36,5 @@ Now to reload the driver type:
sudo rmmod cp210x
sudo insmod cp210x.ko
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