Hello Community / Nordic
How can I have a boolean property in my mp2723 device driver devicetree dts or overlay.
I am using NCS v2.2.0 in MS Windows 11 with VSCode 1.17.2
Zephyr says:
Get a devicetree property value.
For properties whose bindings have the following types, this macro expands to:
- string: a string literal
- boolean: 0 if the property is false, or 1 if it is true
- int: the property's value as an integer literal
- array, uint8-array, string-array: an initializer expression in braces, whose elements are integer or string literals (like {0, 1, 2}, {"hello", "world"}, etc.)
- phandle: a node identifier for the node with that phandle
my mp,mp2723.yaml file:
the boolean property
NTC_type: type: boolean required: false description: Select standard (false) and JEITA (true) battery temperature monitoring (in false|true)
I did try the following (but each time I got a compiler error)
NTCtype = false;
NTCtype = "false";
NTCtype = <0>;
Any advise or tips on how to handle the boolean property for the custom device driver
and/or the correct format is most welcome.