Skip to content

Commit 4eea3c8

Browse files
Fix to atomic compiler errors
1 parent be4fb6c commit 4eea3c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/nRF5/HardwarePWM.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "common_inc.h"
4040
#include "nrf.h"
4141
#include <atomic>
42+
#include <cstdint>
4243

4344
#ifdef NRF52840_XXAA
4445
#define HWPWM_MODULE_NUM 4
@@ -51,7 +52,7 @@ class HardwarePWM
5152
private:
5253
enum { MAX_CHANNELS = 4 }; // Max channel per group
5354
NRF_PWM_Type * const _pwm;
54-
std::atomic_uint32_t _owner_token;
55+
std::atomic<std::uint32_t> _owner_token;
5556

5657
uint16_t _seq0[MAX_CHANNELS];
5758

0 commit comments

Comments
 (0)