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
```python # import pytest # add option "--cmdopt" to pytest, or it will report "unknown option" # this option is passed from twister. def pytest_addoption(parser): parser.addoption( '--cmdopt' ) parser.addoption( '--custom-pytest-arg' ) # define fixture to return value of option "--cm...
/content/code_sandbox/samples/subsys/testsuite/pytest/basic/pytest/conftest.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
162
```c /* * */ #include <zephyr/ztest.h> ZTEST_SUITE(test_pytest, NULL, NULL, NULL, NULL, NULL); ZTEST(test_pytest, test_pytest) { TC_PRINT("Hello world\n"); } ```
/content/code_sandbox/samples/subsys/testsuite/pytest/basic/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
50
```yaml tests: # section.subsection sample.testing.ztest: build_only: true platform_allow: - native_posix - native_sim integration_platforms: - native_sim tags: test_framework ```
/content/code_sandbox/samples/subsys/testsuite/integration/testcase.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```python # import os import pytest # fixture cmdopt defined in conftest.py, it can be requested either in # tests or in other fixtures @pytest.fixture(autouse=True) def pytest_cmdopt_handle(cmdopt): ''' An auto fixture, all tests automatically request this fixture. Argument "cmdopt" is a fixture defined...
/content/code_sandbox/samples/subsys/testsuite/pytest/basic/pytest/test_sample.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
303
```unknown CONFIG_ZTEST=y ```
/content/code_sandbox/samples/subsys/testsuite/integration/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6
```c /* * */ #include <zephyr/ztest.h> ZTEST_SUITE(framework_tests, NULL, NULL, NULL, NULL, NULL); /** * @brief Test Asserts * * This test verifies various assert macros provided by ztest. * */ ZTEST(framework_tests, test_assert) { zassert_true(1, "1 was false"); zassert_false(0, "0 was true"); zassert_is...
/content/code_sandbox/samples/subsys/testsuite/integration/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
145
```restructuredtext .. _canbus-samples: Controller Area Network (CAN) Bus Samples ######################################### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/canbus/canbus.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```unknown # Private config options to the ISO-TP sample mainmenu "ISO-TP sample" config SAMPLE_LOOPBACK_MODE bool "Use CAN loopback mode" help Set the CAN controller to loopback mode. This allows testing without a second board. config SAMPLE_RX_THREAD_STACK_SIZE int "RX threads stack size" default 1024 hel...
/content/code_sandbox/samples/subsys/canbus/isotp/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
159
```unknown CONFIG_LOG=y CONFIG_CAN=y CONFIG_CAN_MAX_FILTER=8 CONFIG_ISOTP=y # We have two receiving contexts that are bound to a single address. CONFIG_ISOTP_RX_SF_FF_BUF_COUNT=2 ```
/content/code_sandbox/samples/subsys/canbus/isotp/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```restructuredtext .. zephyr:code-sample:: isotp :name: ISO-TP library :relevant-api: can_isotp Use ISO-TP library to exchange messages between two boards. Overview ******** This sample demonstrates how to use the :ref:`ISO-TP library <can_isotp>`. Messages are exchanged between two boards. A long message,...
/content/code_sandbox/samples/subsys/canbus/isotp/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
394
```yaml sample: name: ISO-TP sample tests: sample.subsys.canbus.isotp: tags: - can - isotp depends_on: can filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican") extra_configs: - CONFIG_SAMPLE_LOOPBACK_MODE=y harness: console harness_config: ...
/content/code_sandbox/samples/subsys/canbus/isotp/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
221
```restructuredtext .. _logging-samples: Logging Sample ################ .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/logging/logging.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```restructuredtext .. zephyr:code-sample:: logging-ble-backend :name: BLE logging backend :relevant-api: log_api log_backend bt_gatt Send log messages over BLE using the BLE logging backend. Overview ******** Sample that demonstrates how to setup and use the BLE Logging backend. The BLE Logger uses the NRF...
/content/code_sandbox/samples/subsys/logging/ble_backend/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
221
```unknown CONFIG_BT=y CONFIG_BT_SMP=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_NAME="Zephyr Logger Backend BLE" CONFIG_LOG_BACKEND_BLE=y CONFIG_LOG=y CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048 # Uncomment to use the maximum buffer size # CONFIG_BT_L2CAP_TX_MTU=600 # CONFIG_BT_BUF_ACL_RX_SIZE=600 ```
/content/code_sandbox/samples/subsys/logging/ble_backend/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```yaml sample: description: A simple application that demonstrates the use of the logging ble backend. name: logger backend ble tests: sample.logging.ble_backend.nrf52833: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 integration_platforms: - qemu_cortex_m3 tags...
/content/code_sandbox/samples/subsys/logging/ble_backend/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/canbus/isotp.h> const struct isotp_fc_opts fc_opts_8_0 = {.bs = 8, .stmin = 0}; const struct isotp_fc_opts fc_opts_0_5 = {.bs = 0, .stmin = 5}; const struct isotp_msg_id rx_addr_8_0 = { .std_id = 0x80, #ifdef CONFIG_SAMPLE_CAN_FD_MODE .flags = ISOTP_MSG_FD...
/content/code_sandbox/samples/subsys/canbus/isotp/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,669
```unknown / { chosen { zephyr,console = &rtt0; }; rtt0: rtt_chan0 { compatible = "segger,rtt-uart"; status = "okay"; }; }; ```
/content/code_sandbox/samples/subsys/logging/logger/segger_uart_rtt.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/bluetooth/gatt.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/logging/log.h> #include <zephyr/logging/log_backend_ble.h> LOG_MODULE_REGISTER(ble_backend); static const struct bt_data ad[] = { BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD...
/content/code_sandbox/samples/subsys/logging/ble_backend/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
579
```unknown /* * */ / { chosen { zephyr,console = &bt_nus_console_uart; }; bt_nus_console_uart: bt_nus_console_uart { compatible = "zephyr,nus-uart"; rx-fifo-size = <1024>; tx-fifo-size = <1024>; }; }; ```
/content/code_sandbox/samples/subsys/logging/logger/bt.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
74
```unknown CONFIG_SERIAL=y CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_ZEPHYR_NUS=y CONFIG_UART_BT=y CONFIG_BT_ZEPHYR_NUS_AUTO_START_BLUETOOTH=y # Bluetooth optimizations to allow larger data packets. CONFIG_BT_RX_STACK_SIZE=2048 CONFIG_BT_L2CAP_TX_MTU=512 CONFIG_BT_BUF_ACL_RX_...
/content/code_sandbox/samples/subsys/logging/logger/overlay-bt.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
113
```unknown CONFIG_LOG_BACKEND_SWO=y CONFIG_LOG_BACKEND_SWO_FREQ_HZ=2000000 ```
/content/code_sandbox/samples/subsys/logging/logger/arm_itm_swo.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22
```unknown # Config options for logger sample app mainmenu "Logger sample application" menu "Application configuration" module = SAMPLE_MODULE module-str = Sample module source "subsys/logging/Kconfig.template.log_config" endmenu source "Kconfig.zephyr" ```
/content/code_sandbox/samples/subsys/logging/logger/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
54
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_DEFERRED=y CONFIG_LOG_RUNTIME_FILTERING=y CONFIG_LOG_BUFFER_SIZE=2048 CONFIG_LOG_PRINTK=y CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=0 CONFIG_COVERAGE=n CONFIG_LOG_TAG_MAX_LEN=8 ```
/content/code_sandbox/samples/subsys/logging/logger/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
55
```restructuredtext .. zephyr:code-sample:: logging :name: Logging :relevant-api: log_api log_ctrl Output log messages to the console using the logging subsystem. Overview ******** A simple application that demonstrates use of logging subsystem. It demonstrates main features: severity levels, timestamping, m...
/content/code_sandbox/samples/subsys/logging/logger/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
890
```unknown CONFIG_USE_SEGGER_RTT=y CONFIG_UART_RTT=y CONFIG_UART_ASYNC_API=y CONFIG_LOG_BACKEND_UART_ASYNC=y ```
/content/code_sandbox/samples/subsys/logging/logger/segger_uart_rtt.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
28
```yaml sample: description: A simple application that demonstrate use of logging feature. name: logger sample tests: sample.logger.basic: integration_platforms: - native_sim tags: logging harness: console harness_config: type: one_line regex: - Instance level logging sho...
/content/code_sandbox/samples/subsys/logging/logger/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
409
```objective-c /* * */ #ifndef SAMPLE_INSTANCE_H #define SAMPLE_INSTANCE_H #include <zephyr/kernel.h> #include <zephyr/logging/log_instance.h> #include <zephyr/logging/log.h> #define SAMPLE_INSTANCE_NAME sample_instance struct sample_instance { LOG_INSTANCE_PTR_DECLARE(log); uint32_t cnt; }; #define SAMPLE_INST...
/content/code_sandbox/samples/subsys/logging/logger/src/sample_instance.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
175
```c /* * */ #include <zephyr/app_memory/app_memdomain.h> #include "ext_log_system.h" K_APP_BMEM(app_part) static ext_log_handler log_handler; void ext_log_handler_set(ext_log_handler handler) { log_handler = handler; } void ext_log_system_foo(void) { ext_log(EXT_LOG_CRITICAL, "critical level log"); ext_log(EX...
/content/code_sandbox/samples/subsys/logging/logger/src/ext_log_system.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
247
```objective-c /* * */ #ifndef EXT_LOG_SYSTEM_ADAPTER_H #define EXT_LOG_SYSTEM_ADAPTER_H #ifdef __cplusplus extern "C" { #endif /** @brief Adapt external logging system to the logging subsystem. */ void ext_log_system_log_adapt(void); #ifdef __cplusplus } #endif #endif /* EXT_LOG_SYSTEM_ADAPTER_H */ ```
/content/code_sandbox/samples/subsys/logging/logger/src/ext_log_system_adapter.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
66
```objective-c /* * */ #ifndef SAMPLE_MODULE_H #define SAMPLE_MODULE_H #include <zephyr/logging/log.h> #ifdef __cplusplus extern "C" { #endif #define MODULE_NAME sample_module const char *sample_module_name_get(void); void sample_module_func(void); static inline void inline_func(void) { LOG_MODULE_DECLARE(MODUL...
/content/code_sandbox/samples/subsys/logging/logger/src/sample_module.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```c /* * */ #include "sample_instance.h" #include <string.h> /* Note: no name is defined because only instance logging is used. * Instances are registered as logging sources not module. */ #include <zephyr/logging/log.h> LOG_LEVEL_SET(LOG_LEVEL_INF); void sample_instance_call(struct sample_instance *inst) { ui...
/content/code_sandbox/samples/subsys/logging/logger/src/sample_instance.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
236
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include "sample_module.h" LOG_MODULE_REGISTER(MODULE_NAME, CONFIG_SAMPLE_MODULE_LOG_LEVEL); const char *sample_module_name_get(void) { return STRINGIFY(MODULE_NAME); } void sample_module_func(void) { LOG_INF("log in test_module %d", 11); } ...
/content/code_sandbox/samples/subsys/logging/logger/src/sample_module.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```c /* * */ #include "ext_log_system_adapter.h" #include "ext_log_system.h" #define LOG_MODULE_NAME ext_log_system #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(ext_log_system); /** @brief Translation of custom log levels to logging subsystem levels. */ static const uint8_t log_level_lut[] = { LOG_LEVEL_E...
/content/code_sandbox/samples/subsys/logging/logger/src/ext_log_system_adapter.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
192
```objective-c /* * */ #ifndef EXT_LOG_SYSTEM_H #define EXT_LOG_SYSTEM_H #ifdef __cplusplus extern "C" { #endif /** Log message priority levels */ enum ext_log_level { EXT_LOG_CRITICAL, EXT_LOG_ERROR, EXT_LOG_WARNING, EXT_LOG_NOTICE, EXT_LOG_INFO, EXT_LOG_DEBUG }; /** Log message handler type. */ typedef voi...
/content/code_sandbox/samples/subsys/logging/logger/src/ext_log_system.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
182
```unknown CONFIG_UART_ASYNC_API=y CONFIG_UART_0_ASYNC=y CONFIG_LOG_BACKEND_UART_ASYNC=y ```
/content/code_sandbox/samples/subsys/logging/logger/boards/nrf52840dk_nrf52840.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
21
```cmake if("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "") message(FATAL_ERROR "Target ${BOARD} not supported for this sample. " "There is no remote board selected in Kconfig.sysbuild") endif() set(NET_APP remote) ExternalZephyrProject_Add( APPLICATION ${NET_APP} SOURCE_DIR ${APP_DIR}/${NET_APP} BOARD ${SB_...
/content/code_sandbox/samples/subsys/logging/multidomain/sysbuild.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
113
```unknown # source "share/sysbuild/Kconfig" config NET_CORE_BOARD string default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk" default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" ```
/content/code_sandbox/samples/subsys/logging/multidomain/Kconfig.sysbuild
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```unknown CONFIG_PRINTK=y CONFIG_HEAP_MEM_POOL_SIZE=4096 CONFIG_IPC_SERVICE=y CONFIG_IPC_SERVICE_BACKEND_RPMSG=y CONFIG_MBOX=y CONFIG_OPENAMP=y CONFIG_OPENAMP_SLAVE=n CONFIG_LOG=y CONFIG_LOG_BUFFER_SIZE=8192 CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y CONFIG_LOG_MULTIDOMAIN=y CONFIG_LOG_LINK_IPC_SERVICE=y CONFIG_ASSERT=y #...
/content/code_sandbox/samples/subsys/logging/multidomain/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
106
```yaml sample: name: Logging in multi-domain environment common: sysbuild: true tags: ipc tests: sample.logging.multidomain.ipc_static_vrings: platform_allow: - nrf5340dk/nrf5340/cpuapp - nrf5340bsim/nrf5340/cpuapp integration_platforms: - nrf5340dk/nrf5340/cpuapp - nrf5340bsim/...
/content/code_sandbox/samples/subsys/logging/multidomain/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
235
```c /* * */ #include <zephyr/kernel.h> #include <string.h> #include <zephyr/sys/printk.h> #include "sample_instance.h" #include "sample_module.h" #include "ext_log_system.h" #include "ext_log_system_adapter.h" #include <zephyr/logging/log_ctrl.h> #include <zephyr/app_memory/app_memdomain.h> #include <zephyr/loggin...
/content/code_sandbox/samples/subsys/logging/logger/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,879
```unknown CONFIG_PRINTK=y CONFIG_HEAP_MEM_POOL_SIZE=4096 CONFIG_IPC_SERVICE=y CONFIG_IPC_SERVICE_BACKEND_RPMSG=y CONFIG_MBOX=y CONFIG_OPENAMP=y CONFIG_OPENAMP_MASTER=n CONFIG_LOG=y CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y CONFIG_LOG_BACKEND_IPC_SERVICE=y CONFIG_LOG_PRINTK=n CONFIG_LOG_BUFFER_SIZE=4096 CONFIG_ASSERT=y CO...
/content/code_sandbox/samples/subsys/logging/multidomain/remote/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
99
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(app); int main(void) { int cnt = 0; while (1) { LOG_INF("loop: %d", cnt++); k_sleep(K_MSEC(500)); } return 0; } ```
/content/code_sandbox/samples/subsys/logging/multidomain/remote/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```unknown CONFIG_BUILD_OUTPUT_EXE=n # For the mailbox to be initialized logger initialization is delayed like in real HW CONFIG_LOG_PROCESS_THREAD=y CONFIG_LOG_MODE_DEFERRED=y ```
/content/code_sandbox/samples/subsys/logging/multidomain/remote/boards/nrf5340bsim_nrf5340_cpunet.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
38
```unknown CONFIG_MPU_STACK_GUARD=y ```
/content/code_sandbox/samples/subsys/logging/multidomain/remote/boards/nrf5340dk_nrf5340_cpunet.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9
```unknown /* * */ #include "nrf5340dk_nrf5340_cpunet.overlay" ```
/content/code_sandbox/samples/subsys/logging/multidomain/remote/boards/nrf5340bsim_nrf5340_cpunet.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20
```unknown /* * */ #include <zephyr/dt-bindings/ipc_service/static_vrings.h> / { chosen { /delete-property/ zephyr,ipc_shm; zephyr,log-ipc = &ipc0; }; reserved-memory { /delete-node/ memory@20070000; sram_ipc0: memory@20070000 { reg = <0x20070000 0x8000>; }; sram_ipc1: memory@20078000 { reg ...
/content/code_sandbox/samples/subsys/logging/multidomain/remote/boards/nrf5340dk_nrf5340_cpunet.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
336
```c /* * */ #include <zephyr/device.h> #include <zephyr/ipc/ipc_service.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(app); #define STACKSIZE 2048 #define PRIORITY K_PRIO_PREEMPT(2) K_THREAD_STACK_DEFINE(ipc1_stack, STACKSIZE); static volatile uint8_t ipc1_received_data; static K_SEM_DEFINE(ipc1_bound_sem...
/content/code_sandbox/samples/subsys/logging/multidomain/remote/src/ipc_service.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
624
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(app); int main(void) { printk("Hello World! %s\n", CONFIG_BOARD); return 0; } ```
/content/code_sandbox/samples/subsys/logging/multidomain/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```unknown /* * */ #include "nrf5340dk_nrf5340_cpuapp.overlay" ```
/content/code_sandbox/samples/subsys/logging/multidomain/boards/nrf5340bsim_nrf5340_cpuapp.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19
```unknown CONFIG_SOC_NRF53_CPUNET_ENABLE=y CONFIG_LOG_BACKEND_UART_ASYNC=y CONFIG_UART_ASYNC_API=y CONFIG_UART_0_ASYNC=y ```
/content/code_sandbox/samples/subsys/logging/multidomain/boards/nrf5340dk_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```unknown # For the mailbox to be initialized logger initialization is delayed like in real HW CONFIG_LOG_PROCESS_THREAD=y CONFIG_LOG_MODE_DEFERRED=y ```
/content/code_sandbox/samples/subsys/logging/multidomain/boards/nrf5340bsim_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/ipc/ipc_service.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(app); #define STACKSIZE 4096 #define PRIORITY K_PRIO_PREEMPT(2) K_THREAD_STACK_DEFINE(ipc1_stack, STACKSIZE); static volatile uint8_t ipc1_received_data; static ...
/content/code_sandbox/samples/subsys/logging/multidomain/src/ipc_service.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
618
```unknown /* * */ #include <zephyr/dt-bindings/ipc_service/static_vrings.h> / { chosen { /delete-property/ zephyr,ipc_shm; zephyr,log-ipc = &ipc0; }; reserved-memory { /delete-node/ memory@20070000; sram_ipc0: memory@20070000 { reg = <0x20070000 0x8000>; }; sram_ipc1: memory@20078000 { reg ...
/content/code_sandbox/samples/subsys/logging/multidomain/boards/nrf5340dk_nrf5340_cpuapp.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
371
```unknown CONFIG_LOG=y CONFIG_LOG_PRINTK=y CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_HEX=y CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY=y CONFIG_LOG_BACKEND_UART=y ```
/content/code_sandbox/samples/subsys/logging/dictionary/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
38
```yaml sample: description: Dictionary-based Logging Sample Application name: logging_dictionary tests: sample.logger.basic.dictionary: build_only: true tags: logging integration_platforms: - qemu_x86 - qemu_x86_64 sample.logger.basic.dictionary.fpu: build_only: true tags: loggi...
/content/code_sandbox/samples/subsys/logging/dictionary/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
554
```restructuredtext .. zephyr:code-sample:: logging-dictionary :name: Dictionary-based logging :relevant-api: log_api Output binary log data using the dictionary-based logging API. Overview ******** This is a sample app which utilizes :ref:`dictionary-based logging <logging_guide_dictionary>` and the UART b...
/content/code_sandbox/samples/subsys/logging/dictionary/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,040
```unknown /* */ / { chosen { zephyr,shell-uart = &uart1; }; }; &uart1 { status = "okay"; }; ```
/content/code_sandbox/samples/subsys/logging/dictionary/boards/nrf5340dk_nrf5340_cpuapp.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```unknown CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_MIPI_SYST_ENABLE=y CONFIG_LOG_BACKEND_UART_OUTPUT_SYST=y ```
/content/code_sandbox/samples/subsys/logging/syst/overlay_immediate.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
25
```c /* * */ #include <inttypes.h> #include <zephyr/kernel.h> #include <string.h> #include <zephyr/sys/printk.h> #include <zephyr/logging/log.h> #include <zephyr/shell/shell.h> LOG_MODULE_REGISTER(hello_world, LOG_LEVEL_DBG); static const char *hexdump_msg = "HEXDUMP! HEXDUMP@ HEXDUMP#"; int main(void) { int8_t ...
/content/code_sandbox/samples/subsys/logging/dictionary/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
729
```unknown CONFIG_LOG_MODE_IMMEDIATE=n CONFIG_LOG_MODE_DEFERRED=y CONFIG_LOG_BUFFER_SIZE=1024 CONFIG_LOG_PROCESS_THREAD=y CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100 CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=2 CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=4096 CONFIG_LOG_BLOCK_IN_THREAD=y CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_MIPI_SYST_EN...
/content/code_sandbox/samples/subsys/logging/syst/overlay_deferred.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
88
```unknown CONFIG_LOG=y CONFIG_ASSERT=n CONFIG_LOG_PRINTK=y CONFIG_LOG_MIPI_SYST_ENABLE=y # If using a different backend such as "ADSP" # update the following 2 lines. # Note: If using different platforms, be sure to # use the correct logging backend. CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_BACKEND_UART_OUTPUT_SYST=y CO...
/content/code_sandbox/samples/subsys/logging/syst/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
182
```yaml sample: name: syst sample common: tags: - logging - mipi-sys-t modules: - mipi-sys-t arch_exclude: - mips - nios2 - posix - sparc tests: sample.logger.syst.deferred: toolchain_exclude: xcc integration_platforms: - mps2/an385 - qemu_x86 extra_args: OV...
/content/code_sandbox/samples/subsys/logging/syst/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
989
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/sys/printk.h> #include <zephyr/logging/log_ctrl.h> #include <zephyr/logging/log_output.h> #define DATA_MAX_DLEN 8 #define LOG_MODULE_NAME syst LOG_MODULE_REGISTER(LOG_MODULE_NAME, LOG_LEVEL_DBG); struct test_frame { uint32_t ...
/content/code_sandbox/samples/subsys/logging/syst/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
884
```unknown CONFIG_LOG_BACKEND_UART=n CONFIG_LOG_BACKEND_UART_OUTPUT_SYST=n CONFIG_LOG_BACKEND_ADSP=y CONFIG_LOG_MIPI_SYST_ENABLE=y CONFIG_LOG_BACKEND_ADSP_OUTPUT_SYST=y ```
/content/code_sandbox/samples/subsys/logging/syst/boards/intel_adsp_cavs18.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```unknown CONFIG_LOG_BACKEND_UART=n CONFIG_LOG_BACKEND_UART_OUTPUT_SYST=n CONFIG_LOG_BACKEND_ADSP=y CONFIG_LOG_MIPI_SYST_ENABLE=y CONFIG_LOG_BACKEND_ADSP_OUTPUT_SYST=y ```
/content/code_sandbox/samples/subsys/logging/syst/boards/intel_adsp_cavs20.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```unknown CONFIG_LOG_BACKEND_UART=n CONFIG_LOG_BACKEND_UART_OUTPUT_SYST=n CONFIG_LOG_BACKEND_ADSP=y CONFIG_LOG_MIPI_SYST_ENABLE=y CONFIG_LOG_BACKEND_ADSP_OUTPUT_SYST=y ```
/content/code_sandbox/samples/subsys/logging/syst/boards/intel_adsp_cavs15.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```unknown CONFIG_LOG_BACKEND_UART=n CONFIG_LOG_BACKEND_UART_OUTPUT_SYST=n CONFIG_LOG_BACKEND_ADSP=y CONFIG_LOG_MIPI_SYST_ENABLE=y CONFIG_LOG_BACKEND_ADSP_OUTPUT_SYST=y ```
/content/code_sandbox/samples/subsys/logging/syst/boards/intel_adsp_cavs25.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```restructuredtext .. zephyr:code-sample:: nvs :name: Non-Volatile Storage (NVS) :relevant-api: nvs_high_level_api Store and retrieve data from flash using the NVS API. Overview ******** This is a simple application demonstrating use of the NVS module for non-volatile (flash) storage. In this application,...
/content/code_sandbox/samples/subsys/nvs/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
758
```unknown CONFIG_FLASH=y CONFIG_NVS=y CONFIG_LOG=y CONFIG_LOG_MODE_IMMEDIATE=y CONFIG_NVS_LOG_LEVEL_DBG=y CONFIG_REBOOT=y CONFIG_MPU_ALLOW_FLASH_WRITE=y ```
/content/code_sandbox/samples/subsys/nvs/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```yaml sample: name: NVS Sample tests: sample.nvs.basic: tags: nvs depends_on: nvs platform_exclude: qemu_x86 integration_platforms: - nrf52dk/nrf52832 harness: console harness_config: type: multi_line regex: - "Id: 1, Address: 192.168.1.1" - "Id: 2, Key: ...
/content/code_sandbox/samples/subsys/nvs/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
452
```unknown CONFIG_HEAP_MEM_POOL_SIZE=256 ```
/content/code_sandbox/samples/subsys/nvs/socs/esp32c3.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9
```restructuredtext .. _samples_subsys_logging_syst: MIPI Sys-T Logging Sample ######################### .. contents:: Table of Contents :depth: 4 :local: :backlinks: none Building and Running ******************** This project outputs a few sample log messages in MIPI Sys-T format. These Sys-T messages can...
/content/code_sandbox/samples/subsys/logging/syst/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,805
```unknown CONFIG_MAIN_STACK_SIZE=2048 ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_f091rc.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 6KB of storage at the end of 128KB flash */ storage_partition: partition@1e800 { label = "storage"; reg = <0x0001e800 DT_SIZE_K(6)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_g431rb.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```unknown &flash0 { partitions { #address-cells = <1>; #size-cells = <1>; compatible = "fixed-partitions"; /* Set 3Kb of storage at the end of the of 1Mb flash 0 */ storage_partition: partition@ff400 { label = "storage"; reg = <0xff400 DT_SIZE_K(3)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/cy8cproto_063_ble.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```unknown /* * */ &mx25lm51245 { status = "disabled"; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/b_u585i_iot02a.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
17
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 6KB of storage at the end of 512KB flash */ storage_partition: partition@7e800 { label = "storage"; reg = <0x0007e800 DT_SIZE_K(6)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/stm32l562e_dk.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 3KB of storage at the end of 128KB flash */ storage_partition: partition@1f400 { label = "storage"; reg = <0x0001f400 DT_SIZE_K(3)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_f103rb.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```c /* * NVS Sample for Zephyr using high level API, the sample illustrates the usage * of NVS for storing data of different kind (strings, binary blobs, unsigned * 32 bit integer) and also how to read them back from flash. The reading of * data is illustrated for both a basic read (latest added value) as well as ...
/content/code_sandbox/samples/subsys/nvs/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,244
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 6KB of storage at the end of 512KB flash */ storage_partition: partition@7e800 { label = "storage"; reg = <0x0007e800 DT_SIZE_K(6)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_g474re.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 12KB of storage at the end of 1st half of flash (dual core constraints) */ storage_partition: partition@7d000 { label = "storage"; reg = <0x0007d000 DT_SIZE_K(12)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_wb55rg.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84
```unknown /* * */ /delete-node/ &scratch_partition; /delete-node/ &storage_partition; / { chosen { zephyr,flash-controller = &flash0; }; }; &flash0 { partitions { /* Set 6Kb of storage at the end of the 1Mb of flash */ storage_partition: partition@fe800 { label = "storage"; reg = <0x000fe800 DT_SI...
/content/code_sandbox/samples/subsys/nvs/boards/disco_l475_iot1.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
104
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K * (nvs.h: uint16_t sector_size) */ storage_partition: partition@100000 { label = "storage"; reg = <0x000100000 DT_SIZE_K(48)>; ...
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_f429zi.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
100
```unknown CONFIG_HEAP_MEM_POOL_SIZE=256 ```
/content/code_sandbox/samples/subsys/nvs/boards/esp32_devkitc_wroom_procpu.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9
```unknown &flash0 { partitions { #address-cells = <1>; #size-cells = <1>; compatible = "fixed-partitions"; /* Set 3Kb of storage at the end of the of 2Mb flash 0 */ storage_partition: partition@1ff400 { label = "storage"; reg = <0x1ff400 DT_SIZE_K(3)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/cy8cproto_062_4343w.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
99
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 6KB of storage at the end of 128KB flash */ storage_partition: partition@1e800 { label = "storage"; reg = <0x0001e800 DT_SIZE_K(6)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_g071rb.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```unknown CONFIG_MAIN_STACK_SIZE=2048 ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_g071rb.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9
```unknown /* * */ /delete-node/ &storage_partition; &flash0 { partitions { /* Set 12KB of storage at the end of 128KB flash */ storage_partition: partition@1d000 { label = "storage"; reg = <0x0001d000 DT_SIZE_K(12)>; }; }; }; ```
/content/code_sandbox/samples/subsys/nvs/boards/nucleo_l152re.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```restructuredtext .. _bindesc_samples: Binary Descriptor Samples ######################### .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/bindesc/bindesc.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown VERSION_MAJOR = 1 VERSION_MINOR = 0 PATCHLEVEL = 0 VERSION_TWEAK = 0 EXTRAVERSION = ```
/content/code_sandbox/samples/subsys/bindesc/hello_bindesc/VERSION
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```unknown # Enable binary descriptors CONFIG_BINDESC=y # Enable definition of binary descriptors CONFIG_BINDESC_DEFINE=y # Enable default build time binary descriptors CONFIG_BINDESC_DEFINE_BUILD_TIME=y CONFIG_BINDESC_BUILD_DATE_TIME_STRING=y # Enable default version binary descriptors CONFIG_BINDESC_DEFINE_VERSION...
/content/code_sandbox/samples/subsys/bindesc/hello_bindesc/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
119
```restructuredtext .. zephyr:code-sample:: hello-bindesc :name: Binary descriptors "Hello World" :relevant-api: bindesc_define Set and access binary descriptors for a basic Zephyr application. Overview ******** A simple sample of :ref:`binary descriptor <binary_descriptors>` definition and usage. Building...
/content/code_sandbox/samples/subsys/bindesc/hello_bindesc/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
223
```yaml sample: name: Hello Bindesc tests: sample.bindesc: tags: bindesc filter: CONFIG_ARCH_SUPPORTS_ROM_START or CONFIG_ARCH_POSIX integration_platforms: - native_sim harness: console harness_config: type: multi_line ordered: true regex: - "Zephyr version: " ...
/content/code_sandbox/samples/subsys/bindesc/hello_bindesc/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
139
```restructuredtext .. _portability-samples: Portability Samples ################### .. toctree:: :maxdepth: 1 :glob: **/* See also :ref:`POSIX API Samples <posix-samples>`. ```
/content/code_sandbox/samples/subsys/portability/portability.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/bindesc.h> BINDESC_STR_DEFINE(my_string, 1, "Hello world!"); BINDESC_UINT_DEFINE(my_int, 2, 5); BINDESC_BYTES_DEFINE(my_bytes, 3, ({1, 2, 3, 4})); int main(void) { size_t i; /* Builtin descriptors */ printk("Zephyr version: %s\n", BINDESC_GET_STR(kernel_...
/content/code_sandbox/samples/subsys/bindesc/hello_bindesc/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
255
```unknown CONFIG_ASSERT=y CONFIG_ASSERT_LEVEL=2 CONFIG_CMSIS_RTOS_V2=y CONFIG_NUM_PREEMPT_PRIORITIES=56 CONFIG_HEAP_MEM_POOL_SIZE=256 CONFIG_THREAD_NAME=y CONFIG_THREAD_STACK_INFO=y CONFIG_THREAD_MONITOR=y CONFIG_INIT_STACKS=y CONFIG_POLL=y CONFIG_SCHED_SCALABLE=y # The Zephyr CMSIS v2 emulation assumes that ticks are...
/content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/timer_synchronization/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
114
```restructuredtext .. zephyr:code-sample:: cmsis-rtos-v2-sync :name: Synchronization using CMSIS RTOS V2 APIs Use timers and message queues from CMSIS RTOS v2 API to synchronize threads. Overview ******** The sample project illustrates usage of timers and message queues using CMSIS RTOS V2 APIs. The main thre...
/content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/timer_synchronization/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
417
```yaml sample: name: CMSIS_RTOS_V2 Synchronization tests: sample.portability.cmsis_rtos_v2.timer_synchronization: integration_platforms: - native_sim platform_exclude: - qemu_arc/qemu_arc_hs5x # See issue #62405 tags: cmsis_rtos min_ram: 32 min_flash: 34 harness: console ha...
/content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/timer_synchronization/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
138
```c /* * */ /** * @file Synchronization demo using CMSIS RTOS V2 APIs. */ #include <zephyr/kernel.h> #include <cmsis_os2.h> /* specify delay between greetings (in ms); compute equivalent in ticks */ #define TIMER_TICKS 50 #define MSGLEN 12 #define Q_LEN 1 #define INITIAL_DATA_VALUE 5 const osTimerAttr_t timer...
/content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/timer_synchronization/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
632
```restructuredtext .. zephyr:code-sample:: cmsis-rtos-v2 :name: Dining Philosophers (CMSIS RTOS V2 APIs) Implement a solution to the Dining Philosophers problem using CMSIS RTOS V2. Overview ******** This sample implements a solution to the `Dining Philosophers problem <path_to_url`_ (a classic multi-thread sy...
/content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/philosophers/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
546