summaryrefslogtreecommitdiff
path: root/chip/stm32/pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/pwm.c')
-rw-r--r--chip/stm32/pwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/pwm.c b/chip/stm32/pwm.c
index 0b339399c9..aadbde08c2 100644
--- a/chip/stm32/pwm.c
+++ b/chip/stm32/pwm.c
@@ -17,7 +17,7 @@
#include "util.h"
/* Bitmap of currently active PWM channels. 1 bit per channel. */
-static uint32_t using_pwm;
+static atomic_t using_pwm;
void pwm_set_duty(enum pwm_channel ch, int percent)
{