summarylogtreecommitdiffstats
path: root/atomicpi-hold-xmos
diff options
context:
space:
mode:
authorLeo P2020-07-03 02:45:54 -0400
committerLeo P2020-07-03 02:45:54 -0400
commit818bc9594e3286566abc0f6bd9cd08fbf31df8ac (patch)
treec7598682e52f7948997ea11653ca67446e7c49cd /atomicpi-hold-xmos
parent837551f6d4240edd236a88bd83d075952ceeef13 (diff)
downloadaur-atomicpi-utils.tar.gz
moved sources to external repo, added licence and upstream URL
Diffstat (limited to 'atomicpi-hold-xmos')
-rwxr-xr-xatomicpi-hold-xmos20
1 files changed, 0 insertions, 20 deletions
diff --git a/atomicpi-hold-xmos b/atomicpi-hold-xmos
deleted file mode 100755
index fb6618fa6211..000000000000
--- a/atomicpi-hold-xmos
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-. /usr/lib/atomicpi.sh
-
-if [ "$1" = "--cleanup" ] || ! lsusb -d 20b1: ; then
- # If XMOS hasn't initialized, first pull the reset line low to
- # give it a nice voltage ramp.
- atomicpi_gpio_hardware && gpioset --mode=time --us=200000 $ATOMICPICHIP_XMOS_RESET=0
-fi
-
-if [ -z "$1" ]; then
- # Hold reset high
- if atomicpi_gpio_hardware; then
- exec gpioset --mode=signal $ATOMICPICHIP_XMOS_RESET=1
- else
- while true; do
- sleep 2147483647;
- done
- fi
-fi