diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-11-04 20:26:34 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-11-13 01:16:18 +0100 |
commit | bda6bcb2301281304981380cb804babcc681641a (patch) | |
tree | a038a906104ced37e5bc4eec6a83e7ce8e77c0ac /host/apps/omap_debug/set_debug_pins.py | |
parent | 95aa5da3baf236cf5f2ead03d55710e8699a87b2 (diff) | |
download | uhd-bda6bcb2301281304981380cb804babcc681641a.tar.gz uhd-bda6bcb2301281304981380cb804babcc681641a.tar.bz2 uhd-bda6bcb2301281304981380cb804babcc681641a.zip |
Cleaned out apps dir (deprecated tools)
Diffstat (limited to 'host/apps/omap_debug/set_debug_pins.py')
-rwxr-xr-x | host/apps/omap_debug/set_debug_pins.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/host/apps/omap_debug/set_debug_pins.py b/host/apps/omap_debug/set_debug_pins.py deleted file mode 100755 index 0f9ecd7b9..000000000 --- a/host/apps/omap_debug/set_debug_pins.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/python - -import os - -# Memory Map -misc_base = 0 -uart_base = 1 -spi_base = 2 -i2c_base = 3 -gpio_base = 4 * 128 -settings_base = 5 - -# GPIO offset -gpio_pins = 0 -gpio_ddr = 4 -gpio_ctrl_lo = 8 -gpio_ctrl_hi = 12 - -def set_reg(reg, val): - os.system("./usrp1-e-ctl w %d 1 %d" % (reg,val)) - -def get_reg(reg): - fin,fout = os.popen4("./usrp1-e-ctl r %d 1" % (reg,)) - print fout.read() - -# Set DDRs to output -set_reg(gpio_base+gpio_ddr, 0xFFFF) -set_reg(gpio_base+gpio_ddr+2, 0xFFFF) - -# Set CTRL to Debug #0 ( A is for debug 0, F is for debug 1 ) -set_reg(gpio_base+gpio_ctrl_lo, 0xAAAA) -set_reg(gpio_base+gpio_ctrl_lo+2, 0xAAAA) -set_reg(gpio_base+gpio_ctrl_hi, 0xAAAA) -set_reg(gpio_base+gpio_ctrl_hi+2, 0xAAAA) - |