File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
targets/TARGET_STM/TARGET_STM32L0 Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -172,12 +172,6 @@ uint16_t adc_read(analogin_t *obj)
172
172
173
173
HAL_ADC_ConfigChannel (& obj -> handle , & sConfig );
174
174
175
- /* need to wait for some stabilization time after setting the TSEN bit in the ADC_CCR
176
- register to wake up the temperature sensor from power down mode */
177
- if (sConfig .Channel == ADC_CHANNEL_TEMPSENSOR ) {
178
- wait_ms (20 );
179
- }
180
-
181
175
HAL_ADC_Start (& obj -> handle ); // Start conversion
182
176
183
177
// Wait end of conversion and get value
Original file line number Diff line number Diff line change 280
280
#define ADC_STAB_DELAY_US ((uint32_t) 1U)
281
281
282
282
/* Delay for temperature sensor stabilization time. */
283
- /* Maximum delay is 10us (refer to device datasheet, parameter tSTART). */
284
283
/* Unit: us */
285
- #define ADC_TEMPSENSOR_DELAY_US ((uint32_t) 10U)
284
+ #define ADC_TEMPSENSOR_DELAY_US ((uint32_t) 20000U)
286
285
/**
287
286
* @}
288
287
*/
You can’t perform that action at this time.
0 commit comments