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 |
|---|---|---|---|---|---|---|---|---|
```unknown
CONFIG_SHELL=y
CONFIG_FPGA=y
CONFIG_EOS_S3_FPGA=y
CONFIG_FPGA_SHELL=y
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
CONFIG_BOOT_BANNER=n
``` | /content/code_sandbox/samples/drivers/fpga/fpga_controller/prj_shell.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 43 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/ps2.h>
#include <soc.h>
#define LOG_LEVEL LOG_LEVEL_DBG
#include <zephyr/logging/log.h>
#define LOG_MODULE_NAME main
LOG_MODULE_REGISTER();
#define TASK_STACK_SIZE 1024
#define PRIORITY 7
/*Minimum safe time interval be... | /content/code_sandbox/samples/drivers/ps2/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,876 |
```unknown
CONFIG_FPGA=y
CONFIG_EOS_S3_FPGA=y
``` | /content/code_sandbox/samples/drivers/fpga/fpga_controller/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```yaml
sample:
name: FPGA Controller sample
common:
tags: FPGA
build_only: true
tests:
sample.drivers.fpga_controller:
platform_allow: quick_feather
sample.drivers.fpga_controller.shell:
platform_allow: quick_feather
extra_args: CONF_FILE="prj_shell.conf"
``` | /content/code_sandbox/samples/drivers/fpga/fpga_controller/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/shell/shell.h>
#include <zephyr/device.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/fpga.h>
#include "redled.h"
#include "greenled.h"
#include <eoss3_dev.h>
const struct device *const fpga = DEVICE_DT_GET(DT_NODELABEL(fpga0));
int main(void)
{
... | /content/code_sandbox/samples/drivers/fpga/fpga_controller/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 420 |
```restructuredtext
.. zephyr:code-sample:: fpga-controller
:name: FPGA Controller
Load a bitstream into an FPGA and perform basic operations on it.
Overview
********
This module is an FPGA driver that can easily load a bitstream, reset it, check its status, enable or disable the FPGA.
This sample demonstrates ... | /content/code_sandbox/samples/drivers/fpga/fpga_controller/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 798 |
```objective-c
/*
* Generated by path_to_url Open Source FPGA toolchain
*
*/
uint32_t axFPGABitStream_green[] = {
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000... | /content/code_sandbox/samples/drivers/fpga/fpga_controller/src/greenled.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 132,961 |
```unknown
CONFIG_TINYCRYPT=y
CONFIG_TINYCRYPT_AES=y
CONFIG_TINYCRYPT_AES_CBC=y
CONFIG_TINYCRYPT_AES_CTR=y
CONFIG_TINYCRYPT_AES_CCM=y
CONFIG_CRYPTO_TINYCRYPT_SHIM=y
``` | /content/code_sandbox/samples/drivers/crypto/prj_tinycrypt_shim.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```unknown
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
CONFIG_MBEDTLS_HEAP_SIZE=512
CONFIG_MBEDTLS_CIPHER_AES_ENABLED=y
CONFIG_MBEDTLS_CIPHER_CCM_ENABLED=y
CONFIG_MBEDTLS_CIPHER_GCM_ENABLED=y
CONFIG_CRYPTO_MBEDTLS_SHIM=y
``` | /content/code_sandbox/samples/drivers/crypto/prj_mtls_shim.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```restructuredtext
.. zephyr:code-sample:: crypto
:name: Crypto
:relevant-api: crypto
Use the crypto APIs to perform various encryption/decryption operations.
Overview
********
An example to illustrate the usage of :ref:`crypto APIs <crypto_api>`.
Building and Running
********************
This project out... | /content/code_sandbox/samples/drivers/crypto/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 322 |
```unknown
CONFIG_CRYPTO=y
CONFIG_CRYPTO_LOG_LEVEL_DBG=y
CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_MAIN_STACK_SIZE=4096
``` | /content/code_sandbox/samples/drivers/crypto/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```yaml
sample:
description: An example to illustrate the usage of
crypto APIs
name: Crypto APIs
common:
tags: crypto
min_ram: 20
arch_exclude: xtensa
tests:
sample.drivers.crypto.tinycrypt:
min_flash: 34
harness: console
extra_args: EXTRA_CONF_FILE=prj_tinycrypt_shim.conf
integration_pl... | /content/code_sandbox/samples/drivers/crypto/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 530 |
```objective-c
/*
* Generated by path_to_url Open Source FPGA toolchain
*
*/
uint32_t axFPGABitStream_red[] = {
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x0000000... | /content/code_sandbox/samples/drivers/fpga/fpga_controller/src/redled.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 132,961 |
```unknown
/*
*
*/
&crypto {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/crypto/boards/da1469x_dk_pro.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```restructuredtext
.. zephyr:code-sample:: clock-control-litex
:name: LiteX clock control driver
:relevant-api: clock_control_interface
Use LiteX clock control driver to generate multiple clock signals.
Introduction
************
This sample is providing an overview of LiteX clock control driver capabilitie... | /content/code_sandbox/samples/drivers/clock_control_litex/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,630 |
```unknown
CONFIG_CLOCK_CONTROL=y
CONFIG_HEAP_MEM_POOL_SIZE=4096
``` | /content/code_sandbox/samples/drivers/clock_control_litex/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```yaml
sample:
name: Sample for the clock control driver
tests:
sample.driver.clock_control_litex:
platform_allow: litex_vexriscv
tags:
- clock_control
- mmcm
``` | /content/code_sandbox/samples/drivers/clock_control_litex/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```c
/*
*
*/
/* Sample to illustrate the usage of crypto APIs. The sample plaintext
* and ciphertexts used for crosschecking are from TinyCrypt.
*/
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/crypto/crypto.h>
#define LOG_LEVEL CONFIG_CRYPTO_LOG_LEVEL
#include <zephy... | /content/code_sandbox/samples/drivers/crypto/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,900 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_litex.h>
/* Test defines */
/* Select clock outputs for tests [0-6] */
#define LITEX_CLK_TEST_CLK1 0
#define LITEX_CLK_TEST_CLK2 1
... | /content/code_sandbox/samples/drivers/clock_control_litex/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,787 |
```unknown
CONFIG_I2C=y
CONFIG_I2C_TARGET=y
``` | /content/code_sandbox/samples/drivers/i2c/custom_target/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```yaml
sample:
name: I2C custom target sample
tests:
sample.drivers.i2c.custom_target:
tags: i2c_target
platform_allow:
- lpcxpresso55s69/lpc55s69/cpu0
harness: TBD
``` | /content/code_sandbox/samples/drivers/i2c/custom_target/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```restructuredtext
.. zephyr:code-sample:: i2c-custom-target
:name: I2C Custom Target
:relevant-api: i2c_interface
Setup a custom I2C target on the I2C interface.
Overview
********
This sample demonstrates how to setup an I2C custom target on the I2C interface
using the :ref:`i2c-target-api`.
Requirements... | /content/code_sandbox/samples/drivers/i2c/custom_target/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 208 |
```unknown
/*
*
*/
&flexcomm4 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/i2c/custom_target/boards/lpcxpresso55s69_lpc55s69_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```restructuredtext
.. zephyr:code-sample:: i2c-eeprom-target
:name: I2C Target
:relevant-api: i2c_interface
Setup an I2C target on the I2C interface.
Overview
********
This sample demonstrates how to setup and use the :ref:`i2c-target-api` using the
:dtcompatible:`zephyr,i2c-target-eeprom` device.
Require... | /content/code_sandbox/samples/drivers/i2c/target_eeprom/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 214 |
```unknown
CONFIG_I2C=y
CONFIG_I2C_TARGET=y
CONFIG_I2C_EEPROM_TARGET=y
``` | /content/code_sandbox/samples/drivers/i2c/target_eeprom/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```yaml
sample:
name: I2C target sample
tests:
sample.drivers.i2c.target:
tags: i2c_target
filter: dt_nodelabel_enabled("target_eeprom")
platform_allow:
- lpcxpresso55s69/lpc55s69/cpu0
harness: TBD
sample.drivers.i2c.target.kinetis:
tags: i2c_target
filter: dt_nodelabel_enabled("targ... | /content/code_sandbox/samples/drivers/i2c/target_eeprom/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 172 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c/target/eeprom.h>
static const struct device *eeprom = DEVICE_DT_GET(DT_NODELABEL(eeprom0));
int main(void)
{
printk("i2c target sample\n");
if (!device_is_ready(eeprom)) {
printk... | /content/code_sandbox/samples/drivers/i2c/target_eeprom/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 211 |
```unknown
/*
*
*/
&flexcomm4 {
status = "okay";
eeprom0: eeprom@50 {
reg = <0x50>;
size = <256>;
compatible = "zephyr,i2c-target-eeprom";
status = "okay";
};
};
``` | /content/code_sandbox/samples/drivers/i2c/target_eeprom/boards/lpcxpresso55s69_lpc55s69_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
/*
*
*/
&lpi2c0 {
eeprom0: eeprom@54 {
reg = <0x54>;
size = <256>;
compatible = "zephyr,i2c-target-eeprom";
status = "okay";
};
};
target_eeprom: &eeprom0{};
``` | /content/code_sandbox/samples/drivers/i2c/target_eeprom/boards/frdm_ke17z512.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/i2c.h>
static const struct device *bus = DEVICE_DT_GET(DT_NODELABEL(flexcomm4));
static char last_byte;
/*
* @brief Callback which is called when a write request is received from the master.
* @param config Pointer to... | /content/code_sandbox/samples/drivers/i2c/custom_target/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 639 |
```restructuredtext
.. zephyr:code-sample:: ipm-imx
:name: IPM on NXP i.MX
:relevant-api: ipm_interface
Implement inter-processor mailbox (IPM) on i.MX SoCs containing a Messaging Unit peripheral.
Overview
********
This simple example can be used with multicore i.MX SoCs containing a
Messaging Unit periphera... | /content/code_sandbox/samples/drivers/ipm/ipm_imx/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 686 |
```unknown
/*
*
*/
&lpi2c0 {
eeprom0: eeprom@54 {
reg = <0x54>;
size = <256>;
compatible = "zephyr,i2c-target-eeprom";
status = "okay";
};
};
target_eeprom: &eeprom0{};
``` | /content/code_sandbox/samples/drivers/i2c/target_eeprom/boards/frdm_ke17z.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```yaml
sample:
description: the sample reads the received data from the Messaging Unit using the
IPM and transmits it back unchanged
name: i.MX IPM sample
tests:
sample.ipm.ipm_imx:
build_only: true
filter: CONFIG_SOC_FAMILY_NXP_IMX
platform_allow:
- udoo_neo_full/mcimx6x/m4
- colibri... | /content/code_sandbox/samples/drivers/ipm/ipm_imx/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 150 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
static void ipm_callback(const struct device *dev, void *context,
uint32_t id, volatile void *data)
{
int i;
int status;
uint32_t *data32 = (uint32_t *)data;
printk("%s: id = %u... | /content/code_sandbox/samples/drivers/ipm/ipm_imx/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 303 |
```unknown
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=y
CONFIG_IPM=y
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_imx/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 29 |
```cmake
#
# Add external project
ExternalZephyrProject_Add(
APPLICATION ipm_mcux_remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_IPM_REMOTE_BOARD}
)
# Add dependencies so that the remote sample will be built first
# This is required because some primary cores need information from the
# remote co... | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 151 |
```unknown
#
source "share/sysbuild/Kconfig"
config IPM_REMOTE_BOARD
string
default "lpcxpresso54114/lpc54114/m0" if $(BOARD) = "lpcxpresso54114"
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
``` | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```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/drivers/ipm/ipm_mcux/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
CONFIG_PRINTK=y
CONFIG_IPM=y
CONFIG_SECOND_CORE_MCUX=y
CONFIG_TIMESLICE_SIZE=1
CONFIG_MAIN_STACK_SIZE=2048
``` | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```yaml
sample:
description: Sample app that sends messages between the two cores on the lpcxpresso54114
using a mailbox.
name: IPM MCUX Mailbox Sample
tests:
sample.ipm.ipm_mcux:
platform_allow:
- lpcxpresso54114/lpc54114/m4
- lpcxpresso55s69/lpc55s69/cpu0
integration_platforms:
- l... | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 164 |
```unknown
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_IPM=y
CONFIG_PLATFORM_SPECIFIC_INIT=n
CONFIG_SECOND_CORE_MCUX=y
CONFIG_BUILD_OUTPUT_HEX=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```yaml
sample:
description: Sample app that sends messages between the two cores on the lpcxpresso54114
using a mailbox.
name: IPM MCUX Mailbox Sample
tests:
sample.ipm.ipm_mcux.remote:
platform_allow:
- lpcxpresso54114/lpc54114/m0
- lpcxpresso55s69/lpc55s69/cpu1
integration_platforms:
... | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/remote/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 119 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
void ping_ipm_callback(const struct device *dev, void *context,
uint32_t id, volatile void *data)
{
ipm_send(dev, 1, 0, (const void *)data, 4);
}
int main(void)
{
const str... | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/remote/src/main_remote.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 173 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
int gcounter;
void ping_ipm_callback(const struct device *dev, void *context,
uint32_t id, volatile void *data)
{
gcounter = *(int *)data;
/* Show current ping-pong counter v... | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/src/main_master.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 349 |
```unknown
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/boards/lpcxpresso54114_lpc54114_m4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```restructuredtext
.. zephyr:code-sample:: ipm-mcux
:name: IPM on NXP LPC
:relevant-api: ipm_interface
Implement inter-processor mailbox (IPM) on NXP LPC family.
Overview
********
Some NXP microcontrollers from LPC family are dual-core, this
sample application uses a mailbox to send messages from one
proce... | /content/code_sandbox/samples/drivers/ipm/ipm_mcux/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 452 |
```unknown
CONFIG_IPM=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_mhu_dual_core/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6 |
```yaml
sample:
description: MHU dual core sample application
name: ipm_mhu_dual_core
tests:
sample.ipm.ipm_mhu_dual_core:
tags: ipm
platform_allow:
- v2m_musca_b1/musca_b1
- v2m_musca_b1/musca_b1/ns
integration_platforms:
- v2m_musca_b1/musca_b1
``` | /content/code_sandbox/samples/drivers/ipm/ipm_mhu_dual_core/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/ipm.h>
enum cpu_id_t {
MHU_CPU0 = 0,
MHU_CPU1,
MHU_CPU_MAX,
};
const struct device *mhu0;
static void main_cpu_0(void)
{
while (1) {
}
}
static void main_cpu_1(void)
{
const uint32_t set_mhu = 1;
ipm_send(mhu0... | /content/code_sandbox/samples/drivers/ipm/ipm_mhu_dual_core/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 415 |
```restructuredtext
.. zephyr:code-sample:: ipm-mhu-dual-core
:name: IPM with ARM MHU
:relevant-api: ipm_interface
Implement inter-processor mailbox (IPM) using an MHU (Message Handling Unit)
Overview
********
An MHU (Message Handling Unit) enables software to raise interrupts to
the processor cores. This sa... | /content/code_sandbox/samples/drivers/ipm/ipm_mhu_dual_core/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 731 |
```restructuredtext
.. zephyr:code-sample:: ipm-ivshmem
:name: IPM over IVSHMEM
:relevant-api: ipm_interface
Implement inter-processor mailbox (IPM) over IVSHMEM (Inter-VM shared memory)
Prerequisites
*************
* QEMU needs to available.
ivshmem-server needs to be available and running. The server is a... | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,135 |
```yaml
sample:
name: IVSHMEM IPM Sample
tests:
sample.ipm.ipm_ivshmem:
build_only: true
platform_allow: qemu_cortex_a53
tags:
- samples
- ipm
``` | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
CONFIG_PCIE=y
# required by doorbell
CONFIG_PCIE_MSI=y
CONFIG_PCIE_MSI_X=y
CONFIG_PCIE_MSI_MULTI_VECTOR=y
CONFIG_POLL=y
CONFIG_VIRTUALIZATION=y
CONFIG_IVSHMEM=y
CONFIG_IVSHMEM_DOORBELL=y
CONFIG_SHELL=y
CONFIG_IVSHMEM_SHELL=y
CONFIG_IPM=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```unknown
CONFIG_PCIE_CONTROLLER=y
CONFIG_PCIE_ECAM=y
# Hungry PCI requires at least 256M of virtual space
CONFIG_KERNEL_VM_SIZE=0x80000000
# Hungry PCI requires phys addresses with more than 32 bits
CONFIG_ARM64_VA_BITS_40=y
CONFIG_ARM64_PA_BITS_40=y
# MSI support requires ITS
CONFIG_GIC_V3_ITS=y
# ITS, in turn, ... | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/boards/qemu_cortex_a53.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```c
/*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/kernel.h>
static void ipm_receive_callback(const struct device *ipmdev, void *user_data,
uint32_t id, volatile void *data)
{
ARG_UNUSED(ipmdev);
ARG_UNUSED(user_data);
p... | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 331 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/pcie/pcie.h>
/ {
ivhsmem {
ivshmem0: ivshmem {
compatible = "qemu,ivshmem";
vendor-id = <0x1af4>;
device-id = <0x1110>;
status = "okay";
};
};
};
``` | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/boards/pcie_ivshmem.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```unknown
/*
*
*/
#include "pcie_ivshmem.dtsi"
/ {
ipm_ivshmem0: ipm_ivshmem {
compatible = "linaro,ivshmem-ipm";
ivshmem = <&ivshmem0>;
status = "okay";
};
};
``` | /content/code_sandbox/samples/drivers/ipm/ipm_ivshmem/boards/qemu_cortex_a53.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
CONFIG_IPM=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```yaml
sample:
name: ESP32 IPM Sample
tests:
sample.ipm.ipm_esp32:
platform_allow:
- esp32_devkitc_wroom/esp32/procpu
- esp32_devkitc_wrover/esp32/procpu
tags:
- samples
- ipm
skip: true
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```unknown
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_IPM=y
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/ipm_esp_appcpu/prj.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/sys/printk.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/device.h>
static const struct device *ipm_dev;
static const char fake_resp[] = {"APP_CPU: This is a response"};
struct k_sem sync;
static void ipm_receive_callback(const struct device *ipmdev, vo... | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/ipm_esp_appcpu/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 229 |
```restructuredtext
.. zephyr:code-sample:: ipm-esp32
:name: IPM on ESP32
:relevant-api: ipm_interface
Implement inter-processor mailbox (IPM) between ESP32 APP and PRO CPUs.
Overview
********
This simple example can be used with multicore ESP32 Soc, and demonstrates
the software intercore messaging mechanis... | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 571 |
```unknown
&ipm0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/boards/esp32_devkitc_wroom_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```unknown
&ipm0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/boards/yd_esp32_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/device.h>
#include <string.h>
static const char fake_request[] = {"PRO_CPU: Fake request to APP_CPU"};
static const struct device *ipm_dev;
static char received_string[64];
static struct k_sem sy... | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 314 |
```unknown
&ipm0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/boards/esp32_devkitc_wrover_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```restructuredtext
.. zephyr:code-sample:: i2s-output
:name: I2S output
:relevant-api: i2s_interface
Send I2S output stream
Overview
********
This sample demonstrates how to use an I2S driver to send an output stream of
audio data. Currently, no codec is used with this sample. The I2S output can
be verifie... | /content/code_sandbox/samples/drivers/i2s/output/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 263 |
```unknown
CONFIG_I2S=y
``` | /content/code_sandbox/samples/drivers/i2s/output/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```yaml
sample:
description: I2S Output Sample
name: i2s_output
common:
tags: drivers
depends_on: i2s
tests:
sample.drivers.i2s.output:
filter: dt_alias_exists("i2s-tx")
``` | /content/code_sandbox/samples/drivers/i2s/output/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```unknown
&ipm0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/ipm/ipm_esp32/boards/esp32s3_devkitm_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```unknown
# Raise DMA TCD Queue size, as this is required by the I2S SAI driver
CONFIG_DMA_TCD_QUEUE_SIZE=4
``` | /content/code_sandbox/samples/drivers/i2s/output/boards/mimxrt1060_evkb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```unknown
/*
*
*/
/ {
aliases {
i2s-tx = &sai1;
};
};
``` | /content/code_sandbox/samples/drivers/i2s/output/boards/mimxrt1060_evkb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 24 |
```restructuredtext
.. zephyr:code-sample:: i2s-echo
:name: I2S echo
:relevant-api: i2s_interface
Process an audio stream to add an echo effect.
Overview
********
This sample demonstrates how to use an I2S driver in a simple processing of
an audio stream. It configures and starts both the RX and TX streams ... | /content/code_sandbox/samples/drivers/i2s/echo/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 435 |
```unknown
source "Kconfig.zephyr"
config I2C
default $(dt_compat_on_bus,$(DT_COMPAT_WOLFSON_WM8731),i2c)
``` | /content/code_sandbox/samples/drivers/i2s/echo/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```unknown
CONFIG_I2S=y
``` | /content/code_sandbox/samples/drivers/i2s/echo/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```yaml
sample:
name: I2S echo sample
tests:
sample.drivers.i2s.echo:
tags: i2s
filter: dt_nodelabel_enabled("i2s_rxtx") or
(dt_nodelabel_enabled("i2s_rx") and dt_nodelabel_enabled("i2s_tx"))
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
platform_exc... | /content/code_sandbox/samples/drivers/i2s/echo/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```c
/*
*
*/
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/sys/iterable_sections.h>
#define SAMPLE_NO 64
/* The data represent a sine wave */
static int16_t data[SAMPLE_NO] = {
3211, 6392, 9511, 12539, 15446, 18204, 20787, 23169,
25329, 27244, 28897,... | /content/code_sandbox/samples/drivers/i2s/output/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,285 |
```yaml
# This binding has been added solely for the purpose of the overlay files used
# in the drivers/i2s/echo sample. That's why it is located in this sample source
# directory. It can be moved and made available more widely if the need arises.
description: WM8731 Audio CODEC
compatible: "wolfson,wm8731"
include... | /content/code_sandbox/samples/drivers/i2s/echo/dts/bindings/wolfson,wm8731.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include "codec.h"
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/i2c.h>
#if DT_ON_BUS(WM8731_NODE, i2c)
#define WM8731_I2C_NODE DT_BUS(WM8731_NODE)
#define WM8731_I2C_ADDR DT_REG_ADDR(WM8731_NODE)
bool init_wm8731_i2c(void)
{
const struct device *const i2c_dev = ... | /content/code_sandbox/samples/drivers/i2s/echo/src/codec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,221 |
```objective-c
/*
*
*/
#define WM8731_NODE DT_NODELABEL(wm8731)
#if DT_ON_BUS(WM8731_NODE, i2c)
bool init_wm8731_i2c(void);
#endif
``` | /content/code_sandbox/samples/drivers/i2s/echo/src/codec.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```unknown
/*
*
*/
&pinctrl {
i2c0_default_alt: i2c0_default_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 30)>,
<NRF_PSEL(TWIM_SCL, 0, 31)>;
};
};
i2c0_sleep_alt: i2c0_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 30)>,
<NRF_PSEL(TWIM_SCL, 0, 31)>;
low-power-enable;
};
};
i2s0_... | /content/code_sandbox/samples/drivers/i2s/echo/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 375 |
```unknown
/*
*
*/
&pinctrl {
i2c0_default_alt: i2c0_default_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 25)>,
<NRF_PSEL(TWIM_SCL, 0, 26)>;
};
};
i2c0_sleep_alt: i2c0_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 25)>,
<NRF_PSEL(TWIM_SCL, 0, 26)>;
low-power-enable;
};
};
i2s0_... | /content/code_sandbox/samples/drivers/i2s/echo/boards/nrf5340dk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 398 |
```unknown
&arduino_i2c {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
pca9633@62 {
compatible = "nxp,pca9633";
reg = <0x62>;
};
};
``` | /content/code_sandbox/samples/drivers/led_pca9633/app.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include "codec.h"
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/drivers/gpio.h>
#include <string.h>
#if DT_NODE_EXISTS(DT_NODELABEL(i2s_rxtx))
#define I2S_RX_NODE DT_NODELABEL(i2s_rxtx)
#define I2S_TX_NODE I2S_RX_NODE
#else
#define I2S_RX... | /content/code_sandbox/samples/drivers/i2s/echo/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,395 |
```restructuredtext
.. zephyr:code-sample:: pca9633
:name: PCA9633 LED
:relevant-api: led_interface
Control 4 LEDs connected to a PCA9633 driver chip.
Overview
********
This sample controls 4 LEDs connected to a PCA9633 driver, using the
following pattern:
1. turn on LEDs
2. turn off LEDs
3. set the bri... | /content/code_sandbox/samples/drivers/led_pca9633/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 243 |
```unknown
CONFIG_LOG=y
CONFIG_LED=y
``` | /content/code_sandbox/samples/drivers/led_pca9633/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```yaml
sample:
description: Demonstration of the PCA9633 LED driver
name: PCA9633 sample
tests:
sample.drivers.led.pca9633:
depends_on: arduino_i2c
build_only: true
tags: LED
``` | /content/code_sandbox/samples/drivers/led_pca9633/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/drivers/led.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main);
#define NUM_LEDS 4
#define MAX_BRIGHTNESS 100
#define HALF_BRIGHTN... | /content/code_sandbox/samples/drivers/led_pca9633/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 703 |
```cmake
if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
message(FATAL_ERROR
"Target ${BOARD}${BOARD_QUALIFIERS} 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}/${REMO... | /content/code_sandbox/samples/drivers/mbox/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 234 |
```restructuredtext
.. zephyr:code-sample:: mbox
:name: MBOX
:relevant-api: mbox_interface
Perform inter-processor mailbox communication using the MBOX API.
Overview
********
This sample demonstrates how to use the :ref:`MBOX API <mbox_api>`.
Building and Running
********************
The sample can be bui... | /content/code_sandbox/samples/drivers/mbox/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 557 |
```unknown
#
source "share/sysbuild/Kconfig"
config REMOTE_BOARD
string "Remote board"
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
default "adp_xc7k/ae350" if $(BOARD) = "adp_xc7k"
default "mimxrt1170_e... | /content/code_sandbox/samples/drivers/mbox/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 433 |
```unknown
CONFIG_PRINTK=y
CONFIG_MBOX=y
``` | /content/code_sandbox/samples/drivers/mbox/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```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
config TX_ENABLED
bool "TX enabled"
default y
help
Enable TX
conf... | /content/code_sandbox/samples/drivers/mbox/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 89 |
```unknown
source "Kconfig.zephyr"
config TX_ENABLED
bool "TX enabled"
default y
help
Enable TX
config RX_ENABLED
bool "RX enabled"
default y
help
Enable RX
``` | /content/code_sandbox/samples/drivers/mbox/remote/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
CONFIG_STDOUT_CONSOLE=n
CONFIG_MBOX=y
``` | /content/code_sandbox/samples/drivers/mbox/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/sys/printk.h>
#if !defined(CONFIG_RX_ENABLED) && !defined(CONFIG_TX_ENABLED)
#error "At least one of CONFIG_RX_ENABLED or CONFIG_TX_ENABLED must be set"
#endif
#ifdef CONFIG_RX_ENABLED
static void callback(const struct device... | /content/code_sandbox/samples/drivers/mbox/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 465 |
```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/drivers/mbox/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
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuapp_bellboard 18>, <&cpurad_bellboard 12>;
mbox-names = "rx", "tx";
};
};
&cpuapp_bellboard {
status = "okay";
};
&cpurad_bellboard {
status = "okay";
};
&uart136 {
/delete-property/ hw-flow-control;
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf54h20dk_nrf54h20_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```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/drivers/mbox/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 |
```yaml
sample:
name: MBOX IPC sample
common:
sysbuild: true
tags: mbox
tests:
sample.drivers.mbox.real_hw:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
- adp_xc7k/ae350
- mimxrt1170_evk@B/mimxrt1176/cm7
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt1160_evk/mimxrt1166/cm7
- lpcx... | /content/code_sandbox/samples/drivers/mbox/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.