mirror of https://github.com/FOME-Tech/fome-fw.git
Fix HAL_USE_ICU=FALSE
This commit is contained in:
parent
e168ea866d
commit
e99b0f3cc0
|
@ -90,10 +90,11 @@ iomode_t getInputMode(pin_input_mode_e mode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAL_USE_ICU
|
||||||
void efiIcuStart(ICUDriver *icup, const ICUConfig *config) {
|
void efiIcuStart(ICUDriver *icup, const ICUConfig *config) {
|
||||||
efiAssertVoid((icup->state == ICU_STOP) || (icup->state == ICU_READY),
|
efiAssertVoid((icup->state == ICU_STOP) || (icup->state == ICU_READY),
|
||||||
"input already used?");
|
"input already used?");
|
||||||
|
|
||||||
icuStart(icup, config);
|
icuStart(icup, config);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -58,7 +58,9 @@ void efiSetPadMode(const char *msg, brain_pin_e pin, iomode_t mode);
|
||||||
bool efiReadPin(brain_pin_e pin);
|
bool efiReadPin(brain_pin_e pin);
|
||||||
|
|
||||||
iomode_t getInputMode(pin_input_mode_e mode);
|
iomode_t getInputMode(pin_input_mode_e mode);
|
||||||
|
#if HAL_USE_ICU
|
||||||
void efiIcuStart(ICUDriver *icup, const ICUConfig *config);
|
void efiIcuStart(ICUDriver *icup, const ICUConfig *config);
|
||||||
|
#endif /* HAL_USE_ICU */
|
||||||
#endif /* EFI_GPIO_HARDWARE */
|
#endif /* EFI_GPIO_HARDWARE */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue