| 170 | } |
| 171 | |
| 172 | template<> void PrintPins<0>() { |
| 173 | RwReg *systemThinksPortIs = portOutputRegister(digitalPinToPort(0)); |
| 174 | RwReg systemThinksMaskIs = digitalPinToBitMask(0); |
| 175 | |
| 176 | int maskBit = 0; |
| 177 | while(systemThinksMaskIs > 1) { systemThinksMaskIs >>= 1; maskBit++; } |
| 178 | |
| 179 | const char *pinport = GetPinPort((void*)systemThinksPortIs); |
| 180 | if (pinport) { |
| 181 | Serial.print("__FL_DEFPIN("); Serial.print(0); |
| 182 | Serial.print(","); Serial.print(maskBit); |
| 183 | Serial.print(","); Serial.print(pinport); |
| 184 | Serial.print("); "); |
| 185 | pcount++; |
| 186 | if(pcount == 4) { pcount = 0; Serial.println(""); } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | int counter = 0; |
| 191 | void setup() { |
nothing calls this directly
no test coverage detected