zephyr/include/misc
Tomasz Bursztyka 8017b64dcf util: Add some helper to move integers to pointer and vice-versa
This will be useful when an implementation of a generic API requires an
int as user data when such has been defined to be a pointer.

int do_something(struct device *dev, void *user_data);

When the implementation would:

int impl_do_something(struct device *dev, void *user_data)
{
        int identifier = POINTER_TO_INT(user_data);
	...

Change-Id: Ic892927a03ac49e95527ef8e0e817d00256aa3bb
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2016-02-05 20:24:17 -05:00
..
__assert.h
byteorder.h
dlist.h
event_logger.h profiler: use new ring buffer data structure 2016-02-05 20:15:34 -05:00
lists_c.h
lists.h
printk.h
profiler.h profiler: use new ring buffer data structure 2016-02-05 20:15:34 -05:00
ring_buffer.h
util.h util: Add some helper to move integers to pointer and vice-versa 2016-02-05 20:24:17 -05:00