|
Example Application 1.0.0
A Zephyr-based example application
|
An example of a custom out-of-tree library. More...
Functions | |
| int | custom_get_value (int val) |
Return val if non-zero, or Kconfig-controlled default. | |
An example of a custom out-of-tree library.
This library illustrates how create custom out-of-tree libraries. Splitting code in libraries enables code reuse and modularity, also easing testing.
| int custom_get_value | ( | int | val | ) |
Return val if non-zero, or Kconfig-controlled default.
Function returns the provided value if non-zero, or a Kconfig-controlled default value if the parameter is zero. This trivial function is provided in order to have a library interface example that is trivial to test.
| val | Value to return if non-zero |
| val | if val is non-zero |
| CONFIG_CUSTOM_GET_VALUE_DEFAULT | if val is zero |