mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 03:41:56 +00:00
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> |
||
---|---|---|
.. | ||
arch | ||
bluetooth | ||
display | ||
drivers | ||
microkernel | ||
misc | ||
net | ||
toolchain | ||
adc.h | ||
aio_comparator.h | ||
atomic.h | ||
cache.h | ||
clock_control.h | ||
counter.h | ||
device.h | ||
flash.h | ||
gpio.h | ||
i2c.h | ||
init.h | ||
ipm.h | ||
irq_offload.h | ||
irq.h | ||
kernel_version.h | ||
linker-defs.h | ||
linker-tool-gcc.h | ||
linker-tool.h | ||
microkernel.h | ||
nanokernel.h | ||
pinmux.h | ||
power.h | ||
pwm.h | ||
rtc.h | ||
section_tags.h | ||
sections.h | ||
sensor.h | ||
shared_irq.h | ||
spi.h | ||
sw_isr_table.h | ||
sys_clock.h | ||
sys_io.h | ||
toolchain.h | ||
uart.h | ||
watchdog.h | ||
zephyr.h |