I'm trying to compile a project I have for nrf51 on nrf52. I am running into errors with macros not being set.
error: #20: identifier "ADC_CONFIG_RES_10bit" is undefined
error: #20: identifier "ADC_CONFIG_RES_Pos" is undefined
error: #20: identifier "ADC_CONFIG_PSEL_Disabled" is undefined
I also have this issue:
error: #20: identifier "ble_gap_enable_params_t" is undefined
error: #136: struct "" has no field "gap_enable_params"
The API has changed -- have you set up the new SDK?
Yes, I believe I have.
@mrintern7: As mentioned here, the ADC peripheral has be redesigned and is not backward compatible with the nRF51 ADC. You would need to port your code for the ADC for NRF51 to the SAADC on the NRF52. You can follow the SAADC description here to use it.
The nrf_adc.c library file in the nRF52 SDK should not be used.
Thanks for the reply, I did not notice that before. Do you know what happened to ble_gap_enable_params_t?
@mrintern7: Which SDK version did you use ? I can't find ble_gap_enable_params_t in our current SDK for nRF51 (SDK 7,8,9), we use ble_enable_params_t