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 |
|---|---|---|---|---|---|---|---|---|
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/drivers/ipm.h>
#include <openamp/open_amp.h>
#include <metal/sys.h>
#include <metal/io.h>
#include <resource_table.h>
#ifdef CONFIG_SHELL_BACKEND_RPMSG... | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,667 |
```unknown
CONFIG_PRINTK=y
CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
CONFIG_MBOX=y
CONFIG_LOG=y
CONFIG_ASSERT=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```unknown
CONFIG_PRINTK=y
CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
CONFIG_MBOX=y
CONFIG_LOG=y
CONFIG_ASSERT=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```yaml
sample:
name: IPC Service example integration (icmsg backend)
tests:
sample.ipc.icmsg:
platform_allow: nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
tags: ipc
sysbuild: true
harness: console
harness_config:
type: multi_line
ordered: fals... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 676 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_rx: memory@20070000 {
reg = <0x20070000 0x0800>;
};
sram_tx: memory@20078000 {
reg = <0x20078000 0x0800>;
};
};
ipc {
/delete-node/ ipc0;
ipc0: ipc0 {
compatib... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/remote/boards/nrf5340dk_nrf5340_cpunet.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 194 |
```unknown
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_MBOX_STM32_HSEM=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/remote/boards/stm32h747i_disco_stm32h747xx_m4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 26 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/ipc/ipc_service.h>
#include "common.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(remote, LOG_LEVEL_INF);
#if defined(CONFIG_MULTITHREADING)
K_SEM_DEFINE(bound_sem, 0, 1);
#else
volatile uint32_t bound_sem = 1;
volatile ... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 956 |
```unknown
/*
*
*/
/ {
soc {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
sram_tx: memory@20018000 {
reg = <0x20018000 0x0800>;
};
sram_rx: memory@20020000 {
reg = <0x20020000 0x0800>;
};
};
};
ipc {
ipc0: ipc0 {
compatible = "zephyr,ipc-icmsg";
tx-region = <... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/remote/boards/nrf54l15pdk_nrf54l15_cpuflpr.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 224 |
```objective-c
/*
*
*/
#ifndef __COMMON_H__
#define __COMMON_H__
#define PACKET_SIZE_START (40)
#define DATA_SIZE (100)
#define SENDING_TIME_MS (1000)
struct data_packet {
unsigned long cnt;
unsigned long size;
unsigned char data[DATA_SIZE];
};
#endif /* __COMMON_H__ */
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/common/common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
zephyr,console = &uart8;
zephyr,shell-uart = &uart8;
};
/* Define new memory regions for TX and RX */
/delete-node/ memory@38000000;
sram_rx: memory@38000000 {
zephyr,memory-region = "SRAM_RX";
compatible = "zephyr,memory-region", ... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/remote/boards/stm32h747i_disco_stm32h747xx_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 330 |
```unknown
CONFIG_SOC_NRF53_CPUNET_ENABLE=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/boards/nrf5340dk_nrf5340_cpuapp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```unknown
CONFIG_MBOX_STM32_HSEM=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/boards/stm32h747i_disco_stm32h747xx_m7.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```unknown
/*
*
*/
/ {
soc {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
sram_rx: memory@20018000 {
reg = <0x20018000 0x0800>;
};
sram_tx: memory@20020000 {
reg = <0x20020000 0x0800>;
};
};
};
ipc {
ipc0: ipc0 {
compatible = "zephyr,ipc-icmsg";
tx-region = <... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 220 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
/* Define new memory regions for TX and RX */
/delete-node/ memory@38000000;
sram_tx: memory@38000000 {
zephyr,memory-region = "SRAM_TX";
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x38000000 0x08000>;
zephyr,memo... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/boards/stm32h747i_disco_stm32h747xx_m7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 296 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/ipc/ipc_service.h>
#if defined(CONFIG_SOC_NRF5340_CPUAPP)
#include <nrf53_cpunet_mgmt.h>
#endif
#include <string.h>
#include "common.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(host, LOG_LEVEL_INF);
#if defined(CONFIG_... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,310 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_tx: memory@20070000 {
reg = <0x20070000 0x0800>;
};
sram_rx: memory@20078000 {
reg = <0x20078000 0x0800>;
};
};
ipc {
/delete-node/ ipc0;
ipc0: ipc0 {
compatib... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/boards/nrf5340dk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```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(REMOTE_APP remote)
ExternalZephyrProject_Add(
APPLICATION ${REMOTE_APP}
SOURCE_DIR ${APP_DIR}/${REMOTE_APP}
BOARD ... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```unknown
#
source "share/sysbuild/Kconfig"
config NET_CORE_BOARD
string
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
default "mimxrt1170_evk/mimxrt1176/c... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 177 |
```unknown
#
source "Kconfig.zephyr"
config INCLUDE_REMOTE_DIR
bool "Include remote core header directory"
help
Include remote build header files. Can be used if primary image
needs to be aware of size or base address of secondary image
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
CONFIG_PRINTK=y
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_OPENAMP=y
CONFIG_OPENAMP_SLAVE=n
CONFIG_LOG=y
CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```yaml
sample:
name: IPC Service example integration (OpenAMP static_vrings backend)
tests:
sample.ipc.static_vrings:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
- lpcxpresso55s69/lpc55s69/cpu0
- mimxrt1160_evk/mimxrt1166/cm7
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt1170_evk@B/mimxr... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 289 |
```unknown
CONFIG_PRINTK=y
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_OPENAMP=y
CONFIG_OPENAMP_MASTER=n
CONFIG_LOG=y
CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```restructuredtext
.. zephyr:code-sample:: ipc-static-vrings
:name: IPC service: static vrings backend
:relevant-api: ipc
Send messages between two cores using the IPC service and static vrings backend.
Overview
********
This application demonstrates how to use IPC Service and the static vrings
backend wit... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 847 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_BUILD_OUTPUT_INFO_HEADER=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/mimxrt1170_evk_mimxrt1176_cm4_B.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_BUILD_OUTPUT_INFO_HEADER=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/mimxrt1160_evk_mimxrt1166_cm4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* co... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/mimxrt1170_evk_mimxrt1176_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 797 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* co... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/mimxrt1160_evk_mimxrt1166_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 797 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_BUILD_OUTPUT_HEX=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/ipc/ipc_service.h>
#define STACKSIZE (1024)
#define PRIORITY K_PRIO_PREEMPT(2)
K_THREAD_STACK_DEFINE(ipc0A_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc0B_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc1_stack, STACKSIZE);
static vol... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,007 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_BUILD_OUTPUT_INFO_HEADER=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/mimxrt1170_evk_mimxrt1176_cm4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_ipc0: memory@20070000 {
reg = <0x20070000 0x8000>;
};
sram_ipc1: memory@20078000 {
reg = <0x20078000 0x8000>;
}... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/nrf5340dk_nrf5340_cpunet.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 323 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* co... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/mimxrt1170_evk_mimxrt1176_cm4_B.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 797 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
/delete-property/ zephyr,ipc_shm;
};... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 610 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/lpcxpresso55s69_lpc55s69_cpu0.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
/delete-property/ zephyr,ipc_shm;
... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 648 |
```unknown
CONFIG_SOC_NRF53_CPUNET_ENABLE=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/nrf5340dk_nrf5340_cpuapp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/ipc/ipc_service.h>
#define STACKSIZE (4096)
#define PRIORITY K_PRIO_PREEMPT(2)
K_THREAD_STACK_DEFINE(ipc0A_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc0B_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc1_stack, STACKSIZE);
static vol... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,031 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
/delete-property/ zephyr,ipc_shm;
};... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/lpcxpresso55s69_lpc55s69_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 609 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_SECOND_CORE_MCUX=y
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_SECOND_CORE_MCUX=y
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/mimxrt1160_evk_mimxrt1166_cm7.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
/delete-property/ zephyr,ipc_shm;
... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/mimxrt1160_evk_mimxrt1166_cm7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 648 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_SECOND_CORE_MCUX=y
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/mimxrt1170_evk_mimxrt1176_cm7.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
/delete-property/ zephyr,ipc_shm;
... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/mimxrt1170_evk_mimxrt1176_cm7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 648 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_ipc0: memory@20070000 {
reg = <0x20070000 0x8000>;
};
sram_ipc1: memory@20078000 {
reg = <0x20078000 0x8000>;
}... | /content/code_sandbox/samples/subsys/ipc/ipc_service/static_vrings/boards/nrf5340dk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 359 |
```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()
ExternalZephyrProject_Add(
APPLICATION remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_NET_CORE_BOARD}
)
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
#
source "share/sysbuild/Kconfig"
config NET_CORE_BOARD
string
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```unknown
CONFIG_PRINTK=y
CONFIG_LOG_PRINTK=n
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_LOG=y
CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```yaml
sample:
name: IPC Service example integration (icmsg multi endpoint backend)
common:
harness: console
harness_config:
type: multi_line
ordered: false
regex:
- "IPC-service HOST \\[INST 0 - ENDP A\\] demo started"
- "IPC-service HOST \\[INST 0 - ENDP B\\] demo started"
- "IPC-... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 322 |
```unknown
CONFIG_PRINTK=y
CONFIG_LOG_PRINTK=n
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_LOG=y
CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```restructuredtext
.. _ipc_multi_endpoint_sample:
IPC Service - Multi-endpoint Sample Application
###############################################
This application demonstrates how to use IPC Service with multiple endpoints.
By default, it uses the ``icmsg_me`` backend.
You can also configure it to use the ``icbmsg``... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 667 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_ipc0_rx: memory@20070000 {
reg = <0x20070000 0x4000>;
};
sram_ipc0_tx: memory@20074000 {
reg = <0x20074000 0x4000>;
};
sram_ipc1_rx: memory@20078000 {
reg = <0x2007... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/remote/boards/nrf5340dk_nrf5340_cpunet_icbmsg.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 387 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_ipc0_rx: memory@20070000 {
reg = <0x20070000 0x4000>;
};
sram_ipc0_tx: memory@20074000 {
reg = <0x20074000 0x4000>;
};
sram_ipc1_rx: memory@20078000 {
reg = <0x2007... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/remote/boards/nrf5340dk_nrf5340_cpunet.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 357 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/ipc/ipc_service.h>
#define STACKSIZE (1024)
#define PRIORITY K_PRIO_PREEMPT(2)
K_THREAD_STACK_DEFINE(ipc0A_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc0B_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc1_stack, STACKSIZE);
static vol... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,772 |
```unknown
CONFIG_SOC_NRF53_CPUNET_ENABLE=y
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/boards/nrf5340dk_nrf5340_cpuapp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_ipc0_tx: memory@20070000 {
reg = <0x20070000 0x4000>;
};
sram_ipc0_rx: memory@20074000 {
reg = <0x20074000 0x4000>;
};
sram_ipc1_tx: memory@20078000 {
reg = <0x2007... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/boards/nrf5340dk_nrf5340_cpuapp_icbmsg.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 424 |
```unknown
/*
*
*/
/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};
reserved-memory {
/delete-node/ memory@20070000;
sram_ipc0_tx: memory@20070000 {
reg = <0x20070000 0x4000>;
};
sram_ipc0_rx: memory@20074000 {
reg = <0x20074000 0x4000>;
};
sram_ipc1_tx: memory@20078000 {
reg = <0x2007... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/boards/nrf5340dk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 394 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/ipc/ipc_service.h>
#define STACKSIZE (4096)
#define PRIORITY K_PRIO_PREEMPT(2)
K_THREAD_STACK_DEFINE(ipc0A_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc0B_stack, STACKSIZE);
K_THREAD_STACK_DEFINE(ipc1_stack, STACKSIZE);
static vol... | /content/code_sandbox/samples/subsys/ipc/ipc_service/multi_endpoint/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,799 |
```cmake
cmake_minimum_required(VERSION 3.20.0)
#
#
ExternalZephyrProject_Add(
APPLICATION rpmsg_service_remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_RPMSG_REMOTE_BOARD}
)
add_dependencies(${DEFAULT_IMAGE} rpmsg_service_remote)
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```unknown
#
source "share/sysbuild/Kconfig"
config RPMSG_REMOTE_BOARD
string
default "mps2/an521/cpu1" if $(BOARD) = "mps2"
default "v2m_musca_b1/musca_b1/ns" if $(BOARD) = "v2m_musca_b1"
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```unknown
CONFIG_PRINTK=y
CONFIG_IPM=y
CONFIG_TIMESLICE_SIZE=1
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_RPMSG_SERVICE=y
CONFIG_RPMSG_SERVICE_MODE_MASTER=y
CONFIG_OPENAMP_SLAVE=n
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```yaml
sample:
name: IPC Service example integration (rpmsg backend)
tests:
sample.ipc.rpmsg_service:
platform_allow:
- mps2/an521/cpu0
- v2m_musca_b1/musca_b1
integration_platforms:
- mps2/an521/cpu0
- v2m_musca_b1/musca_b1
tags:
- ipc
- openamp
sysbuild: true
... | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 110 |
```unknown
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_IPM=y
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
CONFIG_RPMSG_SERVICE=y
CONFIG_RPMSG_SERVICE_MODE_REMOTE=y
CONFIG_OPENAMP_MASTER=n
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```restructuredtext
.. zephyr:code-sample:: rpmsg-service
:name: RPMsg service
:relevant-api: rpmsg_service_api
Send messages between cores using RPMsg service.
Overview
********
RPMsg Service is an abstraction created over OpenAMP that makes initialization
and endpoints creation process easier.
This applic... | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,175 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@281F8000 {
compatible = "mmio-sram";
reg = <0x281F8000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/remote/boards/mps2_an521_cpu1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@20060000 {
compatible = "mmio-sram";
reg = <0x20060000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/remote/boards/v2m_musca_b1_musca_b1_ns.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,ipc_shm = &sram4;
zephyr,ipc = &mailbox;
};
};
&mailbox {
status = "okay";
};
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/remote/boards/stm32h747i_disco_stm32h747xx_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/ipc/rpmsg_service.h>
#define APP_TASK_STACK_SIZE (1024)
K_THREAD_STACK_DEFINE(thread... | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 552 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@281F8000 {
compatible = "mmio-sram";
reg = <0x281F8000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/boards/mps2_an521_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,ipc_shm = &sram4;
zephyr,ipc = &mailbox;
};
};
&mailbox {
status = "okay";
};
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/boards/stm32h747i_disco_stm32h747xx_m7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@20060000 {
compatible = "mmio-sram";
reg = <0x20060000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/boards/v2m_musca_b1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
menu "Zephyr"
source "Kconfig.zephyr"
endmenu
module = APP
module-str = Application
source "subsys/logging/Kconfig.template.log_config"
config APP_PROVIDE_PM_HOOKS
bool "Application provides PM hooks"
default y
select HAS_PM
``` | /content/code_sandbox/samples/subsys/pm/latency/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
CONFIG_PM=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/subsys/pm/latency/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/init.h>
#include <zephyr/ipc/rpmsg_service.h>
#define APP_TASK_STACK_SIZE (1024)
K_THREAD_STACK_DEFINE(thread... | /content/code_sandbox/samples/subsys/ipc/rpmsg_service/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 663 |
```yaml
sample:
name: Demonstrate usage of the PM policy latency APIs
tests:
sample.pm.latency:
platform_allow:
- native_posix
- native_sim
integration_platforms:
- native_sim
tags: pm
harness: console
harness_config:
type: multi_line
regex:
- "<inf> app: Sl... | /content/code_sandbox/samples/subsys/pm/latency/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 870 |
```c
/*
*/
#include "test.h"
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/policy.h>
#include <zephyr/sys_clock.h>
LOG_MODULE_REGISTER(app, CONFIG_APP_LOG_LEVEL);
static void on_latency_changed(int32_t latency)
{
if (latency == SYS_FOREVER_US) {
LOG_IN... | /content/code_sandbox/samples/subsys/pm/latency/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 831 |
```objective-c
/*
*/
#include <zephyr/device.h>
struct test_api {
void (*open)(const struct device *dev);
void (*close)(const struct device *dev);
};
static inline void test_open(const struct device *dev)
{
const struct test_api *api =
(const struct test_api *)dev->api;
api->open(dev);
}
static inline void ... | /content/code_sandbox/samples/subsys/pm/latency/src/test.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 108 |
```c
/*
*
*/
#include "test.h"
#include <zephyr/logging/log.h>
#include <zephyr/pm/policy.h>
#include <zephyr/sys_clock.h>
LOG_MODULE_REGISTER(dev_test, CONFIG_APP_LOG_LEVEL);
struct dev_test_data {
struct pm_policy_latency_subscription subs;
struct pm_policy_latency_request req;
};
static void on_latency_chan... | /content/code_sandbox/samples/subsys/pm/latency/src/test.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 334 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/pm.h>
LOG_MODULE_REGISTER(soc_pm, CONFIG_APP_LOG_LEVEL);
static const char *state2str(enum pm_state state)
{
switch (state) {
case PM_STATE_RUNTIME_IDLE:
return "RUNTIME_IDLE";
case PM_STATE_SUSPEND_TO_IDLE:
return "... | /content/code_sandbox/samples/subsys/pm/latency/src/pm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 261 |
```unknown
#include "native_sim.overlay"
``` | /content/code_sandbox/samples/subsys/pm/latency/boards/native_posix.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y
CONFIG_PM_STATS=y
CONFIG_STATS=y
``` | /content/code_sandbox/samples/subsys/pm/device_pm/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
/*
*/
/ {
power-states {
runtime_idle: runtime-idle {
compatible = "zephyr,power-state";
power-state-name = "runtime-idle";
min-residency-us = <1000000>;
exit-latency-us = <10000>;
};
suspend_to_idle: suspend-to-idle {
compatible = "zephyr,power-state";
power-state-name = "suspend-... | /content/code_sandbox/samples/subsys/pm/latency/boards/native_sim.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 201 |
```c
/*
*
*/
#include <zephyr/sys/printk.h>
#include "dummy_driver.h"
/* Application main Thread */
int main(void)
{
const struct device *dev;
struct dummy_driver_api *api;
int ret, val;
printk("Device PM sample app start\n");
dev = device_get_binding(DUMMY_DRIVER_NAME);
api = (struct dummy_driver_api *)dev-... | /content/code_sandbox/samples/subsys/pm/device_pm/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 131 |
```yaml
sample:
name: Device Idle Power Management
tests:
sample.power.ospm.dev_idle_pm:
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- qemu_x86
- mps2/an385
integration_platforms:
- qemu_x86
tags: power
harness: console
harness_config:
type: multi... | /content/code_sandbox/samples/subsys/pm/device_pm/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 177 |
```objective-c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#define DUMMY_DRIVER_NAME "dummy_driver"
typedef int (*dummy_api_open_t)(const struct device *dev);
typedef int (*dummy_api_read_t)(const struct device *dev,
uint32_t *val);
typedef int (*dummy_api_write_t)(const struct device *d... | /content/code_sandbox/samples/subsys/pm/device_pm/src/dummy_driver.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 133 |
```objective-c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#define DUMMY_PARENT_NAME "dummy_parent"
#define DUMMY_PARENT_RD 0
#define DUMMY_PARENT_WR 1
typedef int (*dummy_api_transfer_t)(const struct device *dev, uint32_t cmd,
uint32_t *val);
struct dummy_parent_api {
dummy_api_trans... | /content/code_sandbox/samples/subsys/pm/device_pm/src/dummy_parent.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```c
/*
*
*/
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/sys/printk.h>
#include "dummy_parent.h"
#include "dummy_driver.h"
static const struct device *parent;
static int dummy_open(const struct device *dev)
{
int ret;
enum pm_device_state state;
/* Make sure parent is r... | /content/code_sandbox/samples/subsys/pm/device_pm/src/dummy_driver.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 580 |
```restructuredtext
.. _debug-samples:
Debug Samples
#################
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/subsys/debug/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```c
/*
*
*/
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/sys/printk.h>
#include "dummy_parent.h"
static uint32_t store_value;
static int dummy_transfer(const struct device *dev, uint32_t cmd,
uint32_t *val)
{
if (cmd == DUMMY_PARENT_WR) {
store_value = *val;
} else... | /content/code_sandbox/samples/subsys/pm/device_pm/src/dummy_parent.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 269 |
```unknown
CONFIG_CORTEX_M_DEBUG_MONITOR_HOOK=y
``` | /content/code_sandbox/samples/subsys/debug/debugmon/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```yaml
sample:
name: debug monitor sample
tests:
sample.debug.debugmon:
build_only: true
platform_allow: reel_board
tags: debug
``` | /content/code_sandbox/samples/subsys/debug/debugmon/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```restructuredtext
.. _debugmon-sample:
Debug monitor
#############
Overview
********
The Debug Monitor sample shows a basic configuration of debug monitor feature.
The source code shows how to:
#. Configure registers to enable degugging in debug monitor mode
#. Specify custom interrupt to be executed when enter... | /content/code_sandbox/samples/subsys/debug/debugmon/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 249 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/printk.h>
#include <cmsis_core.h>
#include <zephyr/arch/arm/exception.h>
#define LED0_NODE DT_ALIAS(led0)
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
void timer_handler(struct k_timer *timer... | /content/code_sandbox/samples/subsys/debug/debugmon/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 517 |
```unknown
config ARCH_POSIX_FUZZ_IRQ
int "OS interrupt via which to deliver fuzz cases"
default 31
help
In this sample, new fuzz cases are delivered to Zephyr
via interrupts. The IRQ should be otherwise unused, but can
be any value desired by the app.
config ARCH_POSIX_FUZZ_TICKS
int "Ticks to allow fo... | /content/code_sandbox/samples/subsys/debug/fuzz/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```unknown
CONFIG_ARCH_POSIX_LIBFUZZER=y
``` | /content/code_sandbox/samples/subsys/debug/fuzz/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```restructuredtext
Fuzzing Example
###############
Overview
********
This is a simple example of fuzz test integration with Zephyr apps
that displays LLVM libfuzzer's most important feature: it's ability to
detect and explore deep and complicated call trees by exploiting
coverage information gleaned from instrumente... | /content/code_sandbox/samples/subsys/debug/fuzz/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,075 |
```yaml
sample:
description: native_posix-based libfuzzer example
name: fuzz
tests:
sample.debug.fuzz:
toolchain_allow: llvm
platform_allow: native_posix/native/64
harness: console
harness_config:
type: one_line
# The sample will run all the way to key 6 (to show off its
# abilit... | /content/code_sandbox/samples/subsys/debug/fuzz/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 145 |
```restructuredtext
.. zephyr:code-sample:: edac
:name: EDAC shell
:relevant-api: edac
Test error detection and correction (EDAC) using shell commands.
Overview
********
This sample demonstrates the :ref:`EDAC driver API <edac_api>` in a simple EDAC shell sample.
Building and Running
********************
... | /content/code_sandbox/samples/subsys/edac/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 768 |
```unknown
CONFIG_LOG=y
CONFIG_EDAC=y
CONFIG_EDAC_IBECC=y
CONFIG_EDAC_ERROR_INJECT=y
CONFIG_EDAC_LOG_LEVEL_ERR=y
CONFIG_SHELL=y
CONFIG_EDAC_SHELL=y
``` | /content/code_sandbox/samples/subsys/edac/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```yaml
sample:
description: EDAC shell sample application
name: edac shell
common:
tags: edac
harness: console
harness_config:
type: one_line
regex:
- "EDAC shell application initialized"
tests:
sample.subsys.edac:
platform_allow: intel_ehl_crb
integration_platforms:
- intel_eh... | /content/code_sandbox/samples/subsys/edac/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```c
*/
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/irq.h>
#include <irq_ctrl.h>
#if defined(CONFIG_BOARD_NATIVE_SIM)
#include <nsi_cpu_if.h>
#include <nsi_main_semipublic.h>
#elif defined(CONFIG_BOARD_NATIVE_POSIX)
/* Note: native_posix will be deprecated soon */
extern void posix_init(int argc, c... | /content/code_sandbox/samples/subsys/debug/fuzz/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,064 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.