Merge pull request #433 from andreika-git/hal_use_icu

Hal use icu
This commit is contained in:
rusefi 2017-05-30 16:04:27 -04:00 committed by GitHub
commit 2b50a0afa6
3 changed files with 6 additions and 1 deletions

View File

@ -55,7 +55,9 @@ typedef enum {
void initHip9011(Logging *sharedLogger);
void setHip9011FrankensoPinout(void);
#if HAL_USE_ADC
void hipAdcCallback(adcsample_t value);
#endif /* HAL_USE_ADC */
void setHipGain(float value);
void setHipBand(float value);
void setPrescalerAndSDO(int value);

View File

@ -90,10 +90,11 @@ iomode_t getInputMode(pin_input_mode_e mode) {
}
}
#if HAL_USE_ICU || defined(__DOXYGEN__)
void efiIcuStart(ICUDriver *icup, const ICUConfig *config) {
efiAssertVoid((icup->state == ICU_STOP) || (icup->state == ICU_READY),
"input already used?");
icuStart(icup, config);
}
#endif /* HAL_USE_ICU */

View File

@ -58,7 +58,9 @@ void efiSetPadMode(const char *msg, brain_pin_e pin, iomode_t mode);
bool efiReadPin(brain_pin_e pin);
iomode_t getInputMode(pin_input_mode_e mode);
#if HAL_USE_ICU || defined(__DOXYGEN__)
void efiIcuStart(ICUDriver *icup, const ICUConfig *config);
#endif /* HAL_USE_ICU */
#endif /* EFI_GPIO_HARDWARE */