MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_timer_init

Function rt_hw_timer_init

bsp/loongson/ls2kdev/drivers/board.c:68–73  ·  view source on GitHub ↗

* This function will initial OS timer */

Source from the content-addressed store, hash-verified

66 * This function will initial OS timer
67 */
68void rt_hw_timer_init(void)
69{
70 write_c0_compare(CPU_HZ / 2 / RT_TICK_PER_SECOND);
71 write_c0_count(0);
72 mips_unmask_cpu_irq(7);
73}
74
75/**
76 * Board level initialization

Callers 3

rt_hw_board_initFunction · 0.70
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50

Calls 1

mips_unmask_cpu_irqFunction · 0.85

Tested by

no test coverage detected