15#if EFI_SHAFT_POSITION_INPUT && (HAL_TRIGGER_USE_PAL == TRUE)
20#if (PAL_USE_CALLBACKS == FALSE)
21 #error "PAL_USE_CALLBACKS should be enabled to use HAL_TRIGGER_USE_PAL"
31 bool rise = (palReadLine(pal_line) == PAL_HIGH);
43 bool rise = (palReadLine(pal_line) == PAL_HIGH);
55 efiPrintf(
"extiTriggerTurnOnInputPin %s %s", msg,
hwPortname(brainPin));
ioportid_t getHwPort(const char *msg, brain_pin_e brainPin)
ioportmask_t getHwPin(const char *msg, brain_pin_e brainPin)
static constexpr engine_configuration_s * engineConfiguration
uint32_t ioline_t
Type of an I/O line.
const char * hwPortname(brain_pin_e brainPin)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]
brain_input_pin_e camInputs[CAM_INPUTS_COUNT]
void hwHandleShaftSignal(int signalIndex, bool isRising, efitick_t timestamp)
void hwHandleVvtCamSignal(bool isRising, efitick_t nowNt, int index)