1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00
oh/elink/sw/tests/toggle_led.sh
aolofsson 289024fd89 Flattening directory tree (again)
- Creating an arbitrary 'src' directory really doesn't help much...
- Goal is to make each folder self contained
- Make meta repos and individual repos have the same directory structure
2022-06-21 14:48:48 -04:00

31 lines
802 B
Bash
Executable File

#!/bin/bash
state=$1
SCRIPT=$(readlink -f "$0")
EXEPATH=$(dirname "$SCRIPT")
echo $EXEPATH
echo $state
echo "--Set EAST routing ctrlmode in FPGA--"
$EXEPATH/../bin/e-access 00000000_00000150_810f0210_05
echo "--Set EAST Epiphany link to half speed--"
$EXEPATH/../bin/e-access 00000000_00000001_88bf0300_05
echo "--Clear ctrlmode in FPGA--"
$EXEPATH/../bin/e-access 00000000_00000000_810f0210_05
echo "--Set NORTH routing ctrlmode in FPGA--"
$EXEPATH/../bin/e-access 00000000_00000110_810f0210_05
echo "--Write to North IO config register--"
$EXEPATH/../bin/e-access 00000000_03FFFFFF_80AF030C_05
echo "--Write to North IO data register--"
$EXEPATH/../bin/e-access 00000000_0000000${state}_80AF0318_05
echo "--Set back config register--"
$EXEPATH/../bin/e-access 00000000_00000000_810f0210_05