git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15868 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-12-09 10:12:15 +00:00
parent 6917eedc3f
commit fcf3047bb3
2 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,7 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
/* ADC setup.*/ /* ADC setup.*/
adcp->adc->SR = 0; adcp->adc->SR = 0;
adcp->adc->SMPR1 = grpp->smpr1; adcp->adc->SMPR1 = grpp->smpr1 | ADC_SQR1_NUM_CH(grpp->num_channels);
adcp->adc->SMPR2 = grpp->smpr2; adcp->adc->SMPR2 = grpp->smpr2;
adcp->adc->SMPR3 = grpp->smpr3; adcp->adc->SMPR3 = grpp->smpr3;
adcp->adc->SQR1 = grpp->sqr1; adcp->adc->SQR1 = grpp->sqr1;

View File

@ -131,6 +131,8 @@
- NEW: Increased stacks size in RT test suite from 128 to 192. added an - NEW: Increased stacks size in RT test suite from 128 to 192. added an
option to override the stack size by defining THREADS_STACK_SIZE option to override the stack size by defining THREADS_STACK_SIZE
in the makefile. in the makefile.
- FIX: Fixed wrong initialization in STM32L1xx ADC driver (bug #1247)
(backported to 20.3.5)(backported to 21.11.3).
- FIX: Fixed wrong HSI48 support on STM32L0xx (bug #1246) - FIX: Fixed wrong HSI48 support on STM32L0xx (bug #1246)
(backported to 20.3.5)(backported to 21.11.3). (backported to 20.3.5)(backported to 21.11.3).
- FIX: Fixed wrong DMA definitions for STM32L0xx I2C3 peripheral (bug #1245) - FIX: Fixed wrong DMA definitions for STM32L0xx I2C3 peripheral (bug #1245)