mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-20 01:55:27 +01:00
added prgoramfpga functionality, currently gpio definitions required in /etc/rc file, will rectify in later commits
This commit is contained in:
11
slsDetectorSoftware/jungfrauDetectorServer/README.txt
Normal file
11
slsDetectorSoftware/jungfrauDetectorServer/README.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
add the following to /etc/rc before using programfpga command before cat motd
|
||||
|
||||
|
||||
#registering 7th and 9th pin to linux kernel
|
||||
echo 7 > /sys/class/gpio/export
|
||||
echo 9 > /sys/class/gpio/export
|
||||
#define direction for the linux kernel
|
||||
echo in > /sys/class/gpio/gpio7/direction
|
||||
echo out > /sys/class/gpio/gpio9/direction
|
||||
#needed, else all write errors when server starts up, because linux tries to take control fof gpio
|
||||
echo 1 > /sys/class/gpio/gpio9/value
|
||||
Reference in New Issue
Block a user