juniskane opened a new pull request #2210:
URL: https://github.com/apache/incubator-nuttx/pull/2210


   ## Summary
   When HAVE_HSI_CONTROL, adc_reset_hsi_disable() calls adc_reset()
   followed by adc_shutdown() and this combination is called before
   adc_setup() by upper level ADC driver. Without this patch,
   priv->initialized wraps from 0 to 255 in this case.
   
   ## Impact
   read() from /dev/adc0 was hanging forever on STM32L1 that used HSI as ADC 
dedicated clock.
   
   ## Testing
   Tested with a proprietary STM32L1 board.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to