Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adc: adc_read() not check for error (#1575) v2 #1599

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Jan 2, 2024

  1. adc: adc_read() not check for error (raspberrypi#1575) v2

    Implementation of adc_read() not check for errors in the ADC_CS register.
        
    -  change the return type from uint16_t to int32_t
    -  check for ADC_CS_READY_BITS and error ADC_CS_ERR_BITS or ADC_CS_ERR_STICKY_BITS    
    - return the ADC value (12bits) or the negative value of
    ADC_CS_ERR_BITS or ADC_CS_ERR_STICKY_BITS depending on the error
    ruehlchris authored Jan 2, 2024
    Configuration menu
    Copy the full SHA
    c5ae571 View commit details
    Browse the repository at this point in the history