diff options
author | Leo P | 2020-07-03 02:45:54 -0400 |
---|---|---|
committer | Leo P | 2020-07-03 02:45:54 -0400 |
commit | 818bc9594e3286566abc0f6bd9cd08fbf31df8ac (patch) | |
tree | c7598682e52f7948997ea11653ca67446e7c49cd /atomicpi-hold-xmos | |
parent | 837551f6d4240edd236a88bd83d075952ceeef13 (diff) | |
download | aur-atomicpi-utils.tar.gz |
moved sources to external repo, added licence and upstream URL
Diffstat (limited to 'atomicpi-hold-xmos')
-rwxr-xr-x | atomicpi-hold-xmos | 20 |
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 |