MCPcopy Create free account
hub / github.com/apache/nuttx / sim_tsc_uninitialize

Function sim_tsc_uninitialize

arch/sim/src/sim/sim_touchscreen.c:153–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 ****************************************************************************/
152
153int sim_tsc_uninitialize(void)
154{
155 struct sim_dev_s *priv = (struct sim_dev_s *)&g_simtouchscreen;
156 char devname[DEV_NAMELEN];
157
158 /* Stop the event loop (Hmm.. the caller must be sure that there are no
159 * open references to the touchscreen driver. This might better be
160 * done in close() using a reference count).
161 */
162
163 priv->eventloop = 0;
164
165 /* Un-register the device */
166
167 snprintf(devname, sizeof(devname), DEV_FORMAT, priv->minor);
168 iinfo("Un-registering %s\n", devname);
169
170 touch_unregister(&priv->lower, devname);
171
172 return OK;
173}
174
175/****************************************************************************
176 * Name: sim_buttonevent

Callers

nothing calls this directly

Calls 2

touch_unregisterFunction · 0.85
snprintfFunction · 0.50

Tested by

no test coverage detected