ardupilot/Tools/Linux_HAL_Essentials/pru/aiopru/start_test
dorovl 70f445e7f1 Bone : Faulty PWM output after few flight controller restarts due to wrong IEP Timer configuration
modified:   Makefile
	modified:   RcAioPRU.p
	modified:   RcAioPRUTest.c
	modified:   RcAioPRU_BBBLUE_bin.h
	modified:   RcAioPRU_BBBMINI_bin.h
	modified:   RcAioPRU_POCKET_bin.h
	new file:   start_test
2020-05-11 18:57:55 +10:00

13 lines
401 B
Bash
Executable File

#!/bin/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