auto-sync
This commit is contained in:
parent
08cb967b87
commit
77de014ae3
|
@ -143,11 +143,11 @@ ADC_TwoSamplingDelay_5Cycles, // cr1
|
||||||
|
|
||||||
AdcDevice fastAdc(&adcgrpcfg_fast);
|
AdcDevice fastAdc(&adcgrpcfg_fast);
|
||||||
|
|
||||||
static void pwmpcb_slow(PWMDriver *pwmp) {
|
void doSlowAdc(void) {
|
||||||
|
|
||||||
efiAssertVoid(getRemainingStack(chThdSelf())> 32, "lwStAdcSlow");
|
efiAssertVoid(getRemainingStack(chThdSelf())> 32, "lwStAdcSlow");
|
||||||
|
|
||||||
#if EFI_INTERNAL_ADC
|
#if EFI_INTERNAL_ADC
|
||||||
(void) pwmp;
|
|
||||||
|
|
||||||
/* Starts an asynchronous ADC conversion operation, the conversion
|
/* Starts an asynchronous ADC conversion operation, the conversion
|
||||||
will be executed in parallel to the current PWM cycle and will
|
will be executed in parallel to the current PWM cycle and will
|
||||||
|
@ -170,6 +170,11 @@ static void pwmpcb_slow(PWMDriver *pwmp) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void pwmpcb_slow(PWMDriver *pwmp) {
|
||||||
|
(void) pwmp;
|
||||||
|
doSlowAdc();
|
||||||
|
}
|
||||||
|
|
||||||
static void pwmpcb_fast(PWMDriver *pwmp) {
|
static void pwmpcb_fast(PWMDriver *pwmp) {
|
||||||
efiAssertVoid(getRemainingStack(chThdSelf())> 32, "lwStAdcFast");
|
efiAssertVoid(getRemainingStack(chThdSelf())> 32, "lwStAdcFast");
|
||||||
#if EFI_INTERNAL_ADC
|
#if EFI_INTERNAL_ADC
|
||||||
|
|
|
@ -20,6 +20,7 @@ void initAdcInputs(bool boardTestMode);
|
||||||
void adc_callback_fast(ADCDriver *adcp, adcsample_t *buffer, size_t n);
|
void adc_callback_fast(ADCDriver *adcp, adcsample_t *buffer, size_t n);
|
||||||
ioportid_t getAdcChannelPort(adc_channel_e hwChannel);
|
ioportid_t getAdcChannelPort(adc_channel_e hwChannel);
|
||||||
adc_channel_e getAdcChannel(brain_pin_e pin);
|
adc_channel_e getAdcChannel(brain_pin_e pin);
|
||||||
|
void doSlowAdc(void);
|
||||||
|
|
||||||
int getAdcHardwareIndexByInternalIndex(int index);
|
int getAdcHardwareIndexByInternalIndex(int index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue