@ -215,8 +215,6 @@ extern "C" {
@@ -215,8 +215,6 @@ extern "C" {
* @ note A declaration for the corresponding device must be in scope ;
* e . g :
*
* @ code DEVICE_DT_DECLARE ( node_id ) ; @ endcode
*
* @ param node_id The same as node_id provided to DEVICE_DT_DEFINE ( )
*
* @ return A pointer to the device object created by DEVICE_DT_DEFINE ( )
@ -232,42 +230,6 @@ extern "C" {
@@ -232,42 +230,6 @@ extern "C" {
*/
# define DEVICE_DT_INST_GET(inst) DEVICE_DT_GET(DT_DRV_INST(inst))
/** @def DEVICE_DT_DECLARE
*
* @ brief Declare a device object associated with @ p node_id
*
* This macro can be used in source files to get a reference to the
* device structure corresponding to a devicetree node .
*
* Within driver implementation files it is used to declare a device so
* that DEVICE_DT_GET ( ) may be used before the full declaration in
* DEVICE_DT_DEFINE ( ) .
*
* This is often useful when configuring interrupts statically in a
* device ' s init or per - instance config function , as the init function
* itself is required by DEVICE_DT_DEFINE ( ) and use of DEVICE_DT_GET ( )
* inside it creates a circular dependency .
*
* It can also be used in unrelated modules to store the pointer to a
* device without having to look it up at runtime through
* device_get_binding ( ) .
*
* Note that the device declaration has no storage class specifiers .
*
* @ param node_id The same as node_id provided to DEVICE_DT_DEFINE ( )
*/
# define DEVICE_DT_DECLARE(node_id) \
extern const struct device DEVICE_DT_NAME_GET ( node_id )
/** @def DEVICE_DT_INST_DECLARE
*
* @ brief Declare a device object associated for an instance of a
* DT_DRV_COMPAT compatible
*
* @ param inst instance number
*/
# define DEVICE_DT_INST_DECLARE(inst) DEVICE_DT_DECLARE(DT_DRV_INST(inst))
/**
* @ def DEVICE_GET
*
@ -767,7 +729,7 @@ static inline int device_pm_put_sync(const struct device *dev) { return -ENOTSUP
@@ -767,7 +729,7 @@ static inline int device_pm_put_sync(const struct device *dev) { return -ENOTSUP
}
# endif
/* device_extern is generated base on devicetree nodes */
/* device_extern is generated based on devicetree nodes */
# include <device_extern.h>
# include <syscalls/device.h>