controlling Resource is released. Also, set the DATA pin in a manner
consistent with the fact that it is a pulled-up line by default, either
via an external resistor or one internal to the uC.
}
command error_t SplitControl.stop() {
-#if 0
- call SCK.makeInput();
+ call SCK.makeOutput();
call SCK.clr();
call DATA.makeInput();
- call DATA.clr();
-#else
- call DATA.makeOutput();
- call SCK.clr(); /* remains an output so no floating pin */
- call DATA.makeOutput();
- call DATA.set(); /* set as pulled-up output so we see no interrupts */
-#endif
+ call DATA.set();
call PWR.clr();
post stopTask();
return SUCCESS;