driver(adc): fix adc io init bug; add unit test to check;

This commit is contained in:
fuzhibo
2020-04-08 21:56:14 +08:00
committed by bot
parent bd920d22b0
commit 8256b5f32b
8 changed files with 333 additions and 66 deletions

View File

@@ -240,8 +240,8 @@ void adc_hal_arbiter_config(adc_arbiter_t *config);
* @param channel adc channel number.
* @param internal_gnd true: Disconnect from the IO port and use the internal GND as the calibration voltage.
* false: Use IO external voltage as calibration voltage.
* @param force_cal true: Do not use the results that have already been verified, and perform the verification again. It will take a long time.
* false: Use the result of the last calibration.
* @param force_cal true: Do not use the results that have already been verified, and perform the verification again. It will take a long time(~40us).
* false: Use the result of the last calibration. Return immediately.
*
* @return
* - The calibration result (initial data) to ADC, use `adc_hal_set_calibration_param` to set.