From 0731c0256fc431825edc032e9e18ef2922632356 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Tue, 5 May 2015 09:33:58 -0700 Subject: 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 --- host/docs/gpio_api.dox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/docs') 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); -- cgit v1.2.3