PAL repair

This commit is contained in:
rusefi 2019-12-05 21:10:29 -05:00
parent 2b49fc31ea
commit 6c76c5fcd6
3 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,7 @@ jobs:
- build-target: frankenso-pal
efi-cpu: ARCH_STM32F4
efi-board: st_stm32f4
target-extra-params: -DHAL_TRIGGER_USE_PAL=TRUE -DHAL_USE_ICU=FALSE
target-extra-params: -DHAL_TRIGGER_USE_PAL=TRUE -DHAL_USE_ICU=FALSE -DEFI_VEHICLE_SPEED=FALSE -DEFI_LOGIC_ANALYZER=FALSE
- build-target: mre-f4
efi-cpu: ARCH_STM32F4

View File

@ -6,7 +6,6 @@ set EXTRA_PARAMS=-DDUMMY ^
-DEFI_VEHICLE_SPEED=FALSE ^
-DHAL_USE_ICU=FALSE ^
-DEFI_LOGIC_ANALYZER=FALSE ^
-DHAL_USE_ICU=FALSE ^
-DDEFAULT_ENGINE_TYPE=MIATA_NA6_VAF ^
-DFIRMWARE_ID=\"frankensoNA6\"

View File

@ -73,11 +73,11 @@ void turnOnTriggerInputPin(const char *msg, int index, bool isTriggerShaft) {
* * do not set to both edges if we need only one
* * simplify callback in case of one edge */
ioline_t pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin));
efiExtiEnablePin(msg, brainPin, PAL_EVENT_MODE_BOTH_EDGES, isVvtShaft ? shaft_callback : cam_callback, (void *)pal_line);
efiExtiEnablePin(msg, brainPin, PAL_EVENT_MODE_BOTH_EDGES, isTriggerShaft ? shaft_callback : cam_callback, (void *)pal_line);
}
void turnOffTriggerInputPin(brain_pin_e brainPin) {
stopDigitalCapture("trigger", brainPin);
efiExtiDisablePin(brainPin);
}
void setPrimaryChannel(brain_pin_e brainPin) {