- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.2k
doc: dts: update howtos with new API #31128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing. Thanks for this.
        
          
                doc/guides/dts/howtos.rst
              
                Outdated
          
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Notice the use of APIs like :c:func:`DT_INST_PROP` and | |
| Notice the use of APIs like :c:func:`DT_PROP` and | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done; you're welcome.
6eb50f9    to
    1c42187      
    Compare
  
    Document the use of DEVICE_DT_GET() to fetch device pointers at compile time, and update the documentation on defining device instances to use the devicetree macros. Signed-off-by: Peter Bigot <[email protected]>
1c42187    to
    2b4adcd      
    Compare
  
    | @mbolivar-nordic any plans to introduce a helper for DT that does the DEVICE_DT_GET & device_is_ready together similar to device_get_binding? | 
| 
 None from me. The existing APIs are good enough for what I need. | 
Document the use of DEVICE_DT_GET() to fetch device pointers at
compile time, and update the documentation on defining device
instances to use the devicetree macros.
Signed-off-by: Peter Bigot [email protected]