Uploaded image for project: 'Mynewt'
  1. Mynewt
  2. MYNEWT-390

NRF HAL GPIO was not returning 1 for hal_gpio_read when pin input was high

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • v0_9_0
    • v1_0_0_beta1
    • None
    • Security Level: Public (Viewable by anyone)
    • None

    Description

      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).

      Attachments

        Activity

          People

            wes3 Will Sanfilippo
            wes3 Will Sanfilippo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: