Skip to content

Commit

Permalink
Update low_level_platform/impl/src/lf_STM32f4_support.c
Browse files Browse the repository at this point in the history
Co-authored-by: erling <erling.jellum@gmail.com>
  • Loading branch information
naichenzhao and erlingrj authored Sep 16, 2024
1 parent 0d3af6d commit 50603d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion low_level_platform/impl/src/lf_STM32f4_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int _lf_clock_gettime(instant_t* t) {
// Get the current microseconds from TIM5
uint32_t _lf_time_us_low = TIM5->CNT;

// Combine upper and lower timers (Yoinked from lf_nrf52 support)
// Combine upper and lower timers
uint64_t now_us = COMBINE_HI_LO((_lf_time_us_high - 1), _lf_time_us_low);
*t = ((instant_t)now_us) * 1000;
return 0;
Expand Down

0 comments on commit 50603d7

Please sign in to comment.