minor HAL swap

This commit is contained in:
Hierophect 2019-09-17 17:54:29 -04:00
parent 97b1208829
commit 601c3ea8dc

View File

@ -119,8 +119,7 @@ uint16_t common_hal_analogio_analogin_get_value(analogio_analogin_obj_t *self) {
HAL_ADC_Start(&AdcHandle); HAL_ADC_Start(&AdcHandle);
HAL_ADC_PollForConversion(&AdcHandle,1); HAL_ADC_PollForConversion(&AdcHandle,1);
//uint16_t value = (uint16_t)HAL_ADC_GetValue(&AdcHandle); uint16_t value = (uint16_t)HAL_ADC_GetValue(&AdcHandle);
uint32_t value = ADCx->DR;
HAL_ADC_Stop(&AdcHandle); HAL_ADC_Stop(&AdcHandle);
//LL Implementation //LL Implementation