Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and poyamini committed Oct 12, 2023
1 parent 75aed85 commit cc1d6a1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/platform/silabs/efr32/rs911x/hal/rsi_hal_mcu_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@ int32_t rsi_timer_start(uint8_t timer_node, uint8_t mode, uint8_t type, uint32_t
}
/*==============================================*/
/**
* @fn uint32_t rsi_ms_to_tick(uint32_t timeout_ms)
* @brief Converting ms to os ticks
* @param[in] timeout_ms - timeout in ms
* @return uint32_t
*/
* @fn uint32_t rsi_ms_to_tick(uint32_t timeout_ms)
* @brief Converting ms to os ticks
* @param[in] timeout_ms - timeout in ms
* @return uint32_t
*/
uint32_t rsi_ms_to_tick(uint32_t timeout_ms)
{
uint32_t ticks_cnt = 0, ticks_val = 0, ticks = 0;
ticks_cnt = SysTick->LOAD + 1UL;
ticks_val = SystemCoreClock / ticks_cnt;
ticks = ticks_val / 1000;
return (timeout_ms * ticks);
uint32_t ticks_cnt = 0, ticks_val = 0, ticks = 0;
ticks_cnt = SysTick->LOAD + 1UL;
ticks_val = SystemCoreClock / ticks_cnt;
ticks = ticks_val / 1000;
return (timeout_ms * ticks);
}
#else /* _use_the_rsi_defined_functions */

Expand Down

0 comments on commit cc1d6a1

Please sign in to comment.