move things around
Some checks failed
Build / build (ubuntu-22.04) (push) Failing after 2m20s
Documentation / build (push) Failing after -1m2s

This commit is contained in:
2025-05-31 00:01:48 -06:00
parent 321fadf77e
commit 3134dc52e4
69 changed files with 0 additions and 201 deletions

View File

@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
add_subdirectory_ifdef(CONFIG_CUSTOM custom)

8
firmware/lib/Kconfig Normal file
View File

@ -0,0 +1,8 @@
# Copyright (c) 2021 Legrand North America, LLC.
# SPDX-License-Identifier: Apache-2.0
menu "Custom libraries"
rsource "custom/Kconfig"
endmenu

View File

@ -0,0 +1,5 @@
# Copyright (c) 2021, Legrand North America, LLC.
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(custom.c)

View File

@ -0,0 +1,19 @@
# Copyright (c) 2021, Legrand North America, LLC.
# SPDX-License-Identifier: Apache-2.0
config CUSTOM
bool "Support for custom library"
help
This option enables the 'custom' library
config CUSTOM_GET_VALUE_DEFAULT
int "custom_get_value() default return value"
depends on CUSTOM
default 0
help
This option primarily exists as an example of a library Kconfig
setting.
This option specifies the value for custom_get_value() to return
when the input parameter is zero. (Otherwise the function returns the
input parameter value.)

View File

@ -0,0 +1,12 @@
/*
* Copyright (c) 2021, Legrand North America, LLC.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <app/lib/custom.h>
int custom_get_value(int val)
{
return (val != 0) ? val : CONFIG_CUSTOM_GET_VALUE_DEFAULT;
}