commit | 142bce58a2c2ac6fb193edeb57b7444ec1674143 | [log] [tgz] |
---|---|---|
author | Marcus Shawcroft <marcus.shawcroft@arm.com> | Tue Jan 31 15:46:39 2017 +0000 |
committer | Anas Nashif <nashif@linux.intel.com> | Mon Feb 06 13:15:50 2017 +0000 |
tree | 5e235d400662666b13a0b0b080f9c81f6e486731 | |
parent | f88824a0f2ab838decfd327fde76120ba5dbc204 [diff] |
gpio/nrf5: Fix GPIO_ACCESS_BY_PIN behaviour Adjust the implementation of gpio_pin_read() to return 0 or 1 rather than 0 or 2^pin. This ensures consistent behaviour with other gpio device drivers, and conforms to the behaviour documented in gpio.h by the previous patch. Change-Id: Ia02aa68105a406f355d16a3f9b0550f948658483 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>