mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 15:38:29 -04:00
04b46678a4
Most scripts/tools use non-portable `/bin/bash`, switch to environment agnostic `/usr/bin/env bash`.
13 lines
409 B
Bash
Executable File
13 lines
409 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#make debug
|
|
#make test
|
|
if [ ! -L /sys/class/gpio/gpio80 ] || [ ! -e /sys/class/gpio/gpio80 ] ; then
|
|
/bin/echo 80 >/sys/class/gpio/export
|
|
/bin/sleep 1
|
|
/bin/echo out >/sys/class/gpio/gpio80/direction
|
|
fi
|
|
/bin/echo 1 >/sys/class/gpio/gpio80/value
|
|
#/bin/echo 0 >/sys/class/gpio/gpio80/value
|
|
/bin/echo pruecapin_pu >/sys/devices/platform/ocp/ocp:P8_15_pinmux/state
|
|
sudo ./RcAioPRUTest
|