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];