[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r8378 - in usrp2/trunk/firmware: apps lib
From: |
eb |
Subject: |
[Commit-gnuradio] r8378 - in usrp2/trunk/firmware: apps lib |
Date: |
Sun, 11 May 2008 00:23:14 -0600 (MDT) |
Author: eb
Date: 2008-05-11 00:23:14 -0600 (Sun, 11 May 2008)
New Revision: 8378
Modified:
usrp2/trunk/firmware/apps/
usrp2/trunk/firmware/lib/hal_io.c
Log:
debug output
Property changes on: usrp2/trunk/firmware/apps
___________________________________________________________________
Name: svn:ignore
- *-stamp
*.a
*.bin
*.dump
*.log
*.rom
*.map
.deps
Makefile
Makefile.in
aclocal.m4
autom4te.cache
blink_leds
blink_leds2
build
compile
config.h
config.h.in
config.log
config.status
configure
depcomp
eth_test
gen_eth_packets
ibs_rx_test
ibs_tx_test
install-sh
libtool
ltmain.sh
missing
py-compile
rcv_eth_packets
run_tests.sh
stamp-h1
test1
test_phy_comm
timer_test
buf_ram_test
buf_ram_zero
hello
test_printf
test_spi
test_i2c
gen_pause_frames
test_serdes
rx_only
tx_only
tx_standalone
tx_drop
tx_drop2
tx_drop_rate_limited
test_lsdac
test_lsadc
read_dbids
test_db_spi
ramp_lsdac
eth_to_serdes
serdes_to_dsp
sd_gentest
sd_bounce
+ *-stamp
*.a
*.bin
*.dump
*.log
*.rom
*.map
.deps
Makefile
Makefile.in
aclocal.m4
autom4te.cache
blink_leds
blink_leds2
build
compile
config.h
config.h.in
config.log
config.status
configure
depcomp
eth_test
gen_eth_packets
ibs_rx_test
ibs_tx_test
install-sh
libtool
ltmain.sh
missing
py-compile
rcv_eth_packets
run_tests.sh
stamp-h1
test1
test_phy_comm
timer_test
buf_ram_test
buf_ram_zero
hello
test_printf
test_spi
test_i2c
gen_pause_frames
test_serdes
rx_only
tx_only
tx_standalone
tx_drop
tx_drop2
tx_drop_rate_limited
test_lsdac
test_lsadc
read_dbids
test_db_spi
ramp_lsdac
eth_to_serdes
serdes_to_dsp
sd_gentest
sd_bounce
can_i_sub
Modified: usrp2/trunk/firmware/lib/hal_io.c
===================================================================
--- usrp2/trunk/firmware/lib/hal_io.c 2008-05-11 06:22:59 UTC (rev 8377)
+++ usrp2/trunk/firmware/lib/hal_io.c 2008-05-11 06:23:14 UTC (rev 8378)
@@ -1,6 +1,6 @@
/* -*- c -*- */
/*
- * Copyright 2007 Free Software Foundation, Inc.
+ * Copyright 2007,2008 Free Software Foundation, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -68,7 +68,7 @@
hal_gpio_set_sel(int bank, int bitno, char code)
{
bank &= 0x1;
- int t;
+ int t;
if (!code_to_int(code, &t))
return;
@@ -78,8 +78,13 @@
volatile uint32_t *sel = bank == GPIO_TX_BANK ? &gpio_base->tx_sel :
&gpio_base->rx_sel;
int ei = hal_disable_ints();
- *sel = (*sel & ~mask) | (val & mask);
+ int v = (*sel & ~mask) | (val & mask);
+ *sel = v;
hal_restore_ints(ei);
+
+ if (0)
+ printf("hal_gpio_set_sel(bank=%d, bitno=%d, code=%c) *sel = 0x%x\n",
+ bank, bitno, code, v);
}
void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r8378 - in usrp2/trunk/firmware: apps lib,
eb <=