aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-03-11 14:33:57 -0700
committerMartin Braun <martin.braun@ettus.com>2015-03-11 14:33:57 -0700
commit08467564116f4b948620e831bfd4b5426a43611c (patch)
treec62ed26ac3e72dcfef7320d21d866b1ff894eca3 /host/lib/usrp/e300
parent2ba2b35ed3c5fb845a18aa2f0abf68d38b70abc4 (diff)
downloaduhd-08467564116f4b948620e831bfd4b5426a43611c.tar.gz
uhd-08467564116f4b948620e831bfd4b5426a43611c.tar.bz2
uhd-08467564116f4b948620e831bfd4b5426a43611c.zip
gpio: Renamed enums to avoid clash with generic, compiler-provided names
Diffstat (limited to 'host/lib/usrp/e300')
-rw-r--r--host/lib/usrp/e300/e300_impl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp
index ac92f9a12..8be3e47c9 100644
--- a/host/lib/usrp/e300/e300_impl.cpp
+++ b/host/lib/usrp/e300/e300_impl.cpp
@@ -587,19 +587,19 @@ void e300_impl::_set_internal_gpio(
{
switch (attr)
{
- case CTRL:
+ case GPIO_CTRL:
return gpio->set_pin_ctrl(dboard_iface::UNIT_RX, value);
- case DDR:
+ case GPIO_DDR:
return gpio->set_gpio_ddr(dboard_iface::UNIT_RX, value);
- case OUT:
+ case GPIO_OUT:
return gpio->set_gpio_out(dboard_iface::UNIT_RX, value);
- case ATR_0X:
+ case GPIO_ATR_0X:
return gpio->set_atr_reg(dboard_iface::UNIT_RX, dboard_iface::ATR_REG_IDLE, value);
- case ATR_RX:
+ case GPIO_ATR_RX:
return gpio->set_atr_reg(dboard_iface::UNIT_RX, dboard_iface::ATR_REG_RX_ONLY, value);
- case ATR_TX:
+ case GPIO_ATR_TX:
return gpio->set_atr_reg(dboard_iface::UNIT_RX, dboard_iface::ATR_REG_TX_ONLY, value);
- case ATR_XX:
+ case GPIO_ATR_XX:
return gpio->set_atr_reg(dboard_iface::UNIT_RX, dboard_iface::ATR_REG_FULL_DUPLEX, value);
default:
UHD_THROW_INVALID_CODE_PATH();