docs: explain aio numbering scheme
authorBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 21 Nov 2014 11:58:08 +0000 (11:58 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 21 Nov 2014 11:59:57 +0000 (11:59 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
docs/edison.md
docs/galileorevd.md
docs/galileorevh.md

index d55d5dc..8114afb 100644 (file)
@@ -22,6 +22,8 @@ in libmraa:
 - SPI exposed is also used for the ADC. Try not to use your own CS.
 - ADC kernel module will return 12bit number but the ADC itself only has an
   accuracy of 10bits. This ADC is only included on the arduino board.
+- AIO pins are treated as 0-5 in mraa_aio_init() but as 14-19 for everything
+  else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio
 
 Intel breakout board
 --------------------
index 859e476..382ee57 100644 (file)
@@ -9,3 +9,5 @@ The rev D board has the following limitations in libmraa:
 - gpio register access via /dev/uio is limited to pin2 and 3
 - gpio interupts will only work on GPIO_EDGE_BOTH
 - adc kernel module will return 12bit number. MRAA defaults shift this to 10bits
+- AIO pins are treated as 0-5 in mraa_aio_init() but as 14-19 for everything
+  else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio
index 0f896bb..464c9d4 100644 (file)
@@ -15,3 +15,5 @@ The Gen 2 board has the following limitations in libmraa:
   all pwm channels
 - adc kernel module will return 12bit number but the ADC itself only has an
   accuracy of 10bits.
+- AIO pins are treated as 0-5 in mraa_aio_init() but as 14-19 for everything
+  else. Therefore use mraa_gpio_init(14) to use A0 as a Gpio