zephyr/include
Andrew Boie 14308a9621 device: add DEVICE_DECLARE()
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>
2016-02-08 21:45:07 -05:00
..
arch irq: rename irq_connect() to IRQ_CONNECT() 2016-02-05 20:25:25 -05:00
bluetooth Bluetooth: Add API to update LE connection parameters 2016-02-05 20:25:33 -05:00
display c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
drivers cc2520: Reworking radio on and transmission logic 2016-02-05 20:25:23 -05:00
microkernel c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
misc c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
net net: Stack analyze function fixed 2016-02-05 20:25:32 -05:00
toolchain toolchain: check if both __aligned and __packed are defined 2016-02-05 20:25:31 -05:00
adc.h adc: updated the adc read api description 2016-02-05 20:25:25 -05:00
aio_comparator.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
atomic.h
cache.h cache: add implementation for cache-less systems 2016-02-05 20:25:24 -05:00
clock_control.h
device.h device: add DEVICE_DECLARE() 2016-02-08 21:45:07 -05:00
gpio.h gpio: allow pins to be enabled/disabled 2016-02-05 20:25:29 -05:00
i2c.h
init.h init: add SYS_INIT() 2016-02-05 20:25:25 -05:00
ipm.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
irq_offload.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
kernel_version.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
linker-defs.h
linker-tool-gcc.h
linker-tool.h
microkernel.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
nanokernel.h build: Add C++ support 2016-02-05 20:25:23 -05:00
pinmux.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
pwm.h
rtc.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
section_tags.h
sections.h
shared_irq.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
spi.h
sw_isr_table.h irq: fix declared _sw_isr_table size on ARC 2016-02-05 20:25:25 -05:00
sys_clock.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
sys_io.h
toolchain.h
uart.h uart: remove incorrect comment w.r.t. type of device pointer 2016-02-05 20:25:23 -05:00
watchdog.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
zephyr.h