New: ticks_to_usec.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2019-11-18 08:26:30 +09:00
parent 858a9f5d01
commit 355482550b
4 changed files with 18 additions and 1 deletions

View File

@@ -76,6 +76,11 @@ usec_to_ticks (uint32_t usec)
return usec * MHZ;
}
static uint32_t
ticks_to_usec (uint32_t ticks)
{
return ticks / MHZ;
}
static void
chx_enable_intr (uint8_t irq_num)