aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/pwm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/pwm.cpp')
-rw-r--r--wirish/pwm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/wirish/pwm.cpp b/wirish/pwm.cpp
index 1806348..7e8a535 100644
--- a/wirish/pwm.cpp
+++ b/wirish/pwm.cpp
@@ -28,11 +28,12 @@
* @brief Arduino-style PWM implementation.
*/
+#include "pwm.h"
+
#include "libmaple_types.h"
#include "timer.h"
#include "boards.h"
-#include "pwm.h"
void pwmWrite(uint8 pin, uint16 duty_cycle) {
timer_dev *dev = PIN_MAP[pin].timer_device;