| 1646 | */ |
| 1647 | |
| 1648 | struct wiringPiNodeStruct *wiringPiFindNode (int pin) |
| 1649 | { |
| 1650 | struct wiringPiNodeStruct *node = wiringPiNodes ; |
| 1651 | |
| 1652 | while (node != NULL) |
| 1653 | if ((pin >= node->pinBase) && (pin <= node->pinMax)) |
| 1654 | return node ; |
| 1655 | else |
| 1656 | node = node->next ; |
| 1657 | |
| 1658 | return NULL ; |
| 1659 | } |
| 1660 | |
| 1661 | |
| 1662 | /* |
no outgoing calls
no test coverage detected