File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ uint32_t port_get_saved_word(void) {
431
431
static volatile uint64_t overflowed_ticks = 0 ;
432
432
static volatile bool _ticks_enabled = false;
433
433
434
- static uint32_t _get_count (uint32_t * overflow_count ) {
434
+ static uint32_t _get_count (uint64_t * overflow_count ) {
435
435
#ifdef SAM_D5X_E5X
436
436
while ((RTC -> MODE0 .SYNCBUSY .reg & (RTC_MODE0_SYNCBUSY_COUNTSYNC | RTC_MODE0_SYNCBUSY_COUNT )) != 0 ) {}
437
437
#endif
@@ -500,7 +500,7 @@ void RTC_Handler(void) {
500
500
}
501
501
502
502
uint64_t port_get_raw_ticks (uint8_t * subticks ) {
503
- uint32_t overflow_count ;
503
+ uint64_t overflow_count ;
504
504
uint32_t current_ticks = _get_count (& overflow_count );
505
505
if (subticks != NULL ) {
506
506
* subticks = (current_ticks % 16 ) * 2 ;
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ uint32_t port_get_saved_word(void) {
276
276
uint64_t port_get_raw_ticks (uint8_t * subticks ) {
277
277
common_hal_mcu_disable_interrupts ();
278
278
uint32_t rtc = nrfx_rtc_counter_get (& rtc_instance );
279
- uint32_t overflow_count = overflow_tracker .overflowed_ticks ;
279
+ uint64_t overflow_count = overflow_tracker .overflowed_ticks ;
280
280
common_hal_mcu_enable_interrupts ();
281
281
282
282
if (subticks != NULL ) {
You can’t perform that action at this time.
0 commit comments