text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```objective-c /* * */ #ifndef __FSL_OS_ABSTRACTION__ #define __FSL_OS_ABSTRACTION__ #include <zephyr/irq.h> /* enter critical macros */ #define OSA_SR_ALLOC() int osa_current_sr #define OSA_ENTER_CRITICAL() osa_current_sr = irq_lock() #define OSA_EXIT_CRITICAL() irq_unlock(osa_current_sr) #endif /* __FSL_OS_ABST...
/content/code_sandbox/modules/hal_nxp/fsl_os_abstraction.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
89
```c ```
/content/code_sandbox/misc/empty_file.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1
```unknown /* */ /* file is auto-generated, do not modify ! */ #include <zephyr/toolchain.h> GEN_ABS_SYM_BEGIN (_ConfigAbsSyms) @GEN_ABS_SYM_LIST@ GEN_ABS_SYM_END ```
/content/code_sandbox/misc/generated/configs.c.in
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```objective-c /* * */ #ifndef __USB_DEVICE_CONFIG_H__ #define __USB_DEVICE_CONFIG_H__ #include <zephyr/devicetree.h> #include "usb.h" /****************************************************************************** * Definitions *****************************************************************************/ #ifde...
/content/code_sandbox/modules/hal_nxp/usb/usb_device_config.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
827
```objective-c /* kernel version support */ /* * */ #ifndef ZEPHYR_INCLUDE_KERNEL_VERSION_H_ #define ZEPHYR_INCLUDE_KERNEL_VERSION_H_ #ifdef __cplusplus extern "C" { #endif /** * @defgroup version_apis Version APIs * @ingroup kernel_apis * @{ * * The kernel version has been converted from a string to a four-...
/content/code_sandbox/include/zephyr/kernel_version.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
312
```objective-c /* shared_irq - Shared interrupt driver */ /* * */ #ifndef ZEPHYR_INCLUDE_SHARED_IRQ_H_ #define ZEPHYR_INCLUDE_SHARED_IRQ_H_ #include <zephyr/device.h> #ifdef __cplusplus extern "C" { #endif typedef int (*isr_t)(const struct device *dev, unsigned int irq_number); /* driver API definition */ typed...
/content/code_sandbox/include/zephyr/shared_irq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
518
```objective-c /* * */ /** * @file * * @brief Header files included by kernel.h. */ #ifndef ZEPHYR_INCLUDE_KERNEL_INCLUDES_H_ #define ZEPHYR_INCLUDE_KERNEL_INCLUDES_H_ #ifndef ZEPHYR_INCLUDE_KERNEL_H_ #error Please do not include kernel-specific headers directly, use <zephyr/kernel.h> instead #endif #include...
/content/code_sandbox/include/zephyr/kernel_includes.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
360
```objective-c /* * */ /** * @file * @brief Variables needed for system clock * * * Declare variables used by both system timer device driver and kernel * components that use timer functionality. */ #ifndef ZEPHYR_INCLUDE_SYS_CLOCK_H_ #define ZEPHYR_INCLUDE_SYS_CLOCK_H_ #include <zephyr/sys/util.h> #include...
/content/code_sandbox/include/zephyr/sys_clock.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,433
```objective-c /* * */ /** * @file * @brief Macros to abstract toolchain specific capabilities * * This file contains various macros to abstract compiler capabilities that * utilize toolchain specific attributes and/or pragmas. */ #ifndef ZEPHYR_INCLUDE_TOOLCHAIN_H_ #define ZEPHYR_INCLUDE_TOOLCHAIN_H_ /** *...
/content/code_sandbox/include/zephyr/toolchain.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,278
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ZEPHYR_BINDESC_H_ #define ZEPHYR_INCLUDE_ZEPHYR_BINDESC_H_ #include <zephyr/sys/util_macro.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* * Corresponds to the definitions in scripts/west_commands/bindesc.py. * Do not change without syncing the defini...
/content/code_sandbox/include/zephyr/bindesc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,002
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_CACHE_H_ #define ZEPHYR_INCLUDE_CACHE_H_ /** * @file * @brief cache API interface */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/debug/sparse.h> #ifdef __cplusplus extern "C" { #endif #if defined(CONFIG_EXTERNAL_CACHE) #include <zephyr...
/content/code_sandbox/include/zephyr/cache.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,582
```objective-c /* * */ /** @file * @brief Fatal error functions */ #ifndef ZEPHYR_INCLUDE_FATAL_H #define ZEPHYR_INCLUDE_FATAL_H #include <zephyr/arch/cpu.h> #include <zephyr/arch/exception.h> #include <zephyr/toolchain.h> #include <zephyr/fatal_types.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup...
/content/code_sandbox/include/zephyr/fatal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
625
```objective-c /* * */ /** * @file * @brief Public interface for configuring interrupts */ #ifndef ZEPHYR_INCLUDE_IRQ_H_ #define ZEPHYR_INCLUDE_IRQ_H_ /* Pull in the arch-specific implementations */ #include <zephyr/arch/cpu.h> #ifndef _ASMLANGUAGE #include <zephyr/toolchain.h> #include <zephyr/types.h> #ifdef...
/content/code_sandbox/include/zephyr/irq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,440
```objective-c /* * */ /** * @file * @brief Public interface for spinlocks */ #ifndef ZEPHYR_INCLUDE_SPINLOCK_H_ #define ZEPHYR_INCLUDE_SPINLOCK_H_ #include <errno.h> #include <stdbool.h> #include <zephyr/arch/cpu.h> #include <zephyr/sys/atomic.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/time_unit...
/content/code_sandbox/include/zephyr/spinlock.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,387
```objective-c /* * */ /* * The purpose of this file is to provide essential/minimal kernel structure * definitions, so that they can be used without including kernel.h. * * The following rules must be observed: * 1. kernel_structs.h shall not depend on kernel.h both directly and * indirectly (i.e. it shal...
/content/code_sandbox/include/zephyr/kernel_structs.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,023
```objective-c /* * */ /** * @file * * @brief Public kernel APIs. */ #ifndef ZEPHYR_INCLUDE_KERNEL_H_ #define ZEPHYR_INCLUDE_KERNEL_H_ #if !defined(_ASMLANGUAGE) #include <zephyr/kernel_includes.h> #include <errno.h> #include <limits.h> #include <stdbool.h> #include <zephyr/toolchain.h> #include <zephyr/tracin...
/content/code_sandbox/include/zephyr/kernel.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46,337
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_ #define ZEPHYR_INCLUDE_ZEPHYR_TYPES_H_ #include <stddef.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /* * A type with strong alignment requirements, similar to C11 max_align_t. It can * be used to force alignment of data structures a...
/content/code_sandbox/include/zephyr/types.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
214
```objective-c /* * */ /** * @file * @brief Software-managed ISR table * * Data types for a software-managed ISR table, with a parameter per-ISR. */ #ifndef ZEPHYR_INCLUDE_SW_ISR_TABLE_H_ #define ZEPHYR_INCLUDE_SW_ISR_TABLE_H_ #if !defined(_ASMLANGUAGE) #include <zephyr/device.h> #include <zephyr/sys/iterable...
/content/code_sandbox/include/zephyr/sw_isr_table.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,576
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_DEVICE_H_ #define ZEPHYR_INCLUDE_DEVICE_H_ #include <stdint.h> #include <zephyr/devicetree.h> #include <zephyr/init.h> #include <zephyr/linker/sections.h> #include <zephyr/pm/state.h> #include <zephyr/sys/device_mmio.h> #include <zephyr/sys/iterable_sections.h> #includ...
/content/code_sandbox/include/zephyr/device.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,140
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYSCALL_H_ #define ZEPHYR_INCLUDE_SYSCALL_H_ #include <zephyr/syscall_list.h> #include <zephyr/arch/syscall.h> #include <stdbool.h> #ifndef _ASMLANGUAGE #include <zephyr/types.h> #include <zephyr/linker/sections.h> #ifdef __cplusplus extern "C" { #endif /* * System...
/content/code_sandbox/include/zephyr/syscall.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
913
```objective-c /* * * Not a generated file. Feel free to modify. */ /** * @file * @brief Devicetree main header * * API for accessing the current application's devicetree macros. */ #ifndef DEVICETREE_H #define DEVICETREE_H #include <zephyr/devicetree_generated.h> #include <zephyr/irq_multilevel.h> #if !def...
/content/code_sandbox/include/zephyr/devicetree.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41,970
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_INIT_H_ #define ZEPHYR_INCLUDE_INIT_H_ #include <stdint.h> #include <stddef.h> #include <zephyr/sys/util.h> #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup sys_init System Initialization * @ingroup os_services * * Zephyr offer...
/content/code_sandbox/include/zephyr/init.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,969
```objective-c /* * */ /** * @file * @brief Public interface for configuring interrupts */ #ifndef ZEPHYR_INCLUDE_IRQ_NEXTLEVEL_H_ #define ZEPHYR_INCLUDE_IRQ_NEXTLEVEL_H_ #ifdef __cplusplus extern "C" { #endif #if defined(CONFIG_MULTI_LEVEL_INTERRUPTS) || defined(__DOXYGEN__) /** * @cond INTERNAL_HIDDEN * * ...
/content/code_sandbox/include/zephyr/irq_nextlevel.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
841
```objective-c /* * */ /** * @file * @brief IRQ Offload interface */ #ifndef ZEPHYR_INCLUDE_IRQ_OFFLOAD_H_ #define ZEPHYR_INCLUDE_IRQ_OFFLOAD_H_ #ifdef __cplusplus extern "C" { #endif typedef void (*irq_offload_routine_t)(const void *parameter); /** * @brief Run a function in interrupt context * * This func...
/content/code_sandbox/include/zephyr/irq_offload.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
270
```objective-c /* * */ /** @file * @brief Fatal base type definitions */ #ifndef ZEPHYR_INCLUDE_FATAL_TYPES_H #define ZEPHYR_INCLUDE_FATAL_TYPES_H #ifdef __cplusplus extern "C" { #endif /** * @defgroup fatal_types Fatal error base types * @ingroup fatal_apis * @{ */ enum k_fatal_error_reason { /** Generi...
/content/code_sandbox/include/zephyr/fatal_types.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
188
```objective-c /* * */ /** * @file * @brief Public interface for multi-level interrupts */ #ifndef ZEPHYR_INCLUDE_IRQ_MULTILEVEL_H_ #define ZEPHYR_INCLUDE_IRQ_MULTILEVEL_H_ #ifndef _ASMLANGUAGE #include <zephyr/sys/__assert.h> #include <zephyr/sys/util_macro.h> #include <zephyr/types.h> #ifdef __cplusplus exter...
/content/code_sandbox/include/zephyr/irq_multilevel.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,669
```objective-c /* * */ /** * @file * * @brief State Machine Framework header file */ #ifndef ZEPHYR_INCLUDE_SMF_H_ #define ZEPHYR_INCLUDE_SMF_H_ #include <zephyr/sys/util.h> /** * @brief State Machine Framework API * @defgroup smf State Machine Framework API * @version 0.1.0 * @ingroup os_services * @{ ...
/content/code_sandbox/include/zephyr/smf.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,203
```objective-c /* */ #ifndef INCLUDE_ZEPHYR_SYS_LINEAR_RANGE_H_ #define INCLUDE_ZEPHYR_SYS_LINEAR_RANGE_H_ #include <errno.h> #include <stdint.h> #include <stdlib.h> #include <zephyr/sys/util.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup linear_range Linear Range * @ingroup utilities * * The linea...
/content/code_sandbox/include/zephyr/sys/linear_range.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,357
```objective-c /* * */ /** @file * @brief CRC computation function */ #ifndef ZEPHYR_INCLUDE_SYS_CRC_H_ #define ZEPHYR_INCLUDE_SYS_CRC_H_ #include <zephyr/types.h> #include <stdbool.h> #include <stddef.h> #include <zephyr/sys/__assert.h> #ifdef __cplusplus extern "C" { #endif /* Initial value expected to be us...
/content/code_sandbox/include/zephyr/sys/crc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,718
```objective-c /* * */ /** * @file * @brief Common target reboot functionality * * @details See subsys/os/Kconfig and the reboot help for details. */ #ifndef ZEPHYR_INCLUDE_SYS_REBOOT_H_ #define ZEPHYR_INCLUDE_SYS_REBOOT_H_ #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif #define SYS_REB...
/content/code_sandbox/include/zephyr/sys/reboot.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
189
```objective-c /* * */ /** * @file * @brief Misc utilities * * Misc utilities usable by the kernel and application code. */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_H_ #define ZEPHYR_INCLUDE_SYS_UTIL_H_ #include <zephyr/sys/util_macro.h> #include <zephyr/toolchain.h> /* needs to be outside _ASMLANGUAGE so 'true' and ...
/content/code_sandbox/include/zephyr/sys/util.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,998
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_CBPRINTF_INTERNAL_H_ #define ZEPHYR_INCLUDE_SYS_CBPRINTF_INTERNAL_H_ #include <errno.h> #include <stdarg.h> #include <stddef.h> #include <stdint.h> #include <zephyr/toolchain.h> #include <zephyr/sys/util.h> #include <zephyr/sys/__assert.h> #include <zephyr/arch/cpu....
/content/code_sandbox/include/zephyr/sys/cbprintf_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
17,322
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_KOBJECT_H #define ZEPHYR_INCLUDE_SYS_KOBJECT_H #include <stdint.h> #include <stddef.h> #include <zephyr/sys/iterable_sections.h> #include <zephyr/sys/internal/kobject_internal.h> #ifdef __cplusplus extern "C" { #endif struct k_thread; struct k_mutex; struct z_fute...
/content/code_sandbox/include/zephyr/sys/kobject.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,851
```objective-c */ #ifndef ZEPHYR_INCLUDE_SYS_MULTI_HEAP_H_ #define ZEPHYR_INCLUDE_SYS_MULTI_HEAP_H_ #include <zephyr/types.h> #define MAX_MULTI_HEAPS 8 /** * @defgroup multi_heap_wrapper Multi-Heap Wrapper * @ingroup heaps * @{ */ /** * @brief Multi-heap allocator * * A sys_multi_heap represents a single a...
/content/code_sandbox/include/zephyr/sys/multi_heap.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,426
```objective-c /** @file * @brief Byte order helpers. */ /* * */ #ifndef ZEPHYR_INCLUDE_SYS_BYTEORDER_H_ #define ZEPHYR_INCLUDE_SYS_BYTEORDER_H_ #include <zephyr/types.h> #include <stddef.h> #include <zephyr/sys/__assert.h> #include <zephyr/toolchain.h> #define BSWAP_16(x) ((uint16_t) ((((x) >> 8) & 0xff) | ((...
/content/code_sandbox/include/zephyr/sys/byteorder.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,653
```objective-c /* * */ /** * @file * @defgroup flagged-single-linked-list_apis Flagged Single-linked list * @ingroup datastructure_apis * * @brief Flagged single-linked list implementation. * * Similar to @ref single-linked-list_apis with the added ability to define * user "flags" bits for each node...
/content/code_sandbox/include/zephyr/sys/sflist.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,051
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_P4WQ_H_ #define ZEPHYR_INCLUDE_SYS_P4WQ_H_ #include <zephyr/kernel.h> #include <zephyr/sys/iterable_sections.h> /* Zephyr Pooled Parallel Preemptible Priority-based Work Queues */ struct k_p4wq_work; /** * P4 Queue handler callback */ typedef void (*k_p4wq_handl...
/content/code_sandbox/include/zephyr/sys/p4wq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,776
```objective-c /* * */ /** * @file * @defgroup doubly-linked-list_apis Doubly-linked list * @ingroup datastructure_apis * * @brief Doubly-linked list implementation * * Doubly-linked list implementation using inline macros/functions. * This API is not thread safe, and thus if a list is used across threads, ...
/content/code_sandbox/include/zephyr/sys/dlist.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,089
```objective-c * */ #ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_TYPES_H_ #define ZEPHYR_INCLUDE_SYS_ATOMIC_TYPES_H_ #ifdef __cplusplus extern "C" { #endif typedef long atomic_t; typedef atomic_t atomic_val_t; typedef void *atomic_ptr_t; typedef atomic_ptr_t atomic_ptr_val_t; #ifdef __cplusplus } #endif #endif /* ZEPHYR_IN...
/content/code_sandbox/include/zephyr/sys/atomic_types.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_MEM_MANAGE_H #define ZEPHYR_INCLUDE_SYS_MEM_MANAGE_H /** * @brief Memory Management * @defgroup memory_management Memory Management * @ingroup os_services * @{ */ #ifndef _ASMLANGUAGE #include <stdbool.h> #include <stdint.h> /** * @brief Check if a physical ...
/content/code_sandbox/include/zephyr/sys/mem_manage.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
393
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_ARCH_H_ #define ZEPHYR_INCLUDE_SYS_ATOMIC_ARCH_H_ #include <stdbool.h> #include <zephyr/sys/atomic_types.h> /* Included from <atomic.h> */ /* Arch specific atomic primitives */ bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_...
/content/code_sandbox/include/zephyr/sys/atomic_arch.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
312
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_C_H_ #define ZEPHYR_INCLUDE_SYS_ATOMIC_C_H_ /* Included from <atomic.h> */ #ifdef __cplusplus extern "C" { #endif /* Simple and correct (but very slow) implementation of atomic * primitives that require nothing more than kernel interrupt locking. */ __sy...
/content/code_sandbox/include/zephyr/sys/atomic_c.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
541
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_PRINTK_HOOKS_H_ #define ZEPHYR_INCLUDE_SYS_PRINTK_HOOKS_H_ /** * @brief printk function handler * * @param c Character to output * * @returns The character passed as input. */ typedef int (*printk_hook_fn_t)(int c); /** * @brief Install the character output ...
/content/code_sandbox/include/zephyr/sys/printk-hooks.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
220
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_BARRIER_BUILTIN_H_ #define ZEPHYR_INCLUDE_SYS_BARRIER_BUILTIN_H_ #ifndef ZEPHYR_INCLUDE_SYS_BARRIER_H_ #error Please include <zephyr/sys/barrier.h> #endif #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif static ALWAYS_INLINE void z_barrier_dme...
/content/code_sandbox/include/zephyr/sys/barrier_builtin.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
223
```objective-c /* * RFC 1521 base64 encoding/decoding * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * Adapted for Zephyr by Carles Cufi (carles.cufi@nordicsemi.no) * - Removed mbedtls_ prefixes...
/content/code_sandbox/include/zephyr/sys/base64.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
600
```objective-c /* * */ /** * @brief Extra arithmetic and bit manipulation functions. * @defgroup math_extras Math extras * @ingroup utilities * * Portable wrapper functions for a number of arithmetic and bit-counting functions that are often * provided by compiler builtins. If the compiler does not have an app...
/content/code_sandbox/include/zephyr/sys/math_extras.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,105
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_RING_BUFFER_H_ #define ZEPHYR_INCLUDE_SYS_RING_BUFFER_H_ #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <errno.h> #ifdef __cplusplus extern "C" { #endif /** @cond INTERNAL_HIDDEN */ /* The limit is used by algorithm for distinguishing between emp...
/content/code_sandbox/include/zephyr/sys/ring_buffer.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,761
```objective-c /* * */ /** * @file * @brief Macro utilities * * Macro utilities are the public interface for C/C++ code and device tree * related implementation. In general, C/C++ will include <sys/util.h> * instead this file directly. For device tree implementation, this file * should be include instead <s...
/content/code_sandbox/include/zephyr/sys/util_macro.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,032
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_DEVICE_MMIO_H #define ZEPHYR_INCLUDE_SYS_DEVICE_MMIO_H #include <zephyr/toolchain.h> #include <zephyr/linker/sections.h> /** * @defgroup device-mmio Device memory-mapped IO management * @ingroup device_model * * Definitions and helper macros for managing driver ...
/content/code_sandbox/include/zephyr/sys/device_mmio.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,503
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_ #define ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_ #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif /* NOTE: located here to avoid include dependency loops between errno.h * and kernel.h */ #ifdef CONFIG_LIBC_ERRNO #include <errno....
/content/code_sandbox/include/zephyr/sys/errno_private.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
259
```objective-c /* * */ /** * @file * @brief Misc utilities * * Repetitive or obscure helper macros needed by sys/util.h. */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ #define ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ #include "util_loops.h" /* IS_ENABLED() helpers */ /* This is called from IS_ENABLED(), and stic...
/content/code_sandbox/include/zephyr/sys/util_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,797
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_POWEROFF_H_ #define ZEPHYR_INCLUDE_SYS_POWEROFF_H_ #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup sys_poweroff System power off * @ingroup os_services * @{ */ /** @cond INTERNAL_HIDDEN */ /** * @brief System power off h...
/content/code_sandbox/include/zephyr/sys/poweroff.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
253
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_HASHMAP_API_H_ #define ZEPHYR_INCLUDE_SYS_HASHMAP_API_H_ #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <zephyr/sys/hash_function.h> #include <zephyr/sys/util.h> #ifdef __cplusplus extern "C" { #endif /** * @file * @defgroup hashmap_apis ...
/content/code_sandbox/include/zephyr/sys/hash_map_api.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,812
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_BITARRAY_H_ #define ZEPHYR_INCLUDE_SYS_BITARRAY_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include <stdint.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> /** * @file * * @defgroup bitarray_apis Bit array * @ingroup datastructur...
/content/code_sandbox/include/zephyr/sys/bitarray.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,761
```objective-c /* */ #ifndef ZEPHYR_INCLUDE_SYS_WINSTREAM_H_ #define ZEPHYR_INCLUDE_SYS_WINSTREAM_H_ #include <stdint.h> /** @brief Lockless shared memory byte stream IPC * * The sys_winstream utility implements a unidirectional byte stream * with simple read/write semantics on top of a memory region shared * by...
/content/code_sandbox/include/zephyr/sys/winstream.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
908
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_CBPRINTF_CXX_H_ #define ZEPHYR_INCLUDE_SYS_CBPRINTF_CXX_H_ #ifdef __cplusplus /* C++ version for detecting a pointer to a string. */ static inline int z_cbprintf_cxx_is_pchar(char *, bool const_as_fixed) { ARG_UNUSED(const_as_fixed); return 1; } static inline int...
/content/code_sandbox/include/zephyr/sys/cbprintf_cxx.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,408
```objective-c /* * */ /** * @file * @brief Utilities supporting operation on time data structures. * * POSIX defines gmtime() to convert from time_t to struct tm, but all * inverse transformations are non-standard or require access to time * zone information. timeutil_timegm() implements the functionality *...
/content/code_sandbox/include/zephyr/sys/timeutil.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,326
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_CBPRINTF_ENUMS_H_ #define ZEPHYR_INCLUDE_SYS_CBPRINTF_ENUMS_H_ /** @brief cbprintf package argument type * * This is used to tag each argument in cbprintf in the variable * length argument list. */ enum cbprintf_package_arg_type { /** End of argument list */ C...
/content/code_sandbox/include/zephyr/sys/cbprintf_enums.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
255
```objective-c /* * */ /** * @file * @addtogroup hashmap_apis * @{ */ #ifndef ZEPHYR_INCLUDE_SYS_HASH_MAP_H_ #define ZEPHYR_INCLUDE_SYS_HASH_MAP_H_ #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <zephyr/kernel.h> #include <zephyr/sys/hash_map_api.h> #include <zephyr/...
/content/code_sandbox/include/zephyr/sys/hash_map.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,850
```objective-c /* * */ /** * @cond INTERNAL_HIDDEN */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ #error "This header should not be used directly, please include util_internal.h instead" #endif /* ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_UTIL_INC_H_ #define ZEPHYR_INCLUDE_S...
/content/code_sandbox/include/zephyr/sys/util_internal_util_inc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
43,171
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_ONOFF_H_ #define ZEPHYR_INCLUDE_SYS_ONOFF_H_ #include <zephyr/kernel.h> #include <zephyr/types.h> #include <zephyr/sys/notify.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup resource_mgmt_onoff_apis On-Off Service APIs * @ingroup kernel_apis * @{ */ ...
/content/code_sandbox/include/zephyr/sys/onoff.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,886
```objective-c /* * */ /** * @file * @ingroup hashmap_implementations * @brief C++ Hashmap * * This is a C wrapper around `std::unordered_map`. It is mainly used for * benchmarking purposes. * * @note Enable with @kconfig{CONFIG_SYS_HASH_MAP_CXX} */ #ifndef ZEPHYR_INCLUDE_SYS_HASH_MAP_CXX_H_ #define ZEPHYR...
/content/code_sandbox/include/zephyr/sys/hash_map_cxx.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
888
```objective-c /* * */ /** * @file * @defgroup single-linked-list_apis Single-linked list * @ingroup datastructure_apis * * @brief Single-linked list implementation. * * Single-linked list implementation using inline macros/functions. * This API is not thread safe, and thus if a list is used across ...
/content/code_sandbox/include/zephyr/sys/slist.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,380
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_MPSC_PACKET_H_ #define ZEPHYR_INCLUDE_SYS_MPSC_PACKET_H_ #include <string.h> #include <stdint.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Multi producer, single consumer packet header * @defgroup mpsc_packet MPSC (Multi producer, s...
/content/code_sandbox/include/zephyr/sys/mpsc_packet.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
340
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_CHECK_H_ #define ZEPHYR_INCLUDE_SYS_CHECK_H_ #include <zephyr/sys/__assert.h> #if defined(CONFIG_ASSERT_ON_ERRORS) #define CHECKIF(expr) \ __ASSERT_NO_MSG(!(expr)); \ if (0) #elif defined(CONFIG_NO_RUNTIME_CHECKS) #define CHECKIF(...) \ if (0) #else #define C...
/content/code_sandbox/include/zephyr/sys/check.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
104
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS___ASSERT_H_ #define ZEPHYR_INCLUDE_SYS___ASSERT_H_ #include <stdbool.h> #include <zephyr/toolchain.h> #ifdef CONFIG_ASSERT #ifndef __ASSERT_ON #ifdef CONFIG_ASSERT_LEVEL #define __ASSERT_ON CONFIG_ASSERT_LEVEL #endif #endif #endif #ifdef CONFIG_FORCE_NO_ASSERT #un...
/content/code_sandbox/include/zephyr/sys/__assert.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
962
```objective-c /* * */ #ifndef ZEPHYR_SYS_SPSC_LOCKFREE_H_ #define ZEPHYR_SYS_SPSC_LOCKFREE_H_ #include <stdint.h> #include <stdbool.h> #include <zephyr/toolchain/common.h> #include <zephyr/sys/atomic.h> #include <zephyr/sys/util_macro.h> /** * @brief Single Producer Single Consumer (SPSC) Lockfree Queue API * @...
/content/code_sandbox/include/zephyr/sys/spsc_lockfree.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,677
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_TIME_UNITS_H_ #define ZEPHYR_INCLUDE_TIME_UNITS_H_ #include <zephyr/toolchain.h> #include <zephyr/sys/util.h> #ifdef __cplusplus extern "C" { #endif /** * @file * @defgroup timeutil_unit_apis Time Units Helpers * @ingroup timeutil_apis * * @brief Various helper A...
/content/code_sandbox/include/zephyr/sys/time_units.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
17,481
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_HASH_FUNCTION_H_ #define ZEPHYR_INCLUDE_SYS_HASH_FUNCTION_H_ #include <stddef.h> #include <stdint.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/util_macro.h> #ifdef __cplusplus extern "C" { #endif /** * @ingroup hashmap_apis * @defgroup hash_function...
/content/code_sandbox/include/zephyr/sys/hash_function.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
954
```objective-c /* printk.h - low-level debug output */ /* * */ #ifndef ZEPHYR_INCLUDE_SYS_PRINTK_H_ #define ZEPHYR_INCLUDE_SYS_PRINTK_H_ #include <zephyr/toolchain.h> #include <stddef.h> #include <stdarg.h> #include <inttypes.h> #ifdef __cplusplus extern "C" { #endif /** * * @brief Print kernel debugging messag...
/content/code_sandbox/include/zephyr/sys/printk.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
520
```objective-c /* * */ /** * @cond INTERNAL_HIDDEN */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ #error "This header should not be used directly, please include util_internal.h instead" #endif /* ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_UTIL_DEC_H_ #define ZEPHYR_INCLUDE_S...
/content/code_sandbox/include/zephyr/sys/util_internal_util_dec.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
43,169
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_SPSC_PBUF_H_ #define ZEPHYR_INCLUDE_SYS_SPSC_PBUF_H_ #include <zephyr/cache.h> #include <zephyr/devicetree.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Single producer, single consumer packet buffer API * @defgroup spsc_buf SPSC (Single producer, singl...
/content/code_sandbox/include/zephyr/sys/spsc_pbuf.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,313
```objective-c /* * */ /** * @file * @ingroup hashmap_implementations * @brief Separate Chaining Hashmap Implementation * * @note Enable with @kconfig{CONFIG_SYS_HASH_MAP_SC} */ #ifndef ZEPHYR_INCLUDE_SYS_HASH_MAP_SC_H_ #define ZEPHYR_INCLUDE_SYS_HASH_MAP_SC_H_ #include <stdbool.h> #include <stddef.h> #inclu...
/content/code_sandbox/include/zephyr/sys/hash_map_sc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
869
```objective-c /* * */ #ifndef ZEPHYR_SYS_MPSC_LOCKFREE_H_ #define ZEPHYR_SYS_MPSC_LOCKFREE_H_ #include <stdint.h> #include <stdbool.h> #include <zephyr/sys/atomic.h> #include <zephyr/kernel.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Multiple Producer Single Consumer (MPSC) Lockfree Queue API * @def...
/content/code_sandbox/include/zephyr/sys/mpsc_lockfree.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,144
```objective-c /* */ #ifndef INCLUDE_ZEPHYR_SYS_ITERABLE_SECTIONS_H_ #define INCLUDE_ZEPHYR_SYS_ITERABLE_SECTIONS_H_ #include <zephyr/sys/__assert.h> #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Iterable Sections APIs * @defgroup iterable_section_apis Iterable Sections APIs ...
/content/code_sandbox/include/zephyr/sys/iterable_sections.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,358
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_LIBC_HOOKS_H_ #define ZEPHYR_INCLUDE_SYS_LIBC_HOOKS_H_ #include <zephyr/toolchain.h> #include <zephyr/app_memory/app_memdomain.h> #include <stdio.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif /* * Private header for specifying accessory functions ...
/content/code_sandbox/include/zephyr/sys/libc-hooks.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
774
```objective-c /* * */ /** * @file * @defgroup rbtree_apis Balanced Red/Black Tree * @ingroup datastructure_apis * * @brief Balanced Red/Black Tree implementation * * This implements an intrusive balanced tree that guarantees * O(log2(N)) runtime for all operations and amortized O(1) behavior * for creation...
/content/code_sandbox/include/zephyr/sys/rb.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,897
```objective-c /* Port and memory mapped registers I/O operations */ /* * */ #ifndef ZEPHYR_INCLUDE_SYS_SYS_IO_H_ #define ZEPHYR_INCLUDE_SYS_SYS_IO_H_ #include <zephyr/types.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif typedef uint32_t io_port_t; typedef uintptr_t mm_reg_t; typedef uintptr_t mem...
/content/code_sandbox/include/zephyr/sys/sys_io.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,798
```objective-c /* * */ /** * @file * @brief Internals for looping macros * * Repetitive or obscure helper macros needed by sys/util.h. */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_ #define ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_ #define Z_FOR_LOOP_GET_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, \ _12, _13, _...
/content/code_sandbox/include/zephyr/sys/util_loops.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20,416
```objective-c /* atomic operations */ /* * */ #ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_ #define ZEPHYR_INCLUDE_SYS_ATOMIC_BUILTIN_H_ #include <stdbool.h> #include <stddef.h> #include <zephyr/sys/atomic_types.h> #ifdef __cplusplus extern "C" { #endif /* Included from <atomic.h> */ static inline bool atomic_c...
/content/code_sandbox/include/zephyr/sys/atomic_builtin.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
719
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_BARRIER_H_ #define ZEPHYR_INCLUDE_SYS_BARRIER_H_ #include <zephyr/toolchain.h> #if defined(CONFIG_BARRIER_OPERATIONS_ARCH) # if defined(CONFIG_ARM) # include <zephyr/arch/arm/barrier.h> # elif defined(CONFIG_ARM64) # include <zephyr/arch/arm64/barrier.h> # endif #e...
/content/code_sandbox/include/zephyr/sys/barrier.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
567
```objective-c /* * */ /** * @file * @brief Inline implementation of functions declared in math_extras.h. */ #ifndef ZEPHYR_INCLUDE_SYS_MATH_EXTRAS_H_ #error "please include <sys/math_extras.h> instead of this file" #endif #include <zephyr/toolchain.h> /* * Force the use of portable C code (no builtins) by de...
/content/code_sandbox/include/zephyr/sys/math_extras_impl.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,700
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_MPSC_PBUF_H_ #define ZEPHYR_INCLUDE_SYS_MPSC_PBUF_H_ #include <zephyr/kernel.h> #include <zephyr/sys/mpsc_packet.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Multi producer, single consumer pac...
/content/code_sandbox/include/zephyr/sys/mpsc_pbuf.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,815
```objective-c /* * */ /** * @file * * @brief Memory Statistics */ #ifndef ZEPHYR_INCLUDE_SYS_MEM_STATS_H_ #define ZEPHYR_INCLUDE_SYS_MEM_STATS_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> /* A common structure used to report runtime memory usage statistics */ struct sys_memory_stats { siz...
/content/code_sandbox/include/zephyr/sys/mem_stats.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
112
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_ATOMIC_H_ #define ZEPHYR_INCLUDE_SYS_ATOMIC_H_ #include <stdbool.h> #include <zephyr/toolchain.h> #include <stddef.h> #include <zephyr/sys/atomic_types.h> /* IWYU pragma: export */ #include <zephyr/types.h> #include <zephyr/sys/util.h> #ifdef __cplusplus extern "C...
/content/code_sandbox/include/zephyr/sys/atomic.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,038
```objective-c /* * */ /** * @file * @ingroup hashmap_implementations * @brief Open-Addressing / Linear Probe Hashmap Implementation * * @note Enable with @kconfig{CONFIG_SYS_HASH_MAP_OA_LP} */ #ifndef ZEPHYR_INCLUDE_SYS_HASH_MAP_OA_LP_H_ #define ZEPHYR_INCLUDE_SYS_HASH_MAP_OA_LP_H_ #include <stddef.h> #inc...
/content/code_sandbox/include/zephyr/sys/hash_map_oa_lp.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
950
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_SYS_HEAP_H_ #define ZEPHYR_INCLUDE_SYS_SYS_HEAP_H_ #include <stddef.h> #include <stdbool.h> #include <zephyr/types.h> #include <zephyr/sys/mem_stats.h> #include <zephyr/toolchain.h> #ifdef __cplusplus extern "C" { #endif /* Simple, fast heap implementation. * * A...
/content/code_sandbox/include/zephyr/sys/sys_heap.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,370
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ #error "This header should not be used directly, please include util_internal.h instead" #endif /* ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_IS_EQ_H_ #define ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_IS_EQ_H_ #define Z_...
/content/code_sandbox/include/zephyr/sys/util_internal_is_eq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
51,347
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_NOTIFY_H_ #define ZEPHYR_INCLUDE_SYS_NOTIFY_H_ #include <zephyr/kernel.h> #include <zephyr/types.h> #ifdef __cplusplus extern "C" { #endif struct sys_notify; /* * Flag value that overwrites the method field when the operation has * completed. */ #define SYS_NO...
/content/code_sandbox/include/zephyr/sys/notify.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,441
```objective-c /* * */ /** * @file * * @brief public sys_sem APIs. */ #ifndef ZEPHYR_INCLUDE_SYS_SEM_H_ #define ZEPHYR_INCLUDE_SYS_SEM_H_ /* * sys_sem exists in user memory working as counter semaphore for * user mode thread when user mode enabled. When user mode isn't * enabled, sys_sem behaves like k_sem....
/content/code_sandbox/include/zephyr/sys/sem.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
891
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_CBPRINTF_H_ #define ZEPHYR_INCLUDE_SYS_CBPRINTF_H_ #include <stdarg.h> #include <stddef.h> #include <stdint.h> #include <zephyr/toolchain.h> #include <string.h> #ifdef CONFIG_CBPRINTF_LIBC_SUBSTS #include <stdio.h> #endif /* CONFIG_CBPRINTF_LIBC_SUBSTS */ /* Deter...
/content/code_sandbox/include/zephyr/sys/cbprintf.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,820
```objective-c /* * */ /** * @cond INTERNAL_HIDDEN */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ #error "This header should not be used directly, please include util_internal.h instead" #endif /* ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_H_ */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_INTERNAL_UTIL_X2_H_ #define ZEPHYR_INCLUDE_SY...
/content/code_sandbox/include/zephyr/sys/util_internal_util_x2.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47,758
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_HEAP_LISTENER_H #define ZEPHYR_INCLUDE_SYS_HEAP_LISTENER_H #include <stdint.h> #include <zephyr/toolchain.h> #include <zephyr/sys/slist.h> #ifdef __cplusplus extern "C" { #endif #if defined(CONFIG_HEAP_LISTENER) || defined(__DOXYGEN__) /** * @defgroup heap_liste...
/content/code_sandbox/include/zephyr/sys/heap_listener.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,925
```objective-c /* * */ #ifndef ZEPHYR_MISC_SPECULATION_H #define ZEPHYR_MISC_SPECULATION_H #include <zephyr/types.h> /** * Sanitize an array index against bounds check bypass attacks aka the * Spectre V1 vulnerability. * * CPUs with speculative execution may speculate past any size checks and * leak confident...
/content/code_sandbox/include/zephyr/sys/speculation.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
395
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_FDTABLE_H_ #define ZEPHYR_INCLUDE_SYS_FDTABLE_H_ #include <stdarg.h> #include <sys/types.h> /* FIXME: For native_posix ssize_t, off_t. */ #include <zephyr/fs/fs.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> /* File mode bits */ #define ZVFS_MODE_IFMT ...
/content/code_sandbox/include/zephyr/sys/fdtable.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,906
```objective-c /* * */ /** * @file * * @brief Memory Blocks Allocator */ #ifndef ZEPHYR_INCLUDE_SYS_MEM_BLOCKS_H_ #define ZEPHYR_INCLUDE_SYS_MEM_BLOCKS_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include <stdint.h> #include <zephyr/kernel.h> #include <zephyr/math/ilog2.h> #include <zephyr/...
/content/code_sandbox/include/zephyr/sys/mem_blocks.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,097
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_LIST_GEN_H_ #define ZEPHYR_INCLUDE_SYS_LIST_GEN_H_ #include <stddef.h> #include <stdbool.h> #include <zephyr/sys/util.h> #define Z_GENLIST_FOR_EACH_NODE(__lname, __l, __sn) \ for ((__sn) = sys_ ## __lname ## _peek_head(__l); (__sn) != NULL; \ (__sn) = sys_...
/content/code_sandbox/include/zephyr/sys/list_gen.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,002
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_ #error "This header should not be used directly, please include util_loops.h instead" #endif /* ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_ */ #ifndef ZEPHYR_INCLUDE_SYS_UTIL_LISTIFY_H_ #define ZEPHYR_INCLUDE_SYS_UTIL_LISTIFY_H_ #define Z_UTIL_LISTIFY_0(F, sep, ...
/content/code_sandbox/include/zephyr/sys/util_listify.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
177,304
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_INTERNAL_KOBJECT_INTERNAL_H #define ZEPHYR_INCLUDE_SYS_INTERNAL_KOBJECT_INTERNAL_H #ifdef __cplusplus extern "C" { #endif /** * @defgroup usermode_internal_apis User Mode Internal APIs * @ingroup internal_api * @{ */ #if defined(CONFIG_USERSPACE) || defined(__D...
/content/code_sandbox/include/zephyr/sys/internal/kobject_internal.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,109
```objective-c /* * */ #ifndef ZEPHYR_INCLUDE_SYS_MUTEX_H_ #define ZEPHYR_INCLUDE_SYS_MUTEX_H_ /* * sys_mutex behaves almost exactly like k_mutex, with the added advantage * that a sys_mutex instance can reside in user memory. * * Further enhancements will support locking/unlocking uncontended sys_mutexes * wi...
/content/code_sandbox/include/zephyr/sys/mutex.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,012