Create Zephyr workspace app
Build / Build app and tests (ubuntu-22.04) (push) Failing after 1m22s
Documentation / Build (1.14.0) (push) Failing after 22s
Documentation / Build (1.9.6) (push) Failing after 12s
Documentation / Deploy (push) Has been skipped
Build / Build app and tests (macos-14) (push) Has been cancelled
Build / Build app and tests (windows-2022) (push) Has been cancelled

This commit is contained in:
2026-04-21 17:13:01 -07:00
commit b69d3363f1
63 changed files with 4433 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2021, Legrand North America, LLC.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef APP_LIB_CUSTOM_H_
#define APP_LIB_CUSTOM_H_
/**
* @defgroup lib_custom Custom library
* @ingroup lib
* @{
*
* @brief 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.
*/
/**
* @brief Return @p 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.
*
* @param val Value to return if non-zero
*
* @retval val if @p val is non-zero
* @retval CONFIG_CUSTOM_GET_VALUE_DEFAULT if @p val is zero
*/
int custom_get_value(int val);
/** @} */
#endif /* APP_LIB_CUSTOM_H_ */