aboutsummaryrefslogtreecommitdiffstats
path: root/src/wiring/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wiring/pwm.h')
-rw-r--r--src/wiring/pwm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wiring/pwm.h b/src/wiring/pwm.h
new file mode 100644
index 0000000..3ff440b
--- /dev/null
+++ b/src/wiring/pwm.h
@@ -0,0 +1,18 @@
+#ifndef _PWM_H
+#define _PWM_H
+
+#ifdef __cplusplus
+extern "C"{
+#endif
+
+#define PWM GPIO_MODE_AF_OUTPUT_PP
+
+void pwmWrite(uint8_t, uint16_t);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif
+