From 4eea3c89bbca386d6b5b3f8b9a3e979aceed039f Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 4 Jun 2021 22:30:00 -0600 Subject: [PATCH] Fix to atomic compiler errors --- cores/nRF5/HardwarePWM.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/nRF5/HardwarePWM.h b/cores/nRF5/HardwarePWM.h index 47ec16c5..2002c8a1 100644 --- a/cores/nRF5/HardwarePWM.h +++ b/cores/nRF5/HardwarePWM.h @@ -39,6 +39,7 @@ #include "common_inc.h" #include "nrf.h" #include +#include #ifdef NRF52840_XXAA #define HWPWM_MODULE_NUM 4 @@ -51,7 +52,7 @@ class HardwarePWM private: enum { MAX_CHANNELS = 4 }; // Max channel per group NRF_PWM_Type * const _pwm; - std::atomic_uint32_t _owner_token; + std::atomic _owner_token; uint16_t _seq0[MAX_CHANNELS];