USB and TLE8888 not working for F4 or F767 #764
This commit is contained in:
parent
0677d61f1f
commit
4253801267
|
@ -104,6 +104,7 @@ static int turnOnTriggerInputPin(const char *msg, brain_pin_e brainPin, bool is_
|
||||||
scheduleMsg(logger, "turnOnTriggerInputPin(PAL) %s %s", msg, hwPortname(brainPin));
|
scheduleMsg(logger, "turnOnTriggerInputPin(PAL) %s %s", msg, hwPortname(brainPin));
|
||||||
|
|
||||||
pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin));
|
pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin));
|
||||||
|
brain_pin_markUsed(brainPin, msg);
|
||||||
|
|
||||||
palEnableLineEvent(pal_line, PAL_EVENT_MODE_BOTH_EDGES);
|
palEnableLineEvent(pal_line, PAL_EVENT_MODE_BOTH_EDGES);
|
||||||
if (is_shaft)
|
if (is_shaft)
|
||||||
|
@ -121,6 +122,7 @@ static void turnOffTriggerInputPin(brain_pin_e brainPin)
|
||||||
/* check for on-chip? */
|
/* check for on-chip? */
|
||||||
if (brainPin == GPIO_UNASSIGNED)
|
if (brainPin == GPIO_UNASSIGNED)
|
||||||
return;
|
return;
|
||||||
|
brain_pin_markUnused(brainPin);
|
||||||
|
|
||||||
pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin));
|
pal_line = PAL_LINE(getHwPort("trg", brainPin), getHwPin("trg", brainPin));
|
||||||
palDisableLineEvent(pal_line);
|
palDisableLineEvent(pal_line);
|
||||||
|
|
Loading…
Reference in New Issue