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

Function post_event

bsp/raspberry-pi/raspi4-64/drivers/drv_dsi_touch.c:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69struct drv_mouse_device _mouse;
70
71static void post_event(rt_uint16_t x, rt_uint16_t y, rt_uint8_t event)
72{
73 struct rt_touch_data *minfo = &_mouse.touchdata;
74 struct rt_channel_msg ch_msg;
75
76 LOG_D("event:%d, x:%d, y:%d\n", event, x, y);
77
78 minfo->x_coordinate = x;
79 minfo->y_coordinate = y;
80 minfo->event = event;
81 ch_msg.type = RT_CHANNEL_RAW;
82 ch_msg.u.d = (void *)(size_t)event;
83 rt_channel_send(_mouse.channel, &ch_msg);
84}
85
86static void dsi_touch_thread_entry(void *param)
87{

Callers 1

dsi_touch_thread_entryFunction · 0.85

Calls 1

rt_channel_sendFunction · 0.85

Tested by

no test coverage detected