Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nsh> gpio -o 1 /dev/gpout1
Driver: /dev/gpout1
Output pin: Value=0
Writing: Value=1
bl602_configgpio:
pin=16
addr=0x40000120
clearbits=0xffff
setbits=0x711
bl602_configgpio:
pin=7
addr=0x4000010c
clearbits=0xffff0000
setbits=0x7110000
bl602_configgpio:
pin=16
addr=0x40000120
clearbits=0xffff
setbits=0x711
bl602_configgpio:
pin=7
addr=0x4000010c
clearbits=0xffff0000
setbits=0x7110000
bl602_configgpio:
pin=0
addr=0x40000100
clearbits=0xffff
setbits=0xb11
bl602_configgpio:
pin=11
addr=0x40000114
clearbits=0xffff0000
setbits=0xb000000
bl602_configgpio enable output:
pin=11
addr=0x40000190
clearbits=0x0
setbits=0x800
bl602_configgpio:
pin=2
addr=0x40000104
clearbits=0xffff
setbits=0xb11
bl602_gpiowrite high:
pin=11
addr=0x40000188
clearbits=0x0
setbits=0x800
Verify: Value=1
nsh>
nsh>
nsh> gpio -o 0 /dev/gpout1
Driver: /dev/gpout1
Output pin: Value=1
Writing: Value=0
bl602_gpiowrite low:
pin=11
addr=0x40000188
clearbits=0x800
setbits=0x0
Verify: Value=0
nsh>
nsh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment