X-Git-Url: https://git.ucc.asn.au/?p=matches%2FMCTX3420.git;a=blobdiff_plain;f=server%2Fpin_test.c;fp=server%2Fpin_test.c;h=8640a60df6c69999cbc49ea9c4ecf09649568872;hp=77c0ef9a32064428e047e9368635581c2ffe6547;hb=b7a1e44bd6c984d061b0b88a8b00cf24b854a1df;hpb=7deca6b4e089e76e279ae84c0aa25728d91e8fd9 diff --git a/server/pin_test.c b/server/pin_test.c index 77c0ef9..8640a60 100644 --- a/server/pin_test.c +++ b/server/pin_test.c @@ -30,6 +30,12 @@ void Pin_Close() PWM_Unexport(i); } +/** + * Configures a pin (Export/Unexport business) + * @param type The pin type (GPIO/PWM/ADC) + * @param pin_export Whether to export/unexport/leave-as-is the pin + * @param num The pin number + */ bool Pin_Configure(const char *type, int pin_export, int num) { bool ret = true;