Home
last modified time | relevance | path

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

/bsp/stm32/stm32mp157a-st-ev1/board/ports/
A Dtimer_sample.c43 rt_device_t hw_dev = RT_NULL; in hwtimer_stop() local
45 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_stop()
46 if (hw_dev == RT_NULL) in hwtimer_stop()
52 ret = rt_device_close(hw_dev); in hwtimer_stop()
69 rt_device_t hw_dev = RT_NULL; in hwtimer_start() local
73 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_start()
74 if (hw_dev == RT_NULL) in hwtimer_start()
89 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_start()
97 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_start()
101 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_start()
[all …]
/bsp/stm32/stm32mp157a-st-discovery/board/ports/
A Dtimer_sample.c43 rt_device_t hw_dev = RT_NULL; in hwtimer_stop() local
45 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_stop()
46 if (hw_dev == RT_NULL) in hwtimer_stop()
52 ret = rt_device_close(hw_dev); in hwtimer_stop()
69 rt_device_t hw_dev = RT_NULL; in hwtimer_start() local
73 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_start()
74 if (hw_dev == RT_NULL) in hwtimer_start()
89 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_start()
97 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_start()
101 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_start()
[all …]
/bsp/bouffalo_lab/libraries/rt_drivers/sample/
A Dhwtimer_sample.c37 rt_device_t hw_dev = RT_NULL; /* 定时器设备句柄 */ in hwtimer_sample() local
42 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_sample()
43 if (hw_dev == RT_NULL) in hwtimer_sample()
50 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_sample()
58 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_sample()
61 rt_device_control(hw_dev, HWTIMER_CTRL_FREQ_SET, &freq); in hwtimer_sample()
64 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_sample()
74 if (rt_device_write(hw_dev, 0, &timeout_s, sizeof(timeout_s)) != sizeof(timeout_s)) in hwtimer_sample()
84 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
/bsp/hc32/tests/
A Dtest_hwtimer.c64 rt_device_t hw_dev = RT_NULL; /* 定时器设备句柄 */ in hwtimer_sample() local
78 hw_dev = rt_device_find(argv[1]); in hwtimer_sample()
79 if (hw_dev == RT_NULL) in hwtimer_sample()
86 hwtimer = (rt_hwtimer_t *)hw_dev; in hwtimer_sample()
90 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_sample()
108 rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_sample()
111 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_sample()
116 if (rt_device_write(hw_dev, 0, &timeout_s, sizeof(timeout_s)) != sizeof(timeout_s)) in hwtimer_sample()
137 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
141 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
[all …]
/bsp/Infineon/libraries/HAL_Drivers/
A Ddrv_hwtimer.c284 rt_device_t hw_dev = RT_NULL; in hwtimer_sample() local
288 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_sample()
289 if (hw_dev == RT_NULL) in hwtimer_sample()
295 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_sample()
302 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_sample()
304 rt_device_control(hw_dev, HWTIMER_CTRL_FREQ_SET, &freq); in hwtimer_sample()
307 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_sample()
317 if (rt_device_write(hw_dev, 0, &timeout_s, sizeof(timeout_s)) != sizeof(timeout_s)) in hwtimer_sample()
327 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
/bsp/renesas/libraries/HAL_Drivers/
A Ddrv_hwtimer.c271 rt_device_t hw_dev = RT_NULL; in hwtimer_sample() local
275 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_sample()
276 if (hw_dev == RT_NULL) in hwtimer_sample()
282 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_sample()
289 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_sample()
291 rt_device_control(hw_dev, HWTIMER_CTRL_FREQ_SET, &freq); in hwtimer_sample()
294 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_sample()
304 if (rt_device_write(hw_dev, 0, &timeout_s, sizeof(timeout_s)) != sizeof(timeout_s)) in hwtimer_sample()
311 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
/bsp/synwit/swm320-mini/applications/
A Dmain.c98 rt_device_t hw_dev = RT_NULL; in hwtimer_sample() local
101 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_sample()
102 if (hw_dev == RT_NULL) in hwtimer_sample()
108 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_sample()
115 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_sample()
137 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
526 rt_device_t hw_dev = RT_NULL; in norflash_sample() local
528 hw_dev = rt_device_find(NORFLASH_DEV_NAME); in norflash_sample()
529 if (hw_dev == RT_NULL) in norflash_sample()
539 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in norflash_sample()
[all …]
/bsp/synwit/swm341-mini/applications/
A Dmain.c264 rt_device_t hw_dev = RT_NULL; in hwtimer_sample() local
267 hw_dev = rt_device_find(HWTIMER_DEV_NAME); in hwtimer_sample()
268 if (hw_dev == RT_NULL) in hwtimer_sample()
274 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_sample()
281 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_sample()
285 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_sample()
295 if (rt_device_write(hw_dev, 0, &timeout_s, sizeof(timeout_s)) != sizeof(timeout_s)) in hwtimer_sample()
303 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_sample()
/bsp/n32g452xx/n32g452xx-mini-system/board/msp/
A Dn32_msp.c897 rt_device_t hw_dev = RT_NULL; in hwtimer_init() local
899 hw_dev = rt_device_find(name); in hwtimer_init()
900 if (hw_dev == RT_NULL) in hwtimer_init()
905 ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); in hwtimer_init()
911 rt_device_set_rx_indicate(hw_dev, timeout_cb); in hwtimer_init()
913 ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); in hwtimer_init()
921 if (rt_device_write(hw_dev, 0, &timeout_s, sizeof(timeout_s)) != sizeof(timeout_s)) in hwtimer_init()
929 rt_device_read(hw_dev, 0, &timeout_s, sizeof(timeout_s)); in hwtimer_init()

Completed in 36 milliseconds