chip/npcx/hwtimer.c: Format with clang-format
BRANCH=none
TEST=none
@@ -89,8 +89,8 @@ void __hw_clock_event_set(uint32_t deadline)
*/
evt_cnt = FP_TO_INT((fp_inter_t)(evt_cnt_us)*inv_evt_tick);
if (evt_cnt > TICK_EVT_MAX_CNT) {
- CPRINTS("Event overflow! 0x%08x, us is %d",
- evt_cnt, evt_cnt_us);
+ CPRINTS("Event overflow! 0x%08x, us is %d", evt_cnt,
+ evt_cnt_us);
evt_cnt = TICK_EVT_MAX_CNT;
}
@@ -142,7 +142,8 @@ uint32_t __hw_clock_get_sleep_time(uint16_t pre_evt_cnt)
/* Event has been triggered but timer ISR doesn't handle it */
if (IS_BIT_SET(NPCX_ITCTS(ITIM_EVENT_NO), NPCX_ITCTS_TO_STS))
- sleep_time = FP_TO_INT((fp_inter_t)(pre_evt_cnt+1) * evt_tick);
+ sleep_time =
+ FP_TO_INT((fp_inter_t)(pre_evt_cnt + 1) * evt_tick);
/* Event hasn't been triggered */
else
sleep_time = FP_TO_INT((fp_inter_t)(pre_evt_cnt + 1 - cnt) *
@@ -194,7 +195,6 @@ static void __hw_clock_event_irq(void)
if (evt_expired_us == 0)
__hw_clock_event_set(EVT_MAX_EXPIRED_US);
#endif
-
}
DECLARE_IRQ(ITIM_INT(ITIM_EVENT_NO), __hw_clock_event_irq, 3);
@@ -298,7 +298,6 @@ static void update_prescaler(void)
NPCX_ITPRE(ITIM_SYSTEM_NO) = (clock_get_apb2_freq() / SECOND) - 1;
/* Set event tick unit = 1/32768 sec */
NPCX_ITPRE(ITIM_EVENT_NO) = 0;
-
}
DECLARE_HOOK(HOOK_FREQ_CHANGE, update_prescaler, HOOK_PRIO_DEFAULT);
