| /bsp/mini2440/drivers/ |
| A D | touch.c | 122 ts.xp = ts.xp / ts.count; in report_touch_input() 123 ts.yp = ts.yp / ts.count;; in report_touch_input() 126 ts.xp = ts.xp + ts.yp; in report_touch_input() 127 ts.yp = ts.xp - ts.yp; in report_touch_input() 128 ts.xp = ts.xp - ts.yp; in report_touch_input() 199 ts.xp = ts.xp / ts.count; in report_touch_input() 200 ts.yp = ts.yp / ts.count; in report_touch_input() 297 ts.count ++; in s3c2410_adc_stylus_action() 299 if (ts.count < (1<<ts.shift)) in s3c2410_adc_stylus_action() 344 if (ts.xp >= 0 && ts.yp >= 0) in s3c2410_intc_stylus_updown() [all …]
|
| /bsp/nxp/mcx/mcxc/Libraries/drivers/ |
| A D | drv_rtc.c | 43 static rt_err_t mcxc444_rtc_get_time(time_t *ts) in mcxc444_rtc_get_time() argument 45 if (ts == RT_NULL) in mcxc444_rtc_get_time() 50 *ts = RTC->TSR; in mcxc444_rtc_get_time() 55 static rt_err_t mcxc444_rtc_set_time(time_t *ts) in mcxc444_rtc_set_time() argument 57 if (ts == RT_NULL) in mcxc444_rtc_set_time() 63 RTC->TSR = *ts; in mcxc444_rtc_set_time()
|
| /bsp/stm32/stm32f429-st-disco/board/ports/touch/ |
| A D | drv_touch.c | 201 struct touch_state ts; in touch_show_state() local 202 touch_get_state(&ts); in touch_show_state() 203 x = (3706 - ts.x) / 14; in touch_show_state() 204 y = (-461 + ts.y) / 10.5; in touch_show_state() 205 …] touch_show_state, x: %d, y: %d, pressed: %d, padding: %d\n", ts.x , ts.y, ts.pressed, ts.padding… in touch_show_state()
|
| /bsp/stm32/stm32l4r9-st-eval/board/ports/ |
| A D | drv_touch.c | 35 static void post_down_event(rt_uint16_t x, rt_uint16_t y, rt_tick_t ts) in post_down_event() argument 47 emouse.ts = rt_tick_get(); in post_down_event() 48 emouse.id = ts; in post_down_event() 55 static void post_motion_event(rt_uint16_t x, rt_uint16_t y, rt_tick_t ts) in post_motion_event() argument 67 emouse.ts = rt_tick_get(); in post_motion_event() 68 emouse.id = ts; in post_motion_event() 75 static void post_up_event(rt_uint16_t x, rt_uint16_t y, rt_tick_t ts) in post_up_event() argument 87 emouse.ts = rt_tick_get(); in post_up_event() 88 emouse.id = ts; in post_up_event()
|
| /bsp/stm32/stm32h7s7-st-disco/applications/lvgl/ |
| A D | lv_port_indev.c | 23 static rt_device_t ts; /* Touch device handle, Touchscreen */ variable 31 if (RT_EOK == rt_device_read(ts, 0, read_data, 1)) /* return RT_EOK is a bug (ft6236) */ in touchpad_is_pressed() 76 ts = rt_device_find(TOUCH_DEVICE_NAME); in rt_hw_ft6236_register() 77 if (!ts) { in rt_hw_ft6236_register() 86 if (!rt_device_open(ts, RT_DEVICE_FLAG_RDONLY)) { in rt_hw_ft6236_register() 88 rt_device_control(ts, RT_TOUCH_CTRL_GET_INFO, &info); in rt_hw_ft6236_register()
|
| /bsp/stm32/stm32h750-artpi/applications/lvgl/ |
| A D | lv_port_indev.c | 23 static rt_device_t ts; /* Touch device handle, Touchscreen */ variable 31 if (RT_EOK == rt_device_read(ts, 0, read_data, 1)) /* return RT_EOK is a bug (ft6236) */ in touchpad_is_pressed() 76 ts = rt_device_find(TOUCH_DEVICE_NAME); in rt_hw_ft6236_register() 77 if (!ts) { in rt_hw_ft6236_register() 86 if (!rt_device_open(ts, RT_DEVICE_FLAG_RDONLY)) { in rt_hw_ft6236_register() 88 rt_device_control(ts, RT_TOUCH_CTRL_GET_INFO, &info); in rt_hw_ft6236_register()
|
| /bsp/stm32/stm32f407-atk-explorer/board/ports/touch/ |
| A D | drv_touch.c | 43 static void post_down_event(rt_uint16_t x, rt_uint16_t y, rt_tick_t ts) in post_down_event() argument 54 emouse.ts = rt_tick_get(); in post_down_event() 55 emouse.id = ts; in post_down_event() 65 static void post_motion_event(rt_uint16_t x, rt_uint16_t y, rt_tick_t ts) in post_motion_event() argument 76 emouse.ts = rt_tick_get(); in post_motion_event() 77 emouse.id = ts; in post_motion_event() 86 static void post_up_event(rt_uint16_t x, rt_uint16_t y, rt_tick_t ts) in post_up_event() argument 97 emouse.ts = rt_tick_get(); in post_up_event() 98 emouse.id = ts; in post_up_event()
|
| /bsp/nuvoton/libraries/nu_packages/ILI_TPC/ |
| A D | ili.c | 388 struct ili_ts_data *ts = (ili_ts_data_t)touch; in ili_read_point() local 401 error = ili_i2c_write_and_read(ts->client, NULL, 0, 0, tmpbuf, 64); in ili_read_point() 409 if (touch_num > ts->max_tp) in ili_read_point() 411 LOG_E("FW report max point:%d > panel info. max:%d\n", touch_num, ts->max_tp); in ili_read_point() 418 error = ili_i2c_write_and_read(ts->client, NULL, 0, 0, tmpbuf + i * 64, 64); in ili_read_point() 465 if (x > ts->screen_max_x || x < ts->screen_min_x || in ili_read_point() 466 y > ts->screen_max_y || y < ts->screen_min_y) in ili_read_point() 469 ts->screen_min_x, x, ts->screen_max_x, in ili_read_point() 470 ts->screen_min_y, y, ts->screen_max_y); in ili_read_point() 473 x = (uint16_t)(range_x * x / ts->screen_max_x); in ili_read_point() [all …]
|
| /bsp/nuvoton/libraries/nu_packages/TPC/ |
| A D | ili.c | 390 struct ili_ts_data *ts = (ili_ts_data_t)touch; in ili_read_point() local 405 error = ili_i2c_write_and_read(ts->client, NULL, 0, 0, tmpbuf, 64); in ili_read_point() 413 if (touch_num > ts->max_tp) in ili_read_point() 415 LOG_E("FW report max point:%d > panel info. max:%d\n", touch_num, ts->max_tp); in ili_read_point() 422 error = ili_i2c_write_and_read(ts->client, NULL, 0, 0, tmpbuf + i * 64, 64); in ili_read_point() 471 if (x > ts->screen_max_x || x < ts->screen_min_x || in ili_read_point() 472 y > ts->screen_max_y || y < ts->screen_min_y) in ili_read_point() 475 ts->screen_min_x, x, ts->screen_max_x, in ili_read_point() 476 ts->screen_min_y, y, ts->screen_max_y); in ili_read_point() 479 x = (uint16_t)(range_x * x / ts->screen_max_x); in ili_read_point() [all …]
|
| /bsp/nxp/mcx/mcxn/Libraries/drivers/ |
| A D | drv_rtc.c | 36 static rt_err_t mcx_rtc_get_time(time_t *ts) in mcx_rtc_get_time() argument 52 *ts = timegm(&tm_new); in mcx_rtc_get_time() 57 static rt_err_t mcx_rtc_set_time(time_t *ts) in mcx_rtc_set_time() argument 62 gmtime_r(ts, &now); in mcx_rtc_set_time()
|
| /bsp/wch/arm/ch579m/libraries/StdPeriphDriver/inc/ |
| A D | CH57x_timer.h | 74 void TMR0_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ); /* PWM 输出初始化 */ 106 void TMR1_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ); /* PWM1 输出初始化 */ 139 void TMR2_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ); /* PWM2 输出初始化 */ 172 void TMR3_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ); /* PWM3 输出初始化 */
|
| /bsp/wch/arm/ch579m/libraries/StdPeriphDriver/ |
| A D | CH57x_timer0.c | 67 void TMR0_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ) in TMR0_PWMInit() argument 73 |(ts<<6); in TMR0_PWMInit()
|
| A D | CH57x_timer3.c | 67 void TMR3_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ) in TMR3_PWMInit() argument 73 |(ts<<6); in TMR3_PWMInit()
|
| A D | CH57x_timer1.c | 67 void TMR1_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ) in TMR1_PWMInit() argument 73 |(ts<<6); in TMR1_PWMInit()
|
| A D | CH57x_timer2.c | 67 void TMR2_PWMInit( PWMX_PolarTypeDef pr, PWM_RepeatTsTypeDef ts ) in TMR2_PWMInit() argument 73 |(ts<<6); in TMR2_PWMInit()
|
| /bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/ |
| A D | drv_ft5406.c | 198 emouse.ts = rt_tick_get(); in _touch_session() 199 emouse.id = emouse.ts; in _touch_session() 214 emouse.ts = rt_tick_get(); in _touch_session() 226 emouse.ts = rt_tick_get(); in _touch_session()
|
| /bsp/allwinner/libraries/libos/src/ |
| A D | os.c | 398 int do_gettimeofday(struct timespec64 *ts) in do_gettimeofday() argument 400 if (ts) in do_gettimeofday() 402 ts->tv_sec = rt_tick_get() / RT_TICK_PER_SECOND; in do_gettimeofday() 403 ts->tv_nsec = (rt_tick_get() % RT_TICK_PER_SECOND) * (1000000000 / RT_TICK_PER_SECOND); in do_gettimeofday()
|
| /bsp/loongson/ls1cdev/drivers/ |
| A D | drv_touch.c | 54 emouse.ts = rt_tick_get(); in post_down_event() 89 emouse.ts = rt_tick_get(); in post_motion_event() 111 emouse.ts = rt_tick_get(); in post_up_event()
|
| /bsp/allwinner/libraries/libos/include/ |
| A D | ktimer.h | 11 int do_gettimeofday(struct timespec64 *ts);
|
| /bsp/qemu-vexpress-a9/drivers/ |
| A D | drv_mouse.c | 131 emouse.ts = rt_tick_get(); in push_event_touch_move() 157 emouse.ts = rt_tick_get(); in push_event_touch_begin() 181 emouse.ts = rt_tick_get(); in push_event_touch_end()
|
| /bsp/nuvoton/libraries/m460/rtt_port/emac/ |
| A D | synopGMAC_network_interface.h | 45 …pGMAC_xmit_frames(synopGMACdevice *gmacdev, u8 *pkt_data, u32 pkt_len, u32 offload_needed, u32 ts);
|
| A D | synopGMAC_network_interface.c | 351 …opGMAC_xmit_frames(synopGMACdevice *gmacdev, u8 *pkt_data, u32 pkt_len, u32 offload_needed, u32 ts) in synopGMAC_xmit_frames() argument 357 status = synopGMAC_set_tx_qptr(gmacdev, dma_addr, pkt_len, dma_addr, offload_needed, ts); in synopGMAC_xmit_frames()
|
| /bsp/nuvoton/libraries/ma35/rtt_port/gmac/ |
| A D | synopGMAC_network_interface.h | 47 …pGMAC_xmit_frames(synopGMACdevice *gmacdev, u8 *pkt_data, u32 pkt_len, u32 offload_needed, u32 ts);
|
| A D | synopGMAC_network_interface.c | 351 …opGMAC_xmit_frames(synopGMACdevice *gmacdev, u8 *pkt_data, u32 pkt_len, u32 offload_needed, u32 ts) in synopGMAC_xmit_frames() argument 357 status = synopGMAC_set_tx_qptr(gmacdev, dma_addr, pkt_len, dma_addr, offload_needed, ts); in synopGMAC_xmit_frames()
|
| /bsp/simulator/drivers/ |
| A D | sdl_fb.c | 315 emouse.ts = rt_tick_get(); 358 emouse.ts = rt_tick_get();
|