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 doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
byteorder.h byteorder: Add macros for 32bits values 2016-02-05 20:13:49 -05:00
dlist.h doxygen: change comment style to match javadoc 2016-02-05 20:14:32 -05:00
event_logger.h profiler: use new ring buffer data structure 2016-02-05 20:15:34 -05:00
lists.h Rename microkernel struct field 'Tail' to 'tail'. 2016-02-05 20:15:30 -05:00
lists_c.h Rename microkernel struct field 'Tail' to 'tail'. 2016-02-05 20:15:30 -05:00
printk.h printk.h: don't break if CONFIG_PRINTK undefined 2016-02-05 20:14:45 -05:00
profiler.h profiler: use new ring buffer data structure 2016-02-05 20:15:34 -05:00
ring_buffer.h nanokernel: add optional ring buffer data type 2016-02-05 20:15:34 -05:00
util.h util: Add some helper to move integers to pointer and vice-versa 2016-02-05 20:24:17 -05:00