Home
last modified time | relevance | path

Searched refs:mtimer_counter (Results 1 – 2 of 2) sorted by relevance

/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl808/std/src/
A Dbl808_clock.c2196 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_US() local
2198 if (mtimer_counter < 10) { in CPU_Get_MTimer_US()
2199 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_US()
2225 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_MS() local
2227 if (mtimer_counter < 10) { in CPU_Get_MTimer_MS()
2228 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_MS()
2235 mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_MS()
2237 return mtimer_counter / 1000; in CPU_Get_MTimer_MS()
2239 if (mtimer_counter < (1 << 30)) { in CPU_Get_MTimer_MS()
2240 return (uint32_t)mtimer_counter / 1000; in CPU_Get_MTimer_MS()
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl616/std/src/
A Dbl616_clock.c1310 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_US() local
1311 if (mtimer_counter == 0) { in CPU_Get_MTimer_US()
1312 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_US()
1317 return mtimer_counter * 1000 / (clk / 1000); in CPU_Get_MTimer_US()
1319 return mtimer_counter / (clk / 1000 / 1000); in CPU_Get_MTimer_US()
1334 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_MS() local
1335 if (mtimer_counter == 0) { in CPU_Get_MTimer_MS()
1336 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_MS()
1340 return mtimer_counter / (clk / 1000); in CPU_Get_MTimer_MS()

Completed in 12 milliseconds