forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move various utilities out of lib into own folder for better assignement and management in the maintainer file. lib/os has become another dumping ground for everything and it the Kconfig and contents in that folder became difficult to manage, configure and test. Signed-off-by: Anas Nashif <[email protected]>
- Loading branch information
1 parent
e710c9c
commit 0b999c0
Showing
24 changed files
with
112 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_sources_ifdef(CONFIG_BASE64 base64.c) | ||
|
||
zephyr_sources( | ||
dec.c | ||
hex.c | ||
rb.c | ||
timeutil.c | ||
bitarray.c | ||
) | ||
|
||
zephyr_sources_ifdef(CONFIG_ONOFF onoff.c) | ||
zephyr_sources_ifdef(CONFIG_NOTIFY notify.c) | ||
|
||
zephyr_sources_ifdef(CONFIG_JSON_LIBRARY json.c) | ||
|
||
zephyr_sources_ifdef(CONFIG_RING_BUFFER ring_buffer.c) | ||
|
||
zephyr_sources_ifdef(CONFIG_UTF8 utf8.c) | ||
|
||
zephyr_sources_ifdef(CONFIG_WINSTREAM winstream.c) | ||
|
||
zephyr_library_include_directories( | ||
${ZEPHYR_BASE}/kernel/include | ||
${ZEPHYR_BASE}/arch/${ARCH}/include | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright (c) 2016 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menu "Utility Library" | ||
|
||
config JSON_LIBRARY | ||
bool "Build JSON library" | ||
help | ||
Build a minimal JSON parsing/encoding library. Used by sample | ||
applications such as the NATS client. | ||
|
||
config RING_BUFFER | ||
bool "Ring buffers" | ||
help | ||
Enable usage of ring buffers. This is similar to kernel FIFOs but ring | ||
buffers manage their own buffer memory and can store arbitrary data. | ||
For optimal performance, use buffer sizes that are a power of 2. | ||
|
||
config NOTIFY | ||
bool "Asynchronous Notifications" | ||
help | ||
Use this API to support async transactions. | ||
|
||
config BASE64 | ||
bool "Base64 encoding and decoding" | ||
help | ||
Enable base64 encoding and decoding functionality | ||
|
||
config ONOFF | ||
bool "On-Off Manager" | ||
select NOTIFY | ||
help | ||
An on-off manager supports an arbitrary number of clients of a | ||
service which has a binary state. Example applications are power | ||
rails, clocks, and binary device power management. | ||
|
||
config WINSTREAM | ||
bool "Lockless shared memory window byte stream" | ||
help | ||
Winstream is a byte stream IPC for use in shared memory | ||
"windows", generally for transmit to non-Zephyr contexts that | ||
can't share Zephyr APIs or data structures. | ||
|
||
if WINSTREAM | ||
config WINSTREAM_STDLIB_MEMCOPY | ||
bool "Use standard memcpy() in winstream" | ||
help | ||
The sys_winstream utility is sometimes used in early boot | ||
environments before the standard library is usable. By | ||
default it uses a simple internal bytewise memcpy(). Set | ||
this to use the one from the standard library. | ||
endif | ||
|
||
config UTF8 | ||
bool "UTF-8 string operation supported" | ||
help | ||
Enable the utf8 API. The API implements functions to specifically | ||
handle UTF-8 encoded strings. | ||
|
||
endmenu |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters