aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/pwm.h')
-rw-r--r--wirish/pwm.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/wirish/pwm.h b/wirish/pwm.h
index d0bc9e0..4ce4bb4 100644
--- a/wirish/pwm.h
+++ b/wirish/pwm.h
@@ -28,12 +28,8 @@
* @brief Arduino-compatible PWM interface.
*/
-#ifndef _PWM_H
-#define _PWM_H
-
-#ifdef __cplusplus
-extern "C"{
-#endif
+#ifndef _PWM_H_
+#define _PWM_H_
/**
* As a convenience, analogWrite is an alias of pwmWrite to ease
@@ -47,13 +43,11 @@ extern "C"{
*
* User code is expected to determine and honor the maximum value
* (based on the configured period).
+ *
+ * @param pin PWM output pin
+ * @param duty_cycle Duty cycle to set.
*/
void pwmWrite(uint8 pin, uint16 duty_cycle);
-#ifdef __cplusplus
-}
-#endif
-
-
#endif