mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-08 03:52:30 +00:00
If an init or config function needs to configure a static interrupt or otherwise do something that requires a build time reference to a device with DEVICE_GET(), there is a dependency issue that so far is usually resolved with a forward prototype of the init function. In addition, there currently isn't a good way to declare a device in a header so that DEVICE_GET() can be used in a different C file. This patch should resolve both of these problems; the data structure defined for the device is no longer static (the names have to be unique anyway), and in cases where we need a forward declaration so that DEVICE_GET() can be used, we have a new DEVICE_DECLARE() macro which does this. Change-Id: Ie8d53d0c344f61a130c735c86473562820190d70 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
---|---|---|
.. | ||
arch | ||
bluetooth | ||
display | ||
drivers | ||
microkernel | ||
misc | ||
net | ||
toolchain | ||
adc.h | ||
aio_comparator.h | ||
atomic.h | ||
cache.h | ||
clock_control.h | ||
device.h | ||
gpio.h | ||
i2c.h | ||
init.h | ||
ipm.h | ||
irq_offload.h | ||
kernel_version.h | ||
linker-defs.h | ||
linker-tool-gcc.h | ||
linker-tool.h | ||
microkernel.h | ||
nanokernel.h | ||
pinmux.h | ||
pwm.h | ||
rtc.h | ||
section_tags.h | ||
sections.h | ||
shared_irq.h | ||
spi.h | ||
sw_isr_table.h | ||
sys_clock.h | ||
sys_io.h | ||
toolchain.h | ||
uart.h | ||
watchdog.h | ||
zephyr.h |