This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_drv_saadc_gpio_to_ain is missing in SDK 12.2.0 and 12.3.0

Hi,

   The following function/macro is missing in SDK 12.2.0 and 12.3.0 but existed in 12.1.0:

nrf_drv_saadc_gpio_to_ain

    I am re-compiling "thingy" SDK and it happens I am using SDK 12.3.0.

    Any particular reason this is missing in 12.2.0 and 12.3.0 ?

    Thanks.

Lee

  • Hi,

    The function is removed, as mentioned in the release notes of SDK 12.2:

    • Removed the function nrf_drv_saadc_gpio_to_ain() from the
      nrf_drv_saadc API.

    You can use the analog input pin defines directly:

    enum  	nrf_saadc_input_t { 
      NRF_SAADC_INPUT_DISABLED = SAADC_CH_PSELP_PSELP_NC, 
      NRF_SAADC_INPUT_AIN0 = SAADC_CH_PSELP_PSELP_AnalogInput0, 
      NRF_SAADC_INPUT_AIN1 = SAADC_CH_PSELP_PSELP_AnalogInput1, 
      NRF_SAADC_INPUT_AIN2 = SAADC_CH_PSELP_PSELP_AnalogInput2, 
      NRF_SAADC_INPUT_AIN3 = SAADC_CH_PSELP_PSELP_AnalogInput3, 
      NRF_SAADC_INPUT_AIN4 = SAADC_CH_PSELP_PSELP_AnalogInput4, 
      NRF_SAADC_INPUT_AIN5 = SAADC_CH_PSELP_PSELP_AnalogInput5, 
      NRF_SAADC_INPUT_AIN6 = SAADC_CH_PSELP_PSELP_AnalogInput6, 
      NRF_SAADC_INPUT_AIN7 = SAADC_CH_PSELP_PSELP_AnalogInput7, 
      NRF_SAADC_INPUT_VDD = SAADC_CH_PSELP_PSELP_VDD 
    }
    

    Best regards,

    Jørgen

Related