How To Write A Driver For Accelerometer LIS3DSH In Zephyr?
The Zephyr device model provides a consistent device model for configuring the drivers that are part of a system. The device model is responsible for initializing all the drivers configured into the system. In this model, the driver fills in the pointer to the structure containing the function pointers to its API functions during driver initialization. These structures are placed into the RAM section in initialization level order. These specific device Driver initialization APIs such as Device_Define() and Device_Declare() are intended to declare instances of device and not to be used in application side code.
The device initialization macros populate some data structures at build time which are split into read-only and runtime-mutable parts.

Comments
Post a Comment