basic hw in the loop - pwm self validation #2028
This commit is contained in:
parent
0126f4fb4b
commit
aca471273d
|
@ -236,7 +236,7 @@ void stopLogicAnalyzerPins() {
|
|||
brain_pin_e brainPin = CONFIG(logicAnalyzerPins)[index];
|
||||
|
||||
if (brainPin != GPIO_UNASSIGNED) {
|
||||
|
||||
stopDigitalCapture("wave input", brainPin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -206,10 +206,6 @@ static void turnOnCapturePin(const char *msg, brain_pin_e brainPin) {
|
|||
}
|
||||
}
|
||||
|
||||
void turnOffCapturePin(brain_pin_e brainPin) {
|
||||
efiSetPadUnused(brainPin);
|
||||
}
|
||||
|
||||
/**
|
||||
* turns pin off and returns digital_input_s back into registeredIcus pool
|
||||
*/
|
||||
|
@ -223,6 +219,7 @@ void stopDigitalCapture(const char *msg, brain_pin_e brainPin) {
|
|||
if (driver == NULL) {
|
||||
return;
|
||||
}
|
||||
efiSetPadUnused(brainPin);
|
||||
int regSize = registeredIcus.size;
|
||||
for (int i = 0; i < regSize; i++) {
|
||||
if (registeredIcus.elements[i].driver == driver) {
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
digital_input_s* startDigitalCapture(const char *msg, brain_pin_e brainPin);
|
||||
|
||||
void turnOffCapturePin(brain_pin_e brainPin);
|
||||
|
||||
void stopDigitalCapture(const char *msg, brain_pin_e brainPin);
|
||||
|
||||
//Nullable
|
||||
|
|
Loading…
Reference in New Issue