Fix HAL_USE_ICU=FALSE

This commit is contained in:
Andrei 2017-05-30 21:22:38 +03:00
parent 9ce5e5f444
commit 9deb9efbdc
2 changed files with 4 additions and 1 deletions

View File

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

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
void efiIcuStart(ICUDriver *icup, const ICUConfig *config);
#endif /* HAL_USE_ICU */
#endif /* EFI_GPIO_HARDWARE */