You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "William San Filippo (JIRA)" <ji...@apache.org> on 2016/09/21 18:46:20 UTC

[jira] [Created] (MYNEWT-390) NRF HAL GPIO was not returning 1 for hal_gpio_read when pin input was high

William San Filippo created MYNEWT-390:
------------------------------------------

             Summary: NRF HAL GPIO was not returning 1 for hal_gpio_read when pin input was high
                 Key: MYNEWT-390
                 URL: https://issues.apache.org/jira/browse/MYNEWT-390
             Project: Mynewt
          Issue Type: Bug
    Affects Versions: v0_9_0
            Reporter: William San Filippo
            Assignee: William San Filippo
             Fix For: v1_0_0_beta1


The HAL gpio API to read an input pin should return 0 if the pin is low and 1 if the pin is high. The nrf (both 51 and 52) was returning a non-zero value if the pin was high but not 1 unless pin 0 was being read. It was returning 1 left-shifted by the pin number. This API should return only 0 or 1 (not zero and non-zero).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)