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
/*
*
*/
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/delete-node/ gpt@400f0000;
/* Replace GPT2 with anoth... | /content/code_sandbox/samples/drivers/mbox/remote/boards/mimxrt1170_evk_mimxrt1176_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 369 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuflpr_vevif 16>, <&cpuapp_bellboard 14>;
mbox-names = "rx", "tx";
};
};
&cpuapp_bellboard {
status = "okay";
};
&cpuflpr_vevif {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf54h20dk_nrf54h20_cpuflpr.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_MBOX_NXP_MAILBOX=y
# For purpose of sample enable UART Console on CPU1
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_CLOCK_CONTROL=y
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```unknown
/*
*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "tx", "rx";
};
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/adp_xc7k_ae350.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/delete-node/ gpt@400f0000;
/* Replace GPT2 with anoth... | /content/code_sandbox/samples/drivers/mbox/remote/boards/mimxrt1160_evk_mimxrt1166_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 369 |
```unknown
CONFIG_BUILD_OUTPUT_EXE=n
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf5340bsim_nrf5340_cpunet.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
mbox-names = "rx", "tx";
};
};
&cpuflpr_vevif_rx {
status = "okay";
};
&cpuflpr_vevif_tx {
status = "okay";
};
&uart30 {
/delete-property/ hw-flow-control;
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf54l15pdk_nrf54l15_cpuflpr_xip.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 107 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "tx", "rx";
};
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf5340bsim_nrf5340_cpunet.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```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.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/delete-node/ gpt@400f0000;
/* Replace GPT2 with anoth... | /content/code_sandbox/samples/drivers/mbox/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 | 369 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &mbox0;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox0 0>, <&mbox0 1>;
mbox-names = "tx", "rx";
};
};
&mbox0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/esp32s3_devkitm_appcpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
/*
*
*/
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
zephyr,console = &flexcomm0;
zephyr,shell-uart = &flexcomm0;
};
soc {
/* Delete IPM Driver node nxp,lpc-mailbox */
/delete-node/ mailbox@8b000;
... | /content/code_sandbox/samples/drivers/mbox/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 270 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "tx", "rx";
};
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf5340dk_nrf5340_cpunet.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_MBOX_STM32_HSEM=y
``` | /content/code_sandbox/samples/drivers/mbox/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 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuppr_vevif 15>, <&cpuapp_bellboard 18>;
mbox-names = "rx", "tx";
};
};
&cpuapp_bellboard {
status = "okay";
};
&cpuppr_vevif {
status = "okay";
};
&uart135 {
/delete-property/ hw-flow-control;
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf54h20dk_nrf54h20_cpuppr.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,console = &uart8;
zephyr,shell-uart = &uart8;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mailbox 10>, <&mailbox 11>;
mbox-names = "tx", "rx";
};
};
&uart8 {
status = "okay";
};
&mailbox {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/stm32h747i_disco_stm32h747xx_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
mbox-names = "rx", "tx";
};
};
&cpuflpr_vevif_rx {
status = "okay";
};
&cpuflpr_vevif_tx {
status = "okay";
};
&uart30 {
/delete-property/ hw-flow-control;
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/nrf54l15pdk_nrf54l15_cpuflpr.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 107 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &mbox0;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox0 0>, <&mbox0 1>;
mbox-names = "tx", "rx";
};
};
&mbox0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/remote/boards/esp32_devkitc_wroom_appcpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/sys/printk.h>
#ifdef CONFIG_RX_ENABLED
static void callback(const struct device *dev, mbox_channel_id_t channel_id,
void *user_data, struct mbox_msg *data)
{
printk("Pong (on channel %d)\n", channel_id);
}
#endif /* CO... | /content/code_sandbox/samples/drivers/mbox/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 431 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &mbox0;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox0 1>, <&mbox0 0>;
mbox-names = "tx", "rx";
};
};
&mbox0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/esp32_devkitc_wroom_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
mbox-names = "tx", "rx";
};
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/nrf5340bsim_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
/*
*
*/
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c48000;
/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compa... | /content/code_sandbox/samples/drivers/mbox/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 218 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_MBOX_NXP_MAILBOX=y
CONFIG_BUILD_OUTPUT_HEX=y
``` | /content/code_sandbox/samples/drivers/mbox/boards/lpcxpresso55s69_lpc55s69_cpu0.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```unknown
/*
*
*/
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/* Delete IPM Driver node nxp,lpc-mailbox */
/delete-node/ mailbox@8b000;
/* Attach MBOX driver to Mailbox Unit */
mbox:mailbox0@5008b000... | /content/code_sandbox/samples/drivers/mbox/boards/lpcxpresso55s69_lpc55s69_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 214 |
```unknown
CONFIG_SOC_NRF53_CPUNET_ENABLE=y
``` | /content/code_sandbox/samples/drivers/mbox/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_RV_BOOT_HART=0
``` | /content/code_sandbox/samples/drivers/mbox/boards/adp_xc7k_ae350.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,sram = &sram;
};
sram: memory@0 {
compatible = "mmio-sram";
reg = <0x00000000 0x10000000 >;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
mbox-n... | /content/code_sandbox/samples/drivers/mbox/boards/adp_xc7k_ae350.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 124 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/drivers/mbox/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
CONFIG_MBOX_STM32_HSEM=y
``` | /content/code_sandbox/samples/drivers/mbox/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
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuapp_vevif_rx 15>, <&cpuapp_vevif_tx 16>;
mbox-names = "rx", "tx";
};
};
&cpuapp_vevif_rx {
status = "okay";
};
&cpuapp_vevif_tx {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_SECOND_CORE_MCUX=y
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/drivers/mbox/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
/*
*
*/
/ {
chosen {
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &mbox0;
};
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox0 1>, <&mbox0 0>;
mbox-names = "tx", "rx";
};
};
&mbox0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/esp32s3_devkitm_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
/*
*
*/
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c48000;
/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compa... | /content/code_sandbox/samples/drivers/mbox/boards/mimxrt1160_evk_mimxrt1166_cm7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 218 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/drivers/mbox/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
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuapp_bellboard 18>, <&cpurad_bellboard 12>;
mbox-names = "tx", "rx";
};
};
&cpuapp_bellboard {
status = "okay";
};
&cpurad_bellboard {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/nrf54h20dk_nrf54h20_cpurad.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
/*
*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mailbox 11>, <&mailbox 10>;
mbox-names = "tx", "rx";
};
};
&mailbox {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/stm32h747i_disco_stm32h747xx_m7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuppr_vevif 15>, <&cpuapp_bellboard 18>;
mbox-names = "tx", "rx";
};
};
&cpuapp_bellboard {
status = "okay";
};
&cpuppr_vevif {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/nrf54h20dk_nrf54h20_cpuapp_cpuppr.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&cpuflpr_vevif 16>, <&cpuapp_bellboard 14>;
mbox-names = "tx", "rx";
};
};
&cpuapp_bellboard {
status = "okay";
};
&cpuflpr_vevif {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/nrf54h20dk_nrf54h20_cpuapp_cpuflpr.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
/*
*
*/
/ {
chosen {
/* Delete ipc chosen property where old IPM mailbox driver bellow is
* configured.
*/
/delete-property/ zephyr,ipc;
};
soc {
/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c48000;
/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compa... | /content/code_sandbox/samples/drivers/mbox/boards/mimxrt1170_evk_mimxrt1176_cm7_A.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 218 |
```unknown
/*
*/
/ {
mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
mbox-names = "tx", "rx";
};
};
``` | /content/code_sandbox/samples/drivers/mbox/boards/nrf5340dk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuppr"
``` | /content/code_sandbox/samples/drivers/mbox/sysbuild/nrf54h20dk_nrf54h20_cpuppr.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```restructuredtext
.. zephyr:code-sample:: espi
:name: Enhanced Serial Peripheral Interface (eSPI)
:relevant-api: espi_interface spi_interface
Use eSPI to connect to a slave device and exchange virtual wire packets.
Overview
********
This sample demonstrates how to use the :ref:`Enhanced Serial Peripheral ... | /content/code_sandbox/samples/drivers/espi/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 352 |
```unknown
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuflpr"
``` | /content/code_sandbox/samples/drivers/mbox/sysbuild/nrf54h20dk_nrf54h20_cpuflpr.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21 |
```unknown
CONFIG_ESPI=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
``` | /content/code_sandbox/samples/drivers/espi/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```yaml
sample:
description: A basic demo to showcase eSPI driver usage and handshake with eSPI
master
name: eSPI driver sample
tests:
sample.drivers.espi:
tags:
- drivers
- espi
filter: dt_compat_enabled("microchip,mec15xx-board-power")
depends_on: espi
harness: console
harnes... | /content/code_sandbox/samples/drivers/espi/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 485 |
```unknown
# Private config options for eSPI sample app
mainmenu "Enhanced Serial Peripheral Interface application"
config ESPI_VIRTUAL_WIRE_TIMEOUT
int "Timeout for virtual wires"
default 5000
help
Timeout for virtual wires
source "Kconfig.zephyr"
``` | /content/code_sandbox/samples/drivers/espi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```yaml
compatible: "microchip,mec172x-board-power"
description: |
This binding provides MEC172x board gpio power rails resources to
build and run samples/drives/espi in Zephyr.
GPIOs required before performing a eSPI host-slave handshake
properties:
pwrg-gpios:
type: phandle-array
required: tr... | /content/code_sandbox/samples/drivers/espi/dts/bindings/mec172x-board-power.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 162 |
```yaml
compatible: "microchip,mec15xx-board-power"
description: |
This binding provides MEC15xx board gpio power rails resources to
build and run samples/drives/espi in Zephyr.
GPIOs required before performing a eSPI host-slave handshake
properties:
pwrg-gpios:
type: phandle-array
required: tr... | /content/code_sandbox/samples/drivers/espi/dts/bindings/mec15xx-board-power.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 162 |
```objective-c
/*
*
*/
#ifndef __ESPI_OOB_HANDLER_H__
#define __ESPI_OOB_HANDLER_H__
/* eSPI host entity address */
#define PCH_DEST_SLV_ADDR 0x02u
#define SRC_SLV_ADDR 0x21u
#define OOB_RESPONSE_SENDER_INDEX 0x02u
#define OOB_RESPONSE_DATA_INDEX 0x04u
/* Temperature command opcode */
#define... | /content/code_sandbox/samples/drivers/espi/src/espi_oob_handler.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 369 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/logging/log_ctrl.h>
#include <zephyr/logging/log.h>
#include "espi_oob_handler.h"
LOG_MODULE_DECLARE(espi, CONFIG_ESPI_LOG_LEVEL);
struct oob_header {
uint8_t dest_slave_addr... | /content/code_sandbox/samples/drivers/espi/src/espi_oob_handler.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,325 |
```unknown
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
# Disable only for this board to check notifications
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
# Sample code doesn't handle ACPI host communication
CONFIG_ESPI_PERIPHERAL_HOST_IO=n
# This only makes sense for system using this ... | /content/code_sandbox/samples/drivers/espi/boards/mec1501modular_assy6885.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```unknown
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
# Disable only for this board to check notifications
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
# Sample code doesn't handle ACPI host communication
CONFIG_ESPI_PERIPHERAL_HOST_IO=n
# Test TAF flash portal read/erase/write on EV... | /content/code_sandbox/samples/drivers/espi/boards/mec15xxevb_assy6853.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```unknown
/*
*
*/
/ {
/* TODO: Add GPIOs for power sequence later */
};
``` | /content/code_sandbox/samples/drivers/espi/boards/npcx7m6fb_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```unknown
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
# Not supported yet
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
CONFIG_ESPI_FLASH_CHANNEL=y
``` | /content/code_sandbox/samples/drivers/espi/boards/npcx9m6f_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```unknown
/*
*
*/
/ {
board_power: resources {
compatible = "microchip,mec172x-board-power";
/* MCHP_GPIO_012 */
pwrg-gpios = <&gpio_000_036 10 GPIO_ACTIVE_HIGH>;
/* MCHP_GPIO_0054 */
rsm-gpios = <&gpio_040_076 12 GPIO_ACTIVE_HIGH>;
};
};
&espi_saf0 {
status = "okay";
};
/* Enable Target to Controlle... | /content/code_sandbox/samples/drivers/espi/boards/mec172xevb_assy6906.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 261 |
```unknown
/*
*
*/
/ {
board_power: resources {
compatible = "microchip,mec15xx-board-power";
/* MCHP_GPIO_012 */
pwrg-gpios = <MCHP_GPIO_DECODE_012 GPIO_ACTIVE_HIGH>;
/* MCHP_GPIO_0054 */
rsm-gpios = <MCHP_GPIO_DECODE_054 GPIO_ACTIVE_HIGH>;
};
};
&spi0 {
status = "okay";
port_sel = <0>;
chip_select ... | /content/code_sandbox/samples/drivers/espi/boards/mec1501modular_assy6885.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 184 |
```unknown
/*
*
*/
/ {
board_power: resources {
compatible = "microchip,mec172x-board-power";
/* MCHP_GPIO_012 */
pwrg-gpios = <&gpio_000_036 10 GPIO_ACTIVE_HIGH>;
/* MCHP_GPIO_0054 */
rsm-gpios = <&gpio_040_076 12 GPIO_ACTIVE_HIGH>;
};
};
/* Enable Target to Controller Virtual Wires GPIO 0 - 3 */
&vw_... | /content/code_sandbox/samples/drivers/espi/boards/mec172xmodular_assy6930.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 347 |
```unknown
# eSPI + mec172xevb_assy6906
CONFIG_ESPI=y
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
# Disable only for this board to check notifications
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
# Sample code doesn't handle ACPI host communication
CONFIG_ESPI_PERIPHERAL_HOST_IO=n
# T... | /content/code_sandbox/samples/drivers/espi/boards/mec172xmodular_assy6930.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 95 |
```unknown
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
# Not supported yet
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
CONFIG_ESPI_FLASH_CHANNEL=y
``` | /content/code_sandbox/samples/drivers/espi/boards/npcx7m6fb_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```unknown
# eSPI + mec172xevb_assy6906
CONFIG_ESPI=y
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
# Disable only for this board to check notifications
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
# Sample code doesn't handle ACPI host communication
CONFIG_ESPI_PERIPHERAL_HOST_IO=n
# T... | /content/code_sandbox/samples/drivers/espi/boards/mec172xevb_assy6906.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 118 |
```unknown
/*
*
*/
/ {
board_power: resources {
compatible = "microchip,mec15xx-board-power";
/* MCHP_GPIO_012 */
pwrg-gpios = <MCHP_GPIO_DECODE_012 GPIO_ACTIVE_HIGH>;
/* MCHP_GPIO_0054 */
rsm-gpios = <MCHP_GPIO_DECODE_054 GPIO_ACTIVE_HIGH>;
};
};
&espi_saf0 {
status = "okay";
};
&spi0 {
status = "ok... | /content/code_sandbox/samples/drivers/espi/boards/mec15xxevb_assy6853.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 128 |
```restructuredtext
.. zephyr:code-sample:: lp50xx
:name: LP50XX RGB LED
:relevant-api: led_interface
Control up to 12 RGB LEDs connected to an LP50xx driver chip.
Overview
********
This sample controls up to 12 LEDs connected to a LP50xx driver.
First, for each LED information is retrieved using the led_g... | /content/code_sandbox/samples/drivers/led_lp50xx/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 405 |
```unknown
CONFIG_LOG=y
CONFIG_LED=y
``` | /content/code_sandbox/samples/drivers/led_lp50xx/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 LP50xx LED driver
name: LP50xx sample
tests:
sample.drivers.led.lp50xx:
filter: dt_compat_enabled("ti,lp5009") or
dt_compat_enabled("ti,lp5012") or
dt_compat_enabled("ti,lp5018") or
dt_compat_enabled("ti,lp5024") or
... | /content/code_sandbox/samples/drivers/led_lp50xx/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 127 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/led.h>
#include <zephyr/drivers/led/lp50xx.h>
#include <zephyr/dt-bindings/led/led.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <zephyr... | /content/code_sandbox/samples/drivers/led_lp50xx/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,200 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log_ctrl.h>
#include <zephyr/logging/log.h>
/* OOB operations will be attempted regardless ... | /content/code_sandbox/samples/drivers/espi/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,541 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/led/led.h>
&i2c0 {
/* TI LP5030 LED controller connected to I2C0. */
lp5030@30 {
compatible = "ti,lp5030";
reg = <0x30>;
led_0 {
label = "LED LP5030 0";
index = <0>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_... | /content/code_sandbox/samples/drivers/led_lp50xx/boards/lpcxpresso11u68.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 619 |
```restructuredtext
.. zephyr:code-sample:: mspi-async
:name: MSPI asynchronous transfer
:relevant-api: mspi_interface
Use the MSPI API to interact with MSPI memory device asynchronously.
Overview
********
This sample demonstrates using the :ref:`MSPI API <mspi_api>` on a MSPI
memory device. The asynchrono... | /content/code_sandbox/samples/drivers/mspi/mspi_async/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 280 |
```yaml
sample:
name: MSPI Async Sample
tests:
sample.drivers.mspi.async:
tags:
- mspi
filter: dt_compat_enabled("mspi-aps6404l")
platform_exclude: hifive_unmatched
harness: console
harness_config:
type: multi_line
ordered: true
depends_on: mspi
``` | /content/code_sandbox/samples/drivers/mspi/mspi_async/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_MSPI=y
``` | /content/code_sandbox/samples/drivers/mspi/mspi_async/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```unknown
CONFIG_MEMC=y
CONFIG_MEMC_MSPI_APS6404L=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=0
CONFIG_MSPI_INIT_PRIORITY=40
CONFIG_MEMC_INIT_PRIORITY=50
CONFIG_PM_DEVICE=y
``` | /content/code_sandbox/samples/drivers/mspi/mspi_async/boards/apollo3p_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```unknown
/*
*
*/
/ {
aliases {
dev0 = &aps6404l;
};
};
&gpio64_95 {
status = "okay";
};
&gpio32_63 {
status = "okay";
};
&mspi1 {
pinctrl-0 = <&mspi1_default>;
pinctrl-1 = <&mspi1_sleep>;
pinctrl-2 = <&mspi1_psram>;
pinctrl-names = "default","sleep","psram";
status = "okay";
ce-gpios = <&gpio64_95... | /content/code_sandbox/samples/drivers/mspi/mspi_async/boards/apollo3p_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 743 |
```restructuredtext
.. zephyr:code-sample:: mspi-flash
:name: JEDEC MSPI-NOR flash
:relevant-api: flash_interface
Use the flash API to interact with a MSPI NOR serial flash memory device.
Overview
********
This sample demonstrates using the :ref:`flash API <flash_api>` on a MSPI NOR serial flash
memory devi... | /content/code_sandbox/samples/drivers/mspi/mspi_flash/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 316 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_MSPI=y
``` | /content/code_sandbox/samples/drivers/mspi/mspi_flash/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```yaml
sample:
name: MSPI Flash Sample
tests:
sample.drivers.mspi.flash:
tags:
- mspi
- flash
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("mspi-atxp032")
platform_exclude: hifive_unmatched
harness: console
harness_config:
type: multi_line
ordered: tru... | /content/code_sandbox/samples/drivers/mspi/mspi_flash/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 147 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <stdio.h>
#include <string.h>
#include <zephyr/drivers/mspi.h>
#define MSPI_BUS DT_BUS(DT_ALIAS(dev0))
#define MSPI_TARGET DT_ALIAS(dev0)
#define... | /content/code_sandbox/samples/drivers/mspi/mspi_async/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,557 |
```unknown
CONFIG_FLASH_MSPI_ATXP032=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=0
CONFIG_MSPI_INIT_PRIORITY=40
CONFIG_FLASH_INIT_PRIORITY=50
CONFIG_PM_DEVICE=y
``` | /content/code_sandbox/samples/drivers/mspi/mspi_flash/boards/apollo3p_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <stdio.h>
#include <string.h>
#define SPI_FLASH_TEST_REGION_OFFSET 0xff000
#define SPI_FLASH_SECTOR_SIZE 4096
#define SPI_FLASH_MULTI_SECTOR_TEST
int single_sector_t... | /content/code_sandbox/samples/drivers/mspi/mspi_flash/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,435 |
```restructuredtext
.. zephyr:code-sample:: gnss
:name: GNSS
:relevant-api: gnss_interface navigation
Connect to a GNSS device to obtain time, navigation data, and satellite information.
Overview
********
This sample demonstrates how to use a GNSS device implementing the
GNSS device driver API.
Requirements... | /content/code_sandbox/samples/drivers/gnss/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 331 |
```unknown
/*
*
*/
/ {
aliases {
flash0 = &atxp032;
};
};
&gpio64_95 {
status = "okay";
};
&gpio32_63 {
status = "okay";
};
&mspi1 {
pinctrl-0 = <&mspi1_default>;
pinctrl-1 = <&mspi1_sleep>;
pinctrl-2 = <&mspi1_psram>;
pinctrl-3 = <&mspi1_flash>;
pinctrl-names = "default","sleep","psram","flash";
sta... | /content/code_sandbox/samples/drivers/mspi/mspi_flash/boards/apollo3p_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,249 |
```yaml
sample:
name: GNSS sample
tests:
sample.drivers.gnss:
tags:
- drivers
- gnss
filter: dt_alias_exists("gnss")
depends_on: gnss
``` | /content/code_sandbox/samples/drivers/gnss/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
CONFIG_GNSS=y
CONFIG_GNSS_SATELLITES=y
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=8192
CONFIG_GNSS_DUMP_TO_LOG=y
CONFIG_GNSS_DUMP_TO_LOG_BUF_SIZE=1024
CONFIG_GNSS_LOG_LEVEL_DBG=y
CONFIG_MODEM_MODULES_LOG_LEVEL_DBG=y
``` | /content/code_sandbox/samples/drivers/gnss/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```c
/*
*
*/
#include <stdio.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gnss.h>
#include <zephyr/logging/log.h>
#define GNSS_MODEM DEVICE_DT_GET(DT_ALIAS(gnss))
LOG_MODULE_REGISTER(gnss_sample, CONFIG_GNSS_LOG_LEVEL);
static void gnss_data_cb(const struct device *dev, const struct gnss_data *data)
{
... | /content/code_sandbox/samples/drivers/gnss/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 272 |
```unknown
/*
*
*/
/ {
aliases {
gnss = &lpuart3;
};
};
&lpuart3 {
status = "okay";
current-speed = <115200>;
u_blox_m10: u-blox,m10 {
status = "okay";
compatible = "u-blox,m10";
uart-baudrate = <115200>;
};
};
``` | /content/code_sandbox/samples/drivers/gnss/boards/vmu_rt1170.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```unknown
CONFIG_UART_INTERRUPT_DRIVEN=y
``` | /content/code_sandbox/samples/drivers/gnss/boards/mimxrt1062_fmurt6.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```restructuredtext
.. zephyr:code-sample:: memc
:name: Memory controller (MEMC) driver
Access memory-mapped external RAM
Overview
********
This sample can be used with any memory controller driver that
memory maps external RAM. It is intended to demonstrate
the ability to read and write from the memory mapped... | /content/code_sandbox/samples/drivers/memc/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 501 |
```unknown
/*
*
*/
/ {
aliases {
gnss = &gnss;
};
};
&lpuart2 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&pinmux_lpuart2>;
pinctrl-1 = <&pinmux_lpuart2_sleep>;
pinctrl-names = "default", "sleep";
gnss: u_blox_m10 {
status = "okay";
compatible = "u-blox,m10";
uart-baudrate = <115200>;... | /content/code_sandbox/samples/drivers/gnss/boards/mimxrt1062_fmurt6.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```yaml
sample:
description: Memory controller sample
name: memc driver sample
common:
tags: memc
filter: dt_alias_exists("sram-ext")
integration_platforms:
- mimxrt595_evk/mimxrt595s/cm33
harness: console
harness_config:
type: one_line
regex:
- "Read data matches written data"
tests:
... | /content/code_sandbox/samples/drivers/memc/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/drivers/mspi.h>
#if DT_HAS_COMPAT_STATUS_OKAY(nxp_imx_flexspi)
/* Use memc API to get AHB base address for the device */
#include "memc_mcux_flexspi.h"
#define FLEXSPI_DEV DEVICE_DT_GET(DT_PARENT(DT_ALIAS(sram_ext)))
#define MEMC_PORT DT_R... | /content/code_sandbox/samples/drivers/memc/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,085 |
```unknown
CONFIG_MEMC=y
``` | /content/code_sandbox/samples/drivers/memc/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6 |
```unknown
CONFIG_MEMC_MSPI_APS6404L=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=0
CONFIG_MSPI_INIT_PRIORITY=40
CONFIG_MEMC_INIT_PRIORITY=50
CONFIG_PM_DEVICE=y
``` | /content/code_sandbox/samples/drivers/memc/boards/apollo3p_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
/*
*
*/
/ {
aliases {
sram-ext = &aps6408l;
};
};
``` | /content/code_sandbox/samples/drivers/memc/boards/mimxrt595_evk_mimxrt595s_cm33.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```unknown
/*
*
*/
/ {
aliases {
psram0 = &aps6404l;
};
};
&gpio64_95 {
status = "okay";
};
&gpio32_63 {
status = "okay";
};
&mspi1 {
pinctrl-0 = <&mspi1_default>;
pinctrl-1 = <&mspi1_sleep>;
pinctrl-2 = <&mspi1_psram>;
pinctrl-names = "default","sleep","psram";
status = "okay";
ce-gpios = <&gpio64_... | /content/code_sandbox/samples/drivers/memc/boards/apollo3p_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 744 |
```unknown
/*
*
*/
/ {
aliases {
sram-ext = &is66wvq8m4;
};
};
&is66wvq8m4 {
status = "okay";
};
&pinctrl {
pinmux_flexspi_safe: pinmux-flexspi-safe {
group0 {
pinmux = <IO_MUX_QUAD_SPI_PSRAM_IO35
IO_MUX_QUAD_SPI_PSRAM_IO36
IO_MUX_QUAD_SPI_PSRAM_IO38
IO_MUX_QUAD_SPI_PSRAM_IO39
IO_MUX_QUA... | /content/code_sandbox/samples/drivers/memc/boards/rd_rw612_bga.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 240 |
```unknown
# In order to safely access the PSRAM on port B of the RW FlexSPI peripheral,
# the QSPI flash on port A must be configured by the application. Otherwise,
# the PSRAM configuration will overwrite the LUT entries for the QSPI flash,
# and the application will no longer be able to XIP from the flash.
# To mak... | /content/code_sandbox/samples/drivers/memc/boards/rd_rw612_bga.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 242 |
```restructuredtext
.. zephyr:code-sample:: is31fl3733
:name: IS31FL3733 LED Matrix
:relevant-api: led_interface
Control a matrix of up to 192 LEDs connected to an IS31FL3733 driver chip.
Overview
********
This sample controls a matrix of up to 192 LEDs. The sample performs the
following test steps in an in... | /content/code_sandbox/samples/drivers/led_is31fl3733/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 376 |
```unknown
source "Kconfig.zephyr"
config LED_ROW_COUNT
int "Number of rows in IS31FL3733 matrix"
default 12
help
Set this to match the number of SW LED sink connections
wired up to your IS31FL3733 LED driver. The sample will only attempt
to drive LEDs within this range.
config LED_COLUMN_COUNT
int "Num... | /content/code_sandbox/samples/drivers/led_is31fl3733/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 138 |
```yaml
sample:
description: Demonstration of the IS31FL3733 LED driver
name: IS31FL3733 sample
tests:
sample.drivers.led.is31fl3733:
filter: dt_compat_enabled("issi,is31fl3733")
tags: LED
depends_on: i2c
``` | /content/code_sandbox/samples/drivers/led_is31fl3733/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
CONFIG_LED=y
CONFIG_GPIO=y
``` | /content/code_sandbox/samples/drivers/led_is31fl3733/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/led.h>
#include <zephyr/drivers/led/is31fl3733.h>
#include <string.h>
#define HW_ROW_COUNT 12
#define HW_COL_COUNT 16
/* LED matrix is addressed using a row major format */
#define LED_MATRIX_COORD(x, y) ((x) * HW_COL_COUNT) + (y)
static uint8_t led... | /content/code_sandbox/samples/drivers/led_is31fl3733/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,154 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.