Home
last modified time | relevance | path

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

/examples/utest/testcases/perf/
A Dperf_tc.c24 static rt_device_t hw_dev = RT_NULL; variable
42 if (hw_dev && rt_device_read(hw_dev, 0, &timer_val, sizeof(rt_hwtimerval_t))) in rt_perf_get_timer_us()
51 if (hw_dev) in rt_perf_start_impl()
55 rt_device_write(hw_dev, 0, timeout, sizeof(rt_hwtimerval_t)); in rt_perf_start_impl()
78 if(hw_dev) in rt_perf_stop()
79 rt_device_control(hw_dev, HWTIMER_CTRL_STOP, NULL); in rt_perf_stop()
170 hw_dev = rt_device_find(UTEST_HWTIMER_DEV_NAME); in utest_tc_init()
171 if (hw_dev == RT_NULL) in utest_tc_init()
177 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in utest_tc_init()
192 if(hw_dev) rt_device_close(hw_dev); in utest_tc_cleanup()
A Dirq_latency_tc.c17 static rt_device_t hw_dev = RT_NULL; variable
51 hw_dev = rt_device_find(UTEST_HWTIMER_DEV_NAME); in rt_perf_irq_latency()
52 if (hw_dev == RT_NULL) in rt_perf_irq_latency()
68 rt_device_set_rx_indicate(hw_dev, timer_callback); in rt_perf_irq_latency()
69 rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, (void *)&mode); in rt_perf_irq_latency()
76 rt_device_close(hw_dev); in rt_perf_irq_latency()

Completed in 4 milliseconds