zephyr/include
Daniel Leung ce2e4ebdf1 device: add macro to assign driver_api at compile time
This adds the DEVICE_AND_API_INIT() macro to take in a parameter
to assign to device->driver_api. This eliminates the need to
assign to driver_api during runtime device initialization.

This provides an alternative way to declare devices. This should
save a few bytes in ROM for those devices that will never fail
initialization (in other words, never need to manipulate
driver_api pointer at all).

Also clean up the documentation a bit to remove duplicated
block of information.

Change-Id: I6abed1abe75db2e8babfcf1ecf590491132a5543
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-04-15 22:06:09 +00:00
..
arch arm: linker: fix indentation 2016-04-01 13:12:58 +00:00
bluetooth Bluetooth: Add support for confirming incoming JustWorks pairing 2016-04-14 15:20:03 +00:00
display
drivers ieee802154: Replace the CC2520 driver with a new implementation 2016-04-07 17:25:02 +00:00
microkernel microkernel: deprecate task IRQs 2016-04-15 16:02:12 +00:00
misc
net
toolchain
adc.h
aio_comparator.h
atomic.h
cache.h
clock_control.h
counter.h doc: counter should be under device driver 2016-04-15 18:42:17 +00:00
device.h device: add macro to assign driver_api at compile time 2016-04-15 22:06:09 +00:00
flash.h
gpio.h
i2c.h
init.h
ipm.h
irq_offload.h
irq.h nanokernel: deprecate dynamic IRQs 2016-04-15 16:02:12 +00:00
kernel_version.h
linker-defs.h
linker-tool-gcc.h
linker-tool.h
microkernel.h
nanokernel.h nano_fifo: Fix problem with nano_fifo and timeouts 2016-04-12 01:22:42 +00:00
pinmux.h
power.h
pwm.h
rtc.h
section_tags.h
sections.h
sensor.h sensor.h: Add helper functions for unit conversions 2016-04-02 23:08:48 +00:00
shared_irq.h
spi.h
sw_isr_table.h
sys_clock.h sys_clock: Add a helper to compute micro seconds 2016-04-07 16:51:07 +00:00
sys_io.h
toolchain.h
uart.h serial/uart.h: no need to check driver_api being NULL 2016-04-12 19:30:35 +08:00
watchdog.h
zephyr.h