Re: How does Zephyr brings dts, kernel, driver & user app together?
Erwan Gouriou
Hi Stefan, To generate #define's from dt, you need to provide the matching yaml binding to indicate how fields should be decided, this should be done under dts/bindings/... Generated #define's will be available in build directory, under zephyr/include/generated/generated_... You should be able to use them as you wish. To make your driver somewhat generic (ie not depending on the node address, you'll need to provide intermediate #define in dts_fixup.h file (under soc/ or board/). For more information, you can check in various drivers how DT_xxxx constants are used Cheers Erwan
Le ven. 4 janv. 2019 à 17:30, Stefan Jaritz <stefan@...> a écrit : Hej,
|
|