we need to wake some boards up!
This commit is contained in:
parent
9126ae229d
commit
dad17e525d
|
@ -190,12 +190,9 @@ int main(void) {
|
||||||
|
|
||||||
chThdCreateStatic(consoleThread, sizeof(consoleThread), NORMALPRIO, ConsoleThread, nullptr);
|
chThdCreateStatic(consoleThread, sizeof(consoleThread), NORMALPRIO, ConsoleThread, nullptr);
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Normal main() thread activity, in this demo it does nothing except
|
|
||||||
* sleeping in a loop and check the button state.
|
|
||||||
*/
|
|
||||||
while (true) {
|
while (true) {
|
||||||
chThdSleepMilliseconds(500);
|
chThdSleepMilliseconds(500);
|
||||||
|
// we need to wake some boards up!
|
||||||
|
setOutputCountRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,6 @@ void initStimDigitalInputs() {
|
||||||
|
|
||||||
palSetPadMode(muxOff.port, muxOff.pin, PAL_MODE_OUTPUT_PUSHPULL);
|
palSetPadMode(muxOff.port, muxOff.pin, PAL_MODE_OUTPUT_PUSHPULL);
|
||||||
palWritePad(muxOff.port, muxOff.pin, 0 ^ XOR_MAGIC);
|
palWritePad(muxOff.port, muxOff.pin, 0 ^ XOR_MAGIC);
|
||||||
|
|
||||||
// send the request early
|
|
||||||
setOutputCountRequest();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool globalEverythingHappy;
|
extern bool globalEverythingHappy;
|
||||||
|
|
Loading…
Reference in New Issue