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/drivers/led.h>
#include <zephyr/drivers/kscan.h>
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main, CONFIG_LOG_DEFAULT_LEVEL);
#define LED_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(holtek_ht16k33)
#define KEY_NODE DT_CHILD(LED_... | /content/code_sandbox/samples/drivers/ht16k33/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 543 |
```yaml
sample:
description: Demonstration of the HT16K33 LED driver with keyscan
name: HT16K33 sample
tests:
sample.drivers.ht16k33:
platform_allow: nrf52840dk/nrf52840
harness: TBD
tags: LED
``` | /content/code_sandbox/samples/drivers/ht16k33/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
/*
*
*/
#include "boards/pcie_ivshmem.dtsi"
``` | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/app.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```shell
#!/bin/sh
# Write a fixed-size string message on the ivshmem shared memory
# Usage write_shared_memory.sh [-s size in bytes] [-l location] [-m message] [-v]
#
#
# default parameters
SHM_SIZE=4194304
SHM_LOC="/dev/shm/ivshmem"
SHM_MSG="This is a message test for ivshmem shared memory"
SHM_DD_VERBOSE="status=no... | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/write_shared_memory.sh | shell | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 431 |
```unknown
/*
*
*/
&i2c0 {
clock-frequency = <I2C_BITRATE_STANDARD>;
ht16k33@70 {
compatible = "holtek,ht16k33";
reg = <0x70>;
/* Uncomment to use IRQ instead of polling: */
/* irq-gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; */
kscan-input {
compatible = "zephyr,kscan-input";
};
};
};
`... | /content/code_sandbox/samples/drivers/ht16k33/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
CONFIG_INIT_STACKS=y
CONFIG_USERSPACE=y
CONFIG_DYNAMIC_OBJECTS=y
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
``` | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```yaml
sample:
description: ivshmem-doorbell sample application
name: ivshmem_doorbell_sample
tests:
sample.virtualization.ivshmem.doorbell.arm64:
build_only: true
platform_allow:
- qemu_cortex_a53
- qemu_kvm_arm64
tags:
- userspace
- ivshmem
sample.virtualization.ivshmem.do... | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```c
/*
*
*/
/* we piggyback the log level using ivshmem knob */
#define LOG_MODULE_NAME ivshmem_doorbell_test
#define LOG_LEVEL CONFIG_IVSHMEM_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#ifdef CONFIG_USERSPACE
#include <zephyr/sys/libc-hooks.h>
#endif... | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/src/ivshmem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,691 |
```restructuredtext
.. zephyr:code-sample:: ivshmem-doorbell
:name: IVSHMEM doorbell
:relevant-api: ivshmem
Use Inter-VM Shared Memory to exchange messages between two processes running on different
operating systems.
Overview
********
This sample shows how two processes on different operating systems ca... | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,783 |
```unknown
# The test requires dynamic memory for kernel and userspace
# This is enough memory for a 4KB ivshmem shared memory
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
``` | /content/code_sandbox/samples/drivers/virtualization/ivshmem/doorbell/boards/qemu_x86_64.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```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/virtualization/ivshmem/doorbell/boards/qemu_kvm_arm64.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```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/virtualization/ivshmem/doorbell/boards/qemu_cortex_a53.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```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/virtualization/ivshmem/doorbell/boards/pcie_ivshmem.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```restructuredtext
.. zephyr:code-sample:: can-counter
:name: Controller Area Network (CAN) counter
:relevant-api: can_interface
Send and receive CAN messages.
Overview
********
This sample demonstrates how to use the Controller Area Network (CAN) API.
Messages with standard and extended identifiers are se... | /content/code_sandbox/samples/drivers/can/counter/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 418 |
```unknown
# Private config options for can sample app
mainmenu "Controller Area Network sample application"
config LOOPBACK_MODE
bool "Loopback LOOPBACK_MODE"
default y
help
Set the controller to loopback mode.
This allows testing without a second board.
source "Kconfig.zephyr"
``` | /content/code_sandbox/samples/drivers/can/counter/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```yaml
sample:
name: CAN driver counter sample
tests:
sample.drivers.can.counter:
tags: can
depends_on: can
integration_platforms:
- native_sim
filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
and not dt_compat_enabled("infineon,xmc4xxx-can-node")
... | /content/code_sandbox/samples/drivers/can/counter/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 113 |
```unknown
CONFIG_POLL=y
CONFIG_CAN=y
CONFIG_CAN_INIT_PRIORITY=80
CONFIG_CAN_MAX_FILTER=5
CONFIG_SHELL=y
CONFIG_CAN_SHELL=y
CONFIG_DEVICE_SHELL=y
CONFIG_GPIO=y
CONFIG_STATS=y
CONFIG_STATS_NAMES=y
CONFIG_STATS_SHELL=y
CONFIG_CAN_STATS=y
``` | /content/code_sandbox/samples/drivers/can/counter/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
/*
*
*/
/* This board disables can1 by default in favor of USB. */
&can1 {
status = "okay";
};
&usb {
status = "disabled";
};
``` | /content/code_sandbox/samples/drivers/can/counter/boards/waveshare_open103z.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```restructuredtext
.. zephyr:code-sample:: can-babbling
:name: Controller Area Network (CAN) babbling node
:relevant-api: can_interface
Simulate a babbling CAN node.
Overview
********
In a Controller Area Network a babbling node is a node continuously (and usually erroneously)
transmitting CAN frames with ... | /content/code_sandbox/samples/drivers/can/babbling/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 465 |
```unknown
menu "Controller Area Network babbling node sample"
config SAMPLE_CAN_BABBLING_CAN_ID
hex "CAN ID"
default 0x010
range 0x000 0x7ff if !SAMPLE_CAN_BABBLING_EXT_ID
range 0x00000000 0x1fffffff if SAMPLE_CAN_BABBLING_EXT_ID
help
Babbling node CAN ID.
config SAMPLE_CAN_BABBLING_EXT_ID
bool "Use Extend... | /content/code_sandbox/samples/drivers/can/babbling/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 251 |
```unknown
CONFIG_CAN=y
CONFIG_GPIO=y
``` | /content/code_sandbox/samples/drivers/can/babbling/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```yaml
sample:
name: CAN bus babbling node
tests:
sample.drivers.can.babbling:
tags: can
depends_on: can
filter: dt_chosen_enabled("zephyr,canbus")
integration_platforms:
- native_sim
harness: console
harness_config:
type: one_line
regex:
- "babbling on .*"
``` | /content/code_sandbox/samples/drivers/can/babbling/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
/* Devicetree */
#define CANBUS_NODE DT_CHOSEN(zephyr_canbus)
#define BUTTON_NODE DT_ALIAS(sw0)
#define BUTTON_NAME DT_PROP_OR(BUTTON_NODE, label, "sw0")... | /content/code_sandbox/samples/drivers/can/babbling/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,041 |
```c
/*
*
*/
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/byteorder.h>
#define RX_THREAD_STACK_SIZE 512
#define RX_THREAD_PRIORITY 2
#define STATE_POLL_THREAD_STACK_SIZE ... | /content/code_sandbox/samples/drivers/can/counter/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,118 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_PECI=y
CONFIG_PM_DEVICE=y
``` | /content/code_sandbox/samples/drivers/peci/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```restructuredtext
.. zephyr:code-sample:: peci
:name: PECI interface
:relevant-api: peci_interface
Monitor CPU temperature using PECI.
Overview
********
This sample demonstrates how to use the :ref:`PECI API <peci_api>`.
Callbacks are registered that will write to the console indicating PECI events.
These... | /content/code_sandbox/samples/drivers/peci/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 162 |
```yaml
sample:
name: PECI driver sample
tests:
sample.drivers.peci:
# theoretically EVB can be connected to Intel RVP as well,
# but HW setup is not documented, hence qualifying as unsupported.
platform_exclude:
- mec15xxevb_assy6853
- mec172xevb_assy6906
integration_platforms:
-... | /content/code_sandbox/samples/drivers/peci/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 151 |
```unknown
/*
*
*/
/ {
aliases {
peci-0 = &peci0;
};
};
&peci0 {
status = "okay";
pinctrl-0 = <&peci_dat_gpio042 &vref_vtt_gpio044>;
pinctrl-1 = <&peci_dat_gpio042_sleep &vref_vtt_gpio044_sleep>;
pinctrl-names = "default", "sleep";
};
``` | /content/code_sandbox/samples/drivers/peci/boards/mec172xevb_assy6906.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```restructuredtext
.. zephyr:code-sample:: lcd-hd44780
:name: HD44780 LCD controller
:relevant-api: gpio_interface
Control an HD44780-based LCD display using GPIO pins.
Overview
********
Display text strings on parallel interfacing HD44780 based
generic LCD controller using GPIO pins to interface with
Ardui... | /content/code_sandbox/samples/drivers/lcd_hd44780/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 256 |
```unknown
CONFIG_GPIO=y
``` | /content/code_sandbox/samples/drivers/lcd_hd44780/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```yaml
sample:
name: Display text strings on HD44780 based 20x4 LCD controller
tests:
sample.drivers.lcd.hd44780:
platform_allow: arduino_due
tags: display
harness: display
depends_on: gpio
``` | /content/code_sandbox/samples/drivers/lcd_hd44780/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/peci.h>
#include <soc.h>
#define TASK_STACK_SIZE 1024
#define PRIORITY 7
/* PECI Host address */
#define PECI_HOST_ADDR 0x30u
/* PECI Host bitrate 1Mbps */
#define PECI_HOST_BITRATE ... | /content/code_sandbox/samples/drivers/peci/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,370 |
```cmake
#
if("${SB_CONFIG_REMOTE_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... | /content/code_sandbox/samples/drivers/mbox_data/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 206 |
```unknown
#
source "share/sysbuild/Kconfig"
config REMOTE_BOARD
string
default "mimxrt1170_evkb/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evkb"
default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk"
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
default "lpcxpresso55s69/lp... | /content/code_sandbox/samples/drivers/mbox_data/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 150 |
```restructuredtext
.. zephyr:code-sample:: mbox_data
:name: MBOX Data
:relevant-api: mbox_interface
Perform inter-processor mailbox communication using the MBOX API with data.
Overview
********
This sample demonstrates how to use the :ref:`MBOX API <mbox_api>` in data transfer mode.
It can be used only wit... | /content/code_sandbox/samples/drivers/mbox_data/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 884 |
```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/mbox_data/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
CONFIG_PRINTK=y
CONFIG_MBOX=y
``` | /content/code_sandbox/samples/drivers/mbox_data/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```yaml
sample:
name: MBOX Data IPC sample
common:
sysbuild: true
tags: mbox
tests:
sample.drivers.mbox_data.real_hw:
platform_allow:
- mimxrt1170_evk@B/mimxrt1176/cm7
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt1160_evk/mimxrt1166/cm7
- lpcxpresso55s69/lpc55s69/cpu0
integration_plat... | /content/code_sandbox/samples/drivers/mbox_data/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 339 |
```unknown
CONFIG_STDOUT_CONSOLE=n
CONFIG_MBOX=y
``` | /content/code_sandbox/samples/drivers/mbox_data/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```c
/*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/mbox.h>
static K_SEM_DEFINE(g_mbox_data_rx_sem, 0, 1);
static mbox_channel_id_t g_mbox_received_data;
static mbox_channel_id_t g_mbox_received_channel;
static void callback(const struct devi... | /content/code_sandbox/samples/drivers/mbox_data/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 517 |
```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_data/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/drivers/mbox_data/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
/*
*
*/
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
/* 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_data/remote/boards/mimxrt1170_evk_mimxrt1176_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 395 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
/* 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_data/remote/boards/mimxrt1160_evk_mimxrt1166_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 395 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_MBOX_NXP_MAILBOX=y
``` | /content/code_sandbox/samples/drivers/mbox_data/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
/* 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_data/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 | 395 |
```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_data/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 {
/* 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:mbox@5008b000 {
... | /content/code_sandbox/samples/drivers/mbox_data/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 213 |
```c
/*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/mbox.h>
static K_SEM_DEFINE(g_mbox_data_rx_sem, 0, 1);
static mbox_channel_id_t g_mbox_received_data;
static mbox_channel_id_t g_mbox_received_channel;
static void callback(const struct devi... | /content/code_sandbox/samples/drivers/mbox_data/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 512 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_MBOX_NXP_MAILBOX=y
CONFIG_BUILD_OUTPUT_HEX=y
``` | /content/code_sandbox/samples/drivers/mbox_data/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,imx-mu */
/delete-node/ mailbox@40c48000;
/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compa... | /content/code_sandbox/samples/drivers/mbox_data/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 |
```c
/*
*/
/**
* @file Display text strings on HD44780 based 20x4 LCD controller
* using GPIO for parallel interface on Arduino Due.
*
* Datasheet: path_to_url
*
* LCD Wiring
* ----------
*
* The wiring for the LCD is as follows:
* 1 : GND
* 2 : 5V
* 3 : Contrast (0-5V)*
* 4 : RS (Register Select)
* 5 :... | /content/code_sandbox/samples/drivers/lcd_hd44780/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,008 |
```unknown
CONFIG_MBOX_NXP_IMX_MU=y
CONFIG_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/drivers/mbox_data/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
/*
*
*/
/ {
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_data/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_SECOND_CORE_MCUX=y
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/drivers/mbox_data/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_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/drivers/mbox_data/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
/*
*
*/
/ {
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_data/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
/*
*
*/
/ {
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_data/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_LOG=y
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_CLOCK_CONTROL=y
``` | /content/code_sandbox/samples/drivers/clock_control_xec/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```yaml
sample:
description: Demonstration of the Microchip XEC clock control driver
name: XEC clock control sample
tests:
sample.drivers.clock_control_xec:
tags: clock_control
platform_allow:
- mec172xevb_assy6906
- mec15xxevb_assy6853
- mec1501modular_assy6885
``` | /content/code_sandbox/samples/drivers/clock_control_xec/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```restructuredtext
.. _clock_control_xec:
Microchip XEC (MEC15xx/MEC172x) clock control driver sample application
#######################################################################
Overview
********
This sample demonstrates configuring the 32KHz clock
options via device tree. The application prints out
hardwar... | /content/code_sandbox/samples/drivers/clock_control_xec/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 571 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
/ {
};
&pcr {
status = "okay";
pll-32k-src = <MCHP_XEC_PLL_CLK32K_SRC_SIL_OSC>;
periph-32k-src = <MCHP_XEC_PERIPH_CLK32K_SRC_SO_SO>;
xtal-single-ended;
internal-osc-disable;
/* debug only, not using 32KHZ_IN pin */
pinctrl-0 = <&tst_clk_o... | /content/code_sandbox/samples/drivers/clock_control_xec/boards/mec172xevb_assy6906.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
/ {
};
&pcr {
status = "okay";
pll-32k-src = <MCHP_XEC_PLL_CLK32K_SRC_SIL_OSC>;
periph-32k-src = <MCHP_XEC_PERIPH_CLK32K_SRC_SO_SO>;
xtal-single-ended;
internal-osc-disable;
/* debug only, not using 32KHZ_IN pin */
pinctrl-0 = <&tst_clk_o... | /content/code_sandbox/samples/drivers/clock_control_xec/boards/mec1501modular_assy6885.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
/ {
};
&pcr {
status = "okay";
pll-32k-src = <MCHP_XEC_PLL_CLK32K_SRC_SIL_OSC>;
periph-32k-src = <MCHP_XEC_PERIPH_CLK32K_SRC_SO_SO>;
xtal-single-ended;
internal-osc-disable;
/* debug only, not using 32KHZ_IN pin */
pinctrl-0 = <&tst_clk_o... | /content/code_sandbox/samples/drivers/clock_control_xec/boards/mec15xxevb_assy6853.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```restructuredtext
.. zephyr:code-sample:: jesd216
:name: JESD216 flash
:relevant-api: flash_interface
Use the JESD216 flash API to extract information from a compatible serial memory device.
Overview
********
This sample demonstrates how to use the JESD216 flash API to extract
information from a compatibl... | /content/code_sandbox/samples/drivers/jesd216/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 852 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_FLASH_JESD216_API=y
# Assume the standard SPI NOR flash driver. If the device uses
# another driver add an override configuration in boards/.
CONFIG_SPI=y
CONFIG_SPI_NOR=y
``` | /content/code_sandbox/samples/drivers/jesd216/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
#include <zephyr/dt-bindings/pinctrl/mchp-xec-pinctrl.h>
#include <zephyr/kernel.h>
... | /content/code_sandbox/samples/drivers/clock_control_xec/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,329 |
```yaml
sample:
name: JESD216 Sample
common:
tags:
- spi
- flash
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "sfdp-bfp ="
- "jedec-id ="
tests:
sample.drivers.jesd216:
platform_exclude:
- hifive1
- hifive_unleashed
- hifive_unm... | /content/code_sandbox/samples/drivers/jesd216/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 315 |
```unknown
#
#
#
CONFIG_SPI=y
CONFIG_SPI_NOR=y
``` | /content/code_sandbox/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
#
#
CONFIG_SPI=n
CONFIG_SPI_NOR=n
CONFIG_NORDIC_QSPI_NOR=y
``` | /content/code_sandbox/samples/drivers/jesd216/boards/bmd_345_eval.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```unknown
/*
*
*/
/delete-node/ &mx25r64;
&qspi {
status = "disabled";
};
/* The mx25, on nrf52840dk/nrf52840, uses pins for spi0, spi1, spi2 and spi3
* to provide quad-spi feature. In individual specifications each of the spi
* notes define own clock source (SCK), but spi2 shares the same clock source
* as q... | /content/code_sandbox/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 306 |
```unknown
#
#
#
CONFIG_SPI=n
CONFIG_SPI_NOR=n
#CONFIG_NORDIC_QSPI_NOR=y
``` | /content/code_sandbox/samples/drivers/jesd216/boards/nrf52840dk_nrf52840.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
# Override defaults for SPI NOR flash driver
CONFIG_SPI_NOR=n
``` | /content/code_sandbox/samples/drivers/jesd216/boards/mr_canhubk3.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```restructuredtext
.. zephyr:code-sample:: smbus-shell
:name: SMBus shell
:relevant-api: smbus_interface
Interact with SMBus peripherals using shell commands.
Overview
********
This is a simple SMBus shell sample that allows arbitrary boards with SMBus
driver supported exploring the SMBus communication wit... | /content/code_sandbox/samples/drivers/smbus/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 791 |
```unknown
CONFIG_SMBUS=y
CONFIG_SMBUS_SHELL=y
CONFIG_SMBUS_INTEL_PCH=y
CONFIG_SMBUS_LOG_LEVEL_DBG=y
CONFIG_USERSPACE=y
CONFIG_SHELL=y
CONFIG_LOG=y
CONFIG_EEPROM=y
CONFIG_EEPROM_EMULATOR=n
CONFIG_EEPROM_SIMULATOR=n
``` | /content/code_sandbox/samples/drivers/smbus/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```yaml
sample:
description: SMBus sample
name: smbus sample
common:
platform_allow:
- qemu_x86_64
- intel_ehl_crb
- intel_rpl_s_crb
harness: console
harness_config:
type: one_line
regex:
- "Start SMBUS shell sample"
tests:
sample.drivers.smbus.shell:
tags: smbus
``` | /content/code_sandbox/samples/drivers/smbus/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>
int main(void)
{
printk("Start SMBUS shell sample %s\n", CONFIG_BOARD);
return 0;
}
``` | /content/code_sandbox/samples/drivers/smbus/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```restructuredtext
.. zephyr:code-sample:: ps2
:name: PS/2 interface
:relevant-api: ps2_interface
Communicate with a PS/2 mouse.
Overview
********
This sample demonstrates how to use the :ref:`PS/2 API <ps2_api>`.
Callbacks are registered that will write to the console indicating PS2 events.
These events i... | /content/code_sandbox/samples/drivers/ps2/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 199 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_PS2=y
CONFIG_PM_DEVICE=y
CONFIG_PM=y
``` | /content/code_sandbox/samples/drivers/ps2/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 26 |
```yaml
sample:
name: PS2 driver sample
tests:
sample.drivers.espi.ps2:
tags:
- drivers
- ps2
integration_platforms:
- mec172xmodular_assy6930
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "mb data(.*)"
fixture: fixture_co... | /content/code_sandbox/samples/drivers/ps2/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/flash.h>
#include <jesd216.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#if DT_HAS_COMPAT_STATUS_OKAY(jedec_spi_nor)
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(jedec_spi_nor)
#elif DT_HAS_COMPAT_STAT... | /content/code_sandbox/samples/drivers/jesd216/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,449 |
```unknown
CONFIG_CONSOLE=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/drivers/ps2/boards/mec15xxevb_assy6853.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
/*
*
*/
/ {
aliases {
ps2-port0 = &ps2_channel0;
};
};
&ps2_channel0 {
status = "okay";
pinctrl-0 = <&ps2_0_dat_clk_gp67_70>;
pinctrl-names = "default";
};
``` | /content/code_sandbox/samples/drivers/ps2/boards/npcx7m6fb_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```unknown
CONFIG_CONSOLE=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/drivers/ps2/boards/npcx9m6f_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
/*
*
*/
&ps2_0 { /* PS2DAT0A */
wakerx-gpios = <MCHP_GPIO_DECODE_115 GPIO_ACTIVE_HIGH>;
wakeup-source;
};
/ {
aliases {
ps2-port0 = &ps2_0;
};
};
``` | /content/code_sandbox/samples/drivers/ps2/boards/mec172xevb_assy6906.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
/*
*
*/
&ps2_0 { /* PS2DAT0B */
wakerx-gpios = <MCHP_GPIO_DECODE_010 GPIO_ACTIVE_HIGH>;
wakeup-source;
};
&ps2_1 { /* PS2DAT1B */
wakerx-gpios = <MCHP_GPIO_DECODE_155 GPIO_ACTIVE_HIGH>;
wakeup-source;
};
/ {
aliases {
ps2-port0 = &ps2_0;
};
};
``` | /content/code_sandbox/samples/drivers/ps2/boards/mec1501modular_assy6885.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 98 |
```unknown
/*
*
*/
/ {
aliases {
ps2-port0 = &ps2_0;
};
};
``` | /content/code_sandbox/samples/drivers/ps2/boards/mec172xmodular_assy6930.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 24 |
```unknown
CONFIG_CONSOLE=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/drivers/ps2/boards/npcx7m6fb_evb.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
/*
*
*/
&ps2_0 { /* PS2DAT0B */
wakerx-gpios = <MCHP_GPIO_DECODE_010 GPIO_ACTIVE_HIGH>;
wakeup-source;
};
&ps2_1 { /* PS2DAT1B */
wakerx-gpios = <MCHP_GPIO_DECODE_155 GPIO_ACTIVE_HIGH>;
wakeup-source;
};
/ {
aliases {
ps2-port0 = &ps2_0;
};
};
``` | /content/code_sandbox/samples/drivers/ps2/boards/mec15xxevb_assy6853.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 98 |
```unknown
/*
*
*/
/ {
aliases {
ps2-port0 = &ps2_channel0;
};
};
&ps2_channel0 {
status = "okay";
pinctrl-0 = <&ps2_0_dat_clk_gp67_70>;
pinctrl-names = "default";
};
``` | /content/code_sandbox/samples/drivers/ps2/boards/npcx9m6f_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```restructuredtext
.. zephyr:code-sample:: flash-shell
:name: Flash shell
:relevant-api: flash_interface
Explore a flash device using shell commands.
Overview
********
This is a simple shell module that allows arbitrary boards with flash
driver support to explore the flash device.
Building and Running
***... | /content/code_sandbox/samples/drivers/flash_shell/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 416 |
```unknown
CONFIG_PRINTK=y
CONFIG_SHELL=y
CONFIG_LOG=y
CONFIG_FLASH=y
CONFIG_FLASH_SHELL=y
CONFIG_FLASH_SHELL_TEST_COMMANDS=y
``` | /content/code_sandbox/samples/drivers/flash_shell/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```yaml
sample:
description: Shell commands for inspecting flash driver behavior
name: Flash shell
tests:
sample.drivers.flash.shell:
tags:
- flash
- shell
filter: CONFIG_FLASH_HAS_DRIVER_ENABLED
platform_exclude:
- nucleo_h745zi_q/stm32h745xx/m4
- stm32h7s78_dk
- gd32f35... | /content/code_sandbox/samples/drivers/flash_shell/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 165 |
```c
/*
*
*/
#include <stdio.h>
int main(void)
{
printf("Flash shell sample");
return 0;
}
``` | /content/code_sandbox/samples/drivers/flash_shell/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
&flash0 {
partitions {
#address-cells = <1>;
#size-cells = <1>;
compatible = "fixed-partitions";
/* Set 3Kb of storage at the end of the of 1Mb flash 0 */
storage_partition: partition@ff400 {
label = "storage";
reg = <0xff400 DT_SIZE_K(3)>;
};
};
};
``` | /content/code_sandbox/samples/drivers/flash_shell/boards/cy8cproto_063_ble.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 96 |
```unknown
/ {
chosen {
zephyr,flash-controller = &flash;
};
};
&flash1 {
bank2-flash-size = <1024>;
};
``` | /content/code_sandbox/samples/drivers/flash_shell/boards/stm32h745i_disco_stm32h745xx_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```unknown
# This board only has 32KB SRAM, can not afford 16 KB memory pool, use 8KB instead.
CONFIG_HEAP_MEM_POOL_SIZE=8192
``` | /content/code_sandbox/samples/drivers/flash_shell/boards/gd32vf103v_eval.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```unknown
# This board only has 32KB SRAM, can not afford 16 KB memory pool, use 8KB instead.
CONFIG_HEAP_MEM_POOL_SIZE=8192
``` | /content/code_sandbox/samples/drivers/flash_shell/boards/gd32vf103c_starter.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```unknown
&flash0 {
partitions {
#address-cells = <1>;
#size-cells = <1>;
compatible = "fixed-partitions";
/* Set 3Kb of storage at the end of the of 2Mb flash 0 */
storage_partition: partition@1ff400 {
label = "storage";
reg = <0x1ff400 DT_SIZE_K(3)>;
};
};
};
``` | /content/code_sandbox/samples/drivers/flash_shell/boards/cy8cproto_062_4343w.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 99 |
```unknown
&flash1 {
bank2-flash-size = <1024>;
};
``` | /content/code_sandbox/samples/drivers/flash_shell/boards/stm32h747i_disco_stm32h747xx_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.