fixing ADC
This commit is contained in:
parent
9a7aa62cde
commit
2f05a05845
|
@ -582,12 +582,15 @@ void initAdcInputs(bool boardTestMode) {
|
||||||
|
|
||||||
slowAdc.init();
|
slowAdc.init();
|
||||||
pwmStart(EFI_INTERNAL_SLOW_ADC_PWM, &pwmcfg_slow);
|
pwmStart(EFI_INTERNAL_SLOW_ADC_PWM, &pwmcfg_slow);
|
||||||
|
pwmEnablePeriodicNotification(EFI_INTERNAL_SLOW_ADC_PWM);
|
||||||
|
|
||||||
if (boardConfiguration->isFastAdcEnabled) {
|
if (boardConfiguration->isFastAdcEnabled) {
|
||||||
fastAdc.init();
|
fastAdc.init();
|
||||||
/*
|
/*
|
||||||
* Initializes the PWM driver.
|
* Initializes the PWM driver.
|
||||||
*/
|
*/
|
||||||
pwmStart(EFI_INTERNAL_FAST_ADC_PWM, &pwmcfg_fast);
|
pwmStart(EFI_INTERNAL_FAST_ADC_PWM, &pwmcfg_fast);
|
||||||
|
pwmEnablePeriodicNotification(EFI_INTERNAL_FAST_ADC_PWM);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ADC_CHANNEL_IN0 // PA0
|
// ADC_CHANNEL_IN0 // PA0
|
||||||
|
|
Loading…
Reference in New Issue