andrzej-kaczmarek commented on code in PR #3321: URL: https://github.com/apache/mynewt-core/pull/3321#discussion_r1811536551
########## hw/hal/include/hal/hal_os_tick.h: ########## @@ -49,6 +49,12 @@ void os_tick_init(uint32_t os_ticks_per_sec, int prio); */ void os_tick_idle(os_time_t n); +/** + * Calculate the OS tick parameters. + * + * @param os_ticks_per_sec The number of OS ticks per second + */ +void hal_os_tick_calc_params(uint32_t os_ticks_per_sec); Review Comment: I don't really see why external code would need to call this. This calculates parameters based on current lpclk frequency so it just has to be done after lpclk frequency has changed e.g. after calibration so it can be called from that routine directly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org