aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/set_debug_pins.py
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-04-09 21:41:37 +0000
committerPhilip Balister <philip@opensdr.com>2010-04-09 21:41:37 +0000
commit50780640a1b9ed6abb2abebbc727ce19711fbcb4 (patch)
tree06f3cbd552e9aafd69830fd98f2fcba77f0ce096 /host/apps/omap_debug/set_debug_pins.py
parentb0316af8ebc713afaddc5b6ded5c0304353a7ab6 (diff)
downloaduhd-50780640a1b9ed6abb2abebbc727ce19711fbcb4.tar.gz
uhd-50780640a1b9ed6abb2abebbc727ce19711fbcb4.tar.bz2
uhd-50780640a1b9ed6abb2abebbc727ce19711fbcb4.zip
Test program to verify GPIO on daughterboards. For success, connect gpios on
TX to corresponding ones on RX.
Diffstat (limited to 'host/apps/omap_debug/set_debug_pins.py')
-rwxr-xr-xhost/apps/omap_debug/set_debug_pins.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/host/apps/omap_debug/set_debug_pins.py b/host/apps/omap_debug/set_debug_pins.py
index fdd085c9e..0f9ecd7b9 100755
--- a/host/apps/omap_debug/set_debug_pins.py
+++ b/host/apps/omap_debug/set_debug_pins.py
@@ -3,12 +3,12 @@
import os
# Memory Map
-misc_base = 0 << 7
-uart_base = 1 << 7
-spi_base = 2 << 7
-i2c_base = 3 << 7
-gpio_base = 4 << 7
-settings_base = 5 << 7
+misc_base = 0
+uart_base = 1
+spi_base = 2
+i2c_base = 3
+gpio_base = 4 * 128
+settings_base = 5
# GPIO offset
gpio_pins = 0
@@ -32,3 +32,4 @@ 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)
+