Updating the run.sh script to include the output enable GPIO
authorJason Reeder <jreeder@ti.com>
Thu, 2 Aug 2018 19:17:18 +0000 (14:17 -0500)
committerJason Reeder <jreeder@ti.com>
Thu, 2 Aug 2018 19:17:18 +0000 (14:17 -0500)
Signed-off-by: Jason Reeder <jreeder@ti.com>
run.sh

diff --git a/run.sh b/run.sh
index 502898d7ca2745437d4a22f89bc1883b4e8e0e04..10b8eef84cf66c9e35edfd38ac2943d1f05742b8 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -1,5 +1,11 @@
 #!/bin/bash
 
+echo 46 > /sys/class/gpio/export
+echo out > /sys/class/gpio/gpio46/direction
+echo 1 > /sys/class/gpio/gpio46/value
+
+sleep 1
+
 echo stop > /sys/class/remoteproc/remoteproc1/state
 echo stop > /sys/class/remoteproc/remoteproc2/state
 
@@ -11,3 +17,7 @@ echo start > /sys/class/remoteproc/remoteproc2/state
 sleep 1
 
 ./ARM_User_Space_App.out
+
+echo 0 > /sys/class/gpio/gpio46/value
+echo in > /sys/class/gpio/gpio46/direction
+echo 46 > /sys/class/gpio/unexport