basic hw in the loop - pwm self validation #2028

This commit is contained in:
rusefillc 2020-12-07 20:26:47 -05:00
parent 0126f4fb4b
commit aca471273d
3 changed files with 2 additions and 7 deletions

View File

@ -236,7 +236,7 @@ void stopLogicAnalyzerPins() {
brain_pin_e brainPin = CONFIG(logicAnalyzerPins)[index]; brain_pin_e brainPin = CONFIG(logicAnalyzerPins)[index];
if (brainPin != GPIO_UNASSIGNED) { if (brainPin != GPIO_UNASSIGNED) {
stopDigitalCapture("wave input", brainPin);
} }
} }
} }

View File

@ -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 * 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) { if (driver == NULL) {
return; return;
} }
efiSetPadUnused(brainPin);
int regSize = registeredIcus.size; int regSize = registeredIcus.size;
for (int i = 0; i < regSize; i++) { for (int i = 0; i < regSize; i++) {
if (registeredIcus.elements[i].driver == driver) { if (registeredIcus.elements[i].driver == driver) {

View File

@ -13,8 +13,6 @@
digital_input_s* startDigitalCapture(const char *msg, brain_pin_e brainPin); 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); void stopDigitalCapture(const char *msg, brain_pin_e brainPin);
//Nullable //Nullable