Replies: 2 comments
-
Literally That's how you get the "label" property of a node. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@yashi After inspection of devicetree.h, I see that you're right. The only difference related to v3.1.0 is that it is now explicitly marked as deprecated macro. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried to 'restore' the v3.1.0 console view of adc label followed by channel index (instead of the new adc register address with channel index).
In the docs it is stated:
Well, what exactly should I insert where the four asterisks are? - precisely in this fragment of sample/driver/adc/main.c (which I'm taking from v3.1.0 - I already replaced DT_LABEL by DT_PROP):
This macro&code snippet is prepended by the following snippet that constructs an array with channel id's:
Beta Was this translation helpful? Give feedback.
All reactions