Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
koendv committed Oct 2, 2022
1 parent 1094f72 commit e8d1278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Arduino/t12-958/adcdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static void t12_adc_init()
ADC_InitStructure.ADC_PRESCARE = ADC_PCLK2_PRESCARE_16;
ADC_InitStructure.ADC_Mode = ADC_Mode_Single_Period;
ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right;
ADC_InitStructure.ADC_ExternalTrigConv = ADC1_ExternalTrigConv_T3_CC4; // XXX
ADC_InitStructure.ADC_ExternalTrigConv = ADC1_ExternalTrigConv_T3_CC4; // Trigger is Timer 3, Channel 4
ADC_Init(ADC1, &ADC_InitStructure);
ADC_RegularChannelConfig(ADC1, ADC_Channel_5, 0, ADC_SampleTime_239_5Cycles); // PA5, NTC
ADC_RegularChannelConfig(ADC1, ADC_Channel_8, 0, ADC_SampleTime_239_5Cycles); // PB0, VIN
Expand Down

0 comments on commit e8d1278

Please sign in to comment.