Commit 9674c954 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

minor edits

parent 82409d0a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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 cp210x
        sudo insmod cp210x.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)
+1 −1
Original line number Diff line number Diff line
@@ -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