We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4160a6a commit 99f2ea1Copy full SHA for 99f2ea1
src/flash/nor/nrf5.c
@@ -17,6 +17,7 @@
17
#include <target/armv7m.h>
18
#include <helper/types.h>
19
#include <helper/time_support.h>
20
+#include <helper/bits.h>
21
22
/* Both those values are constant across the current spectrum ofr nRF5 devices */
23
#define WATCHDOG_REFRESH_REGISTER 0x40010600
@@ -94,10 +95,10 @@ struct nrf52_ficr_info {
94
95
};
96
97
enum nrf5_features {
- NRF5_FEATURE_SERIES_51 = 1 << 0,
98
- NRF5_FEATURE_SERIES_52 = 1 << 1,
99
- NRF5_FEATURE_BPROT = 1 << 2,
100
- NRF5_FEATURE_ACL_PROT = 1 << 3,
+ NRF5_FEATURE_SERIES_51 = BIT(0),
+ NRF5_FEATURE_SERIES_52 = BIT(1),
+ NRF5_FEATURE_BPROT = BIT(2),
101
+ NRF5_FEATURE_ACL_PROT = BIT(3),
102
103
104
struct nrf5_device_spec {
0 commit comments