Searched refs:tmr_dev_1 (Results 1 – 2 of 2) sorted by relevance
| /bsp/k230/drivers/utest/ |
| A D | test_timer.c | 53 static rt_device_t tmr_dev_1; variable 83 tmr_dev_1 = rt_device_find(DEVICE_NAME1); in test_hwtimer() 84 uassert_not_null(tmr_dev_1); in test_hwtimer() 88 ret = rt_device_open(tmr_dev_1, RT_DEVICE_OFLAG_RDWR); in test_hwtimer() 96 ret = rt_device_set_rx_indicate(tmr_dev_1, tmr_timeout_cb); in test_hwtimer() 113 ret = rt_device_control(tmr_dev_1, HWTIMER_CTRL_MODE_SET, &mode); in test_hwtimer() 115 size = rt_device_write(tmr_dev_1, 0, &timerval, tsize); in test_hwtimer() 125 size = rt_device_read(tmr_dev_1, 0, &timerval, sizeof(timerval)); in test_hwtimer() 134 ret = rt_device_close(tmr_dev_1); in test_hwtimer()
|
| /bsp/wch/risc-v/ch569w-evt/applications/ |
| A D | test.c | 159 static struct rt_device *tmr_dev_1; variable 165 int tmr = (dev == tmr_dev_1) ? 1 : 0; in tmr_timeout_cb() 181 tmr_dev_1 = rt_device_find("timer1"); in test_hwtimer() 182 if (tmr_dev_0 == RT_NULL || tmr_dev_1 == RT_NULL) in test_hwtimer() 187 rt_device_open(tmr_dev_1, RT_DEVICE_OFLAG_RDWR) != RT_EOK) in test_hwtimer() 194 rt_device_set_rx_indicate(tmr_dev_1, tmr_timeout_cb); in test_hwtimer() 217 if (rt_device_control(tmr_dev_1, HWTIMER_CTRL_MODE_SET, &mode) != RT_EOK) in test_hwtimer() 221 else if (rt_device_write(tmr_dev_1, 0, &timerval, tsize) != tsize) in test_hwtimer()
|
Completed in 7 milliseconds