生成器
这是缺少的代码(我不得不自己添加):
- ADC_INJ_InitStruct.TriggerSource = LL_ADC_INJ_TRIG_SOFTWARE;
- ADC_INJ_InitStruct.SequencerLength = 2;
- ADC_INJ_InitStruct.SequencerDiscont = LL_ADC_INJ_SEQ_DISCONT_DISABLE;
- ADC_INJ_InitStruct.TrigAuto = LL_ADC_INJ_TRIG_INDEPENDENT;
- LL_ADC_INJ_Init(ADC3, &ADC_INJ_InitStruct);
(HAL 代码生成器正确执行此操作)。
更多回帖