aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-05-05 09:33:58 -0700
committerMoritz Fischer <moritz.fischer@ettus.com>2015-05-05 09:44:44 -0700
commit0731c0256fc431825edc032e9e18ef2922632356 (patch)
tree5927576eb42841ea58cf153bdc031a590c9eb6df
parent96f044e2734b6bac56f54537d5b1ccd104ae4a1d (diff)
downloaduhd-0731c0256fc431825edc032e9e18ef2922632356.tar.gz
uhd-0731c0256fc431825edc032e9e18ef2922632356.tar.bz2
uhd-0731c0256fc431825edc032e9e18ef2922632356.zip
doc: e300: gpio: Fix typo for GPIO example.
The example code given in the docs would set the wrong bit. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
-rw-r--r--host/docs/gpio_api.dox2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/docs/gpio_api.dox b/host/docs/gpio_api.dox
index 186f28093..d3bb4f0a9 100644
--- a/host/docs/gpio_api.dox
+++ b/host/docs/gpio_api.dox
@@ -158,7 +158,7 @@ GPIO bank, where the controlled GPIO is now GPIO3 instead of GPIO6.
usrp_e300->set_gpio_attr("INT0", "DDR", GPIO_DDR, ATR_MASKS);
// let's manually set GPIO4 high
- usrp_e300->set_gpio_attr("INT0", "OUT", 1, MAN_GPIO_MASK);
+ usrp_e300->set_gpio_attr("INT0", "OUT", (1 << 4), MAN_GPIO_MASK);
// finally, let's set up GPIO6 as we described above
usrp_e300->set_gpio_attr("INT0", "ATR_0X", 0, AMP_GPIO_MASK);