Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nrfx/drivers/nrfx_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ extern "C" {
*
* @return Bit mask.
*/
#define NRFX_BIT_MASK(x) (((x) == 32) ? UINT32_MAX : ((1UL << (x)) - 1))
#define NRFX_BIT_MASK(x) (((x) == 32) ? UINT32_MAX : ((uint32_t)((1ULL << (x)) - 1)))

/**
* @brief Macro for returning size in bits for given size in bytes.
Expand Down