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 80fabcb commit 02d7d25Copy full SHA for 02d7d25
targets/TARGET_NORDIC/TARGET_NRF5x/us_ticker.c
@@ -110,7 +110,7 @@ void us_ticker_set_interrupt(timestamp_t timestamp)
110
{
111
core_util_critical_section_enter();
112
113
- const uint32_t counter_mask = ((1 << US_TICKER_COUNTER_BITS) - 1);
+ const uint32_t counter_mask = ((1ULL << US_TICKER_COUNTER_BITS) - 1);
114
115
nrf_timer_cc_write(NRF_TIMER1, NRF_TIMER_CC_CHANNEL0, timestamp & counter_mask);
116
0 commit comments