diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-03-11 17:11:20 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-03-11 17:11:20 -0700 |
commit | cc0af39a2234c433ff12d02a7d0f58db3e48b10c (patch) | |
tree | 177fea702fdb55753a6e809db1c96f87b0eb282f /host/lib/usrp/cores | |
parent | 2e594ae877f99411d54f1a8e3d9be274d8b9eb35 (diff) | |
parent | 08467564116f4b948620e831bfd4b5426a43611c (diff) | |
download | uhd-cc0af39a2234c433ff12d02a7d0f58db3e48b10c.tar.gz uhd-cc0af39a2234c433ff12d02a7d0f58db3e48b10c.tar.bz2 uhd-cc0af39a2234c433ff12d02a7d0f58db3e48b10c.zip |
Merge branch 'uhd/gpio_rename'
Diffstat (limited to 'host/lib/usrp/cores')
-rw-r--r-- | host/lib/usrp/cores/gpio_core_200.hpp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/host/lib/usrp/cores/gpio_core_200.hpp b/host/lib/usrp/cores/gpio_core_200.hpp index a76cced01..e22834fd9 100644 --- a/host/lib/usrp/cores/gpio_core_200.hpp +++ b/host/lib/usrp/cores/gpio_core_200.hpp @@ -27,10 +27,27 @@ #include <uhd/types/wb_iface.hpp> #include <map> -typedef enum{CTRL,DDR,OUT,ATR_0X,ATR_RX,ATR_TX,ATR_XX} gpio_attr_t; +typedef enum { + GPIO_CTRL, + GPIO_DDR, + GPIO_OUT, + GPIO_ATR_0X, + GPIO_ATR_RX, + GPIO_ATR_TX, + GPIO_ATR_XX +} gpio_attr_t; + typedef std::map<gpio_attr_t,std::string> gpio_attr_map_t; static const gpio_attr_map_t gpio_attr_map = - boost::assign::map_list_of(CTRL,"CTRL")(DDR,"DDR")(OUT,"OUT")(ATR_0X,"ATR_0X")(ATR_RX,"ATR_RX")(ATR_TX,"ATR_TX")(ATR_XX,"ATR_XX"); + boost::assign::map_list_of + (GPIO_CTRL, "CTRL") + (GPIO_DDR, "DDR") + (GPIO_OUT, "OUT") + (GPIO_ATR_0X, "ATR_0X") + (GPIO_ATR_RX, "ATR_RX") + (GPIO_ATR_TX, "ATR_TX") + (GPIO_ATR_XX, "ATR_XX") +; class gpio_core_200 : boost::noncopyable{ public: |