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_ASSERT=y
CONFIG_ASSERT_LEVEL=2
CONFIG_CMSIS_RTOS_V2=y
CONFIG_NUM_PREEMPT_PRIORITIES=56
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_THREAD_NAME=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
CONFIG_CMSIS_V2_TH... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/philosophers/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 112 |
```yaml
sample:
name: CMSIS_RTOS_V2 Dining Philosophers
common:
integration_platforms:
- native_sim
extra_args: DEBUG_PRINTF=1
tags: cmsis_rtos
min_ram: 32
min_flash: 34
platform_exclude:
- qemu_xtensa
- qemu_x86_64
harness: console
harness_config:
type: multi_line
ordered: false
... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/philosophers/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 220 |
```objective-c
/*
*
*/
/**
* @file
*
* Object type abstraction.
*
* Each object type that can be used as a "fork" provides:
*
* - a definition for fork_t (a reference to a fork) and fork_obj_t (an
* instance of the fork object)
* - a 'fork_init' function that initializes the object
* - a 'take' function ... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/phil_obj_abstract.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 641 |
```restructuredtext
.. zephyr:code-sample:: cmsis-rtos-v1-sync
:name: Synchronization using CMSIS RTOS V1 APIs
Use timers and message queues from CMSIS RTOS v1 API to synchronize threads.
Overview
********
The sample project illustrates usage of timers and message queues using
CMSIS RTOS V1 APIs.
The main thre... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/timer_synchronization/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 417 |
```unknown
CONFIG_ASSERT=y
CONFIG_ASSERT_LEVEL=2
CONFIG_CMSIS_RTOS_V1=y
CONFIG_NUM_PREEMPT_PRIORITIES=56
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_THREAD_NAME=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_THREAD_CUSTOM_DATA=y
``` | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/timer_synchronization/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```yaml
sample:
name: CMSIS_RTOS_V1 Synchronization
tests:
sample.portability.cmsis_rtos_v1.timer_synchronization:
integration_platforms:
- native_sim
tags: cmsis_rtos
min_ram: 32
min_flash: 34
harness: console
harness_config:
type: multi_line
ordered: true
regex:
... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/timer_synchronization/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 116 |
```c
/*
*
*/
/**
* @file
*
* Dining philosophers demo
*
* The demo can be configured to use SEMAPHORES or MUTEXES as object types for its
* synchronization. To configure a specific object, set the value of FORKS to one
* of these.
*
* By default, the demo uses MUTEXES.
*
* The demo can be configured to wo... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,621 |
```c
/*
*
*/
/**
* @file Synchronization demo using CMSIS RTOS V1 APIs.
*/
#include <zephyr/kernel.h>
#include <cmsis_os.h>
/* specify delay between greetings (in ms); compute equivalent in ticks */
#define TIMER_TICKS 50
#define STACKSIZE 512
#define MSGLEN 12
#define Q_LEN 1
#define INITIAL_DATA_VALUE 5
uin... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/timer_synchronization/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 480 |
```unknown
CONFIG_ASSERT=y
CONFIG_ASSERT_LEVEL=2
CONFIG_CMSIS_RTOS_V1=y
CONFIG_NUM_PREEMPT_PRIORITIES=56
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_THREAD_NAME=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_THREAD_CUSTOM_DATA=y
CONFIG_CMSIS_THREAD_MAX_ST... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/philosophers/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```yaml
sample:
name: CMSIS_RTOS_V1 Dining Philosophers
common:
integration_platforms:
- native_sim
extra_args: DEBUG_PRINTF=1
tags: cmsis_rtos
min_ram: 32
min_flash: 34
harness: console
harness_config:
type: multi_line
ordered: false
regex:
- ".*STARVING.*"
- ".*HOLDING.*"
... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/philosophers/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 211 |
```restructuredtext
.. zephyr:code-sample:: cmsis-rtos-v1
:name: Dining Philosophers (CMSIS RTOS V1 APIs)
Implement a solution to the Dining Philosophers problem using CMSIS RTOS V1.
Overview
********
This sample implements a solution to the `Dining Philosophers problem
<path_to_url`_ (a classic
multi-thread sy... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/philosophers/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 549 |
```objective-c
/*
*
*/
/**
* @file
*
* Object type abstraction.
*
* Each object type that can be used as a "fork" provides:
*
* - a definition for fork_t (a reference to a fork) and fork_obj_t (an
* instance of the fork object)
* - a 'fork_init' function that initializes the object
* - a 'take' function ... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/phil_obj_abstract.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 443 |
```restructuredtext
.. _display-samples:
Display Samples
###############
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/subsys/display/display.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```restructuredtext
.. zephyr:code-sample:: character-frame-buffer
:name: Character frame buffer
:relevant-api: monochrome_character_framebuffer
Display character strings using the Character Frame Buffer (CFB).
Overview
********
This sample displays character strings using the Character Frame Buffer
(CFB) s... | /content/code_sandbox/samples/subsys/display/cfb/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 163 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_DISPLAY=y
CONFIG_LOG=y
CONFIG_CFB_LOG_LEVEL_DBG=y
CONFIG_CHARACTER_FRAMEBUFFER=y
``` | /content/code_sandbox/samples/subsys/display/cfb/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```yaml
common:
harness: display
tags: display
sample:
description: Character framebuffer test
name: cfb sample
tests:
sample.display.cfb.ssd1306:
platform_allow: frdm_k64f
extra_args: SHIELD=ssd1306_128x64
tags: shield
sample.display.cfb.ssd16xx:
platform_allow: reel_board
``` | /content/code_sandbox/samples/subsys/display/cfb/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 89 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/display/cfb.h>
#include <stdio.h>
int main(void)
{
const struct device *dev;
uint16_t x_res;
uint16_t y_res;
uint16_t rows;
uint8_t ppt;
uint8_t font_width;
uint8_t font_height;
dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display)... | /content/code_sandbox/samples/subsys/display/cfb/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 564 |
```c
/*
*
*/
/**
* @file
*
* Dining philosophers demo
*
* The demo can be configured to use SEMAPHORES or MUTEXES as object types for its
* synchronization. To configure a specific object, set the value of FORKS to one
* of these.
*
* By default, the demo uses MUTEXES.
*
* The demo can be configured to wo... | /content/code_sandbox/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,433 |
```unknown
CONFIG_SPI=y
``` | /content/code_sandbox/samples/subsys/display/cfb/boards/reel_board.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```unknown
CONFIG_BOOT_BANNER=n
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_DISPLAY=y
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_SHELL=y
CONFIG_CHARACTER_FRAMEBUFFER_SHELL=y
``` | /content/code_sandbox/samples/subsys/display/cfb_shell/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```yaml
common:
harness: display
tags: display
sample:
description: Character framebuffer shell test
name: cfb shell sample
tests:
sample.display.cfb_shell.ssd1306:
platform_allow: frdm_k64f
extra_args: SHIELD=ssd1306_128x32
tags: shield
sample.display.cfb_shell.ssd16xx:
platform_allow: reel... | /content/code_sandbox/samples/subsys/display/cfb_shell/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(app);
``` | /content/code_sandbox/samples/subsys/display/cfb_shell/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```unknown
CONFIG_SPI=y
``` | /content/code_sandbox/samples/subsys/display/cfb_shell/boards/reel_board.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```restructuredtext
.. zephyr:code-sample:: cfb-shell-sample
:name: Character Framebuffer shell module
:relevant-api: monochrome_character_framebuffer
Use the CFB shell module to interact with a monochrome display.
Overview
********
This is a simple shell module that exercises displays using the Character
Fr... | /content/code_sandbox/samples/subsys/display/cfb_shell/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 899 |
```unknown
CONFIG_LV_Z_MEM_POOL_SIZE=16384
CONFIG_LV_Z_SHELL=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_DISPLAY=y
CONFIG_DISPLAY_LOG_LEVEL_ERR=y
CONFIG_LOG=y
CONFIG_SHELL=y
CONFIG_LVGL=y
CONFIG_LV_MEM_CUSTOM=y
CONFIG_LV_USE_LOG=y
CONFIG_LV_USE_LABEL=y
CONFIG_LV_USE_BTN=y
CONFIG_LV_USE_ARC=y
CONFIG_LV_USE_IMG=y
CONFIG_LV_U... | /content/code_sandbox/samples/subsys/display/lvgl/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```restructuredtext
.. zephyr:code-sample:: lvgl
:name: LVGL basic sample
:relevant-api: display_interface input_interface
Display a "Hello World" and react to user input using LVGL.
Overview
********
This sample application displays "Hello World" in the center of the screen
and a counter at the bottom whic... | /content/code_sandbox/samples/subsys/display/lvgl/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 773 |
```yaml
sample:
description: LVGL sample application
name: lvgl
tests:
sample.display.lvgl.gui:
filter: dt_chosen_enabled("zephyr,display")
# flash usage varies depending on the platform, but ~200K are the bare
# minimum, give some room by adding 50K more. RAM usage depends largerly on
# the displ... | /content/code_sandbox/samples/subsys/display/lvgl/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 798 |
```unknown
CONFIG_MAIN_STACK_SIZE=4096
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/esp32s3_touch_lcd_1_28.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
# Enable PXP DMA engine and set rotation angle to 0 degrees.
# This allows us to verify the DMA driver functions without altering
# the output image
CONFIG_DMA=y
CONFIG_MCUX_ELCDIF_PXP=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/mimxrt1060_evk.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```unknown
# Enable PXP DMA engine and set rotation angle to 0 degrees.
# This allows us to verify the DMA driver functions without altering
# the output image
CONFIG_DMA=y
CONFIG_MCUX_ELCDIF_PXP=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```unknown
CONFIG_LV_COLOR_DEPTH_32=y
CONFIG_GPIO=y
CONFIG_INPUT=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/st25dv_mb1283_disco.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```unknown
# Enable SPI driver for ST7735R
CONFIG_ST7735R=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/mini_stm32h743.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/display.h>
#include <zephyr/drivers/gpio.h>
#include <lvgl.h>
#include <stdio.h>
#include <string.h>
#include <zephyr/kernel.h>
#include <lvgl_input_device.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <zephyr/l... | /content/code_sandbox/samples/subsys/display/lvgl/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,110 |
```unknown
CONFIG_INPUT=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/wio_terminal.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```unknown
CONFIG_LV_COLOR_DEPTH_32=y
CONFIG_GPIO=y
CONFIG_INPUT=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/native_sim.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```unknown
/*
*/
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/lvgl/lvgl.h>
/ {
lvgl_button_input {
compatible = "zephyr,lvgl-button-input";
input = <&buttons>;
input-codes = <INPUT_KEY_0>;
coordinates = <160 120>;
};
lvgl_keypad_input {
compatible = "zephyr,lvgl-... | /content/code_sandbox/samples/subsys/display/lvgl/boards/wio_terminal.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 166 |
```unknown
CONFIG_LV_COLOR_DEPTH_32=y
CONFIG_GPIO=y
CONFIG_INPUT=y
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/native_posix.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```unknown
CONFIG_MAIN_STACK_SIZE=4096
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/m5stack_core2_procpu.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```unknown
/*
*
*/
#include "native_posix.overlay"
``` | /content/code_sandbox/samples/subsys/display/lvgl/boards/native_sim.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/lvgl/lvgl.h>
/ {
pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&stmpe811>;
invert-y;
};
keypad {
compatible = "zephyr,lvgl-keypad-input";
input = <&buttons>;
input-codes = <INPUT_KE... | /content/code_sandbox/samples/subsys/display/lvgl/boards/st25dv_mb1283_disco.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 155 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/lvgl/lvgl.h>
/ {
aliases {
sw0 = &button0;
};
qdec {
compatible = "gpio-qdec";
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>, <&gpio0 5 GPIO_ACTIVE_HIGH>;
steps-per-period = <4>;
zephyr,axis = <INPUT_REL_WHEE... | /content/code_sandbox/samples/subsys/display/lvgl/boards/native_posix.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 616 |
```restructuredtext
.. zephyr:code-sample:: cfb-custom-fonts
:name: Custom fonts
:relevant-api: monochrome_character_framebuffer
Generate and use a custom font.
Overview
********
A simple example showing how to generate Character Framebuffer (CFB)
font headers automatically at build time.
This example gener... | /content/code_sandbox/samples/subsys/display/cfb_custom_font/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 269 |
```yaml
common:
harness: display
tags: display
sample:
description: Custom character framebuffer font example
name: cfb custom font sample
tests:
sample.display.cfb_custom_font.ssd16xx:
platform_allow: reel_board
``` | /content/code_sandbox/samples/subsys/display/cfb_custom_font/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_DISPLAY=y
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CHARACTER_FRAMEBUFFER_USE_DEFAULT_FONTS=n
``` | /content/code_sandbox/samples/subsys/display/cfb_custom_font/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 29 |
```restructuredtext
.. zephyr:code-sample:: task-wdt
:name: Task watchdog
:relevant-api: task_wdt_api
Monitor a thread using a task watchdog.
Overview
********
This sample allows to test the :ref:`task watchdog <task_wdt_api>` subsystem.
Building and Running
********************
It should be possible to b... | /content/code_sandbox/samples/subsys/task_wdt/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 295 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/display/cfb.h>
#include <zephyr/sys/printk.h>
#include "cfb_font_dice.h"
int main(void)
{
const struct device *const display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
int err;
if (!device_is_ready(display)) {
printk("Displa... | /content/code_sandbox/samples/subsys/display/cfb_custom_font/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 329 |
```unknown
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_WATCHDOG=y
CONFIG_WDT_LOG_LEVEL_DBG=y
CONFIG_WDT_DISABLE_AT_BOOT=y
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_MIN_TIMEOUT=500
CONFIG_THREAD_NAME=y
``` | /content/code_sandbox/samples/subsys/task_wdt/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```yaml
sample:
name: Task Watchdog Subsytem Sample
common:
harness: console
tags:
- task_wdt
harness_config:
type: multi_line
ordered: true
regex:
- "Task watchdog sample application."
- "Control thread started."
- "Main thread still alive..."
- "Control thread getting s... | /content/code_sandbox/samples/subsys/task_wdt/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 218 |
```unknown
/*
*
*/
/*
* stm32F0 has a WWDG clock by APB1 where the APB1 prescaler is 1..16
* Adjust the APB1 clock to match the WDG timeout.
*/
&rcc {
/delete-property/ apb1-prescaler;
apb1-prescaler = <16>;
};
&iwdg {
status = "disabled";
};
&wwdg {
status = "okay";
};
``` | /content/code_sandbox/samples/subsys/task_wdt/boards/nucleo_f091rc.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
/*
*
*/
/*
* stm32F4 has a WWDG clock by APB1 where the APB1 prescaler is 1..16
* this is too low to configure the WWDG clock for this sample.
* Thus, use the IWDG instead for running this sample.
*/
&wwdg {
status = "disabled";
};
&iwdg {
status = "okay";
};
``` | /content/code_sandbox/samples/subsys/task_wdt/boards/nucleo_f411re.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```unknown
/*
*
*/
/*
* stm32F4 has a WWDG clock by APB1 where the APB1 prescaler is 1..16
* this is too low to configure the WWDG clock for this sample.
* Thus, use the IWDG instead for running this sample.
*/
&wwdg {
status = "disabled";
};
&iwdg {
status = "okay";
};
``` | /content/code_sandbox/samples/subsys/task_wdt/boards/nucleo_f401re.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```restructuredtext
.. _ipc_samples:
IPC Samples
###########
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/subsys/ipc/ipc.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```cmake
#
# Add external project
ExternalZephyrProject_Add(
APPLICATION openamp_remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_OPENAMP_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... | /content/code_sandbox/samples/subsys/ipc/openamp/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/watchdog.h>
#include <zephyr/sys/reboot.h>
#include <zephyr/task_wdt/task_wdt.h>
#include <zephyr/sys/printk.h>
#include <stdbool.h>
/*
* To use this sample, either the devicetree's /aliases must have a
* 'watchdog0' prope... | /content/code_sandbox/samples/subsys/task_wdt/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 895 |
```unknown
#
source "share/sysbuild/Kconfig"
config OPENAMP_REMOTE_BOARD
string
default "lpcxpresso54114/lpc54114/m0" if $(BOARD) = "lpcxpresso54114"
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
default "mps2/an521/cpu1" if $(BOARD) = "mps2"
default "v2m_musca_b1/musca_b1/ns" if $(BOARD... | /content/code_sandbox/samples/subsys/ipc/openamp/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 229 |
```objective-c
/*
*
*/
#ifndef COMMON_H__
#define COMMON_H__
#define VDEV_START_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_ipc_shm))
#define VDEV_SIZE DT_REG_SIZE(DT_CHOSEN(zephyr_ipc_shm))
#define VDEV_STATUS_ADDR VDEV_START_ADDR
#define VDEV_STATUS_SIZE 0x400
#define SHM_START_ADDR (VDEV_START_ADDR + VDEV_STATUS_SIZE... | /content/code_sandbox/samples/subsys/ipc/openamp/common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 179 |
```unknown
#
source "Kconfig.zephyr"
config INCLUDE_REMOTE_DIR
bool "Include remote core header directory"
help
Include remote build header files. Can be used if primary image
needs to be aware of size or base address of secondary image
``` | /content/code_sandbox/samples/subsys/ipc/openamp/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_TIMESLICE_SIZE=1
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_OPENAMP=y
CONFIG_OPENAMP_SLAVE=n
``` | /content/code_sandbox/samples/subsys/ipc/openamp/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```restructuredtext
.. zephyr:code-sample:: openamp
:name: OpenAMP
:relevant-api: ipm_interface
Send messages between two cores using OpenAMP.
Overview
********
This application demonstrates how to use OpenAMP with Zephyr. It is designed to
demonstrate how to integrate OpenAMP with Zephyr both from a build ... | /content/code_sandbox/samples/subsys/ipc/openamp/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 743 |
```yaml
sample:
description: This app provides an example of how to integrate OpenAMP with Zephyr.
name: OpenAMP example integration
tests:
sample.ipc.openamp:
platform_allow:
- lpcxpresso54114/lpc54114/m4
- lpcxpresso55s69/lpc55s69/cpu0
- mps2/an521/cpu0
- v2m_musca_b1/musca_b1
in... | /content/code_sandbox/samples/subsys/ipc/openamp/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 185 |
```unknown
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_IPM=y
CONFIG_PLATFORM_SPECIFIC_INIT=n
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_OPENAMP=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
CONFIG_OPENAMP_MASTER=n
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```yaml
sample:
description: This app provides an example of how to integrate OpenAMP with Zephyr.
name: OpenAMP example integration (remote)
tests:
sample.ipc.openamp.remote:
platform_allow:
- lpcxpresso54114/lpc54114/m0
- lpcxpresso55s69/lpc55s69/cpu1
integration_platforms:
- lpcxpress... | /content/code_sandbox/samples/subsys/ipc/openamp/remote/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
#
#
#
CONFIG_BUILD_OUTPUT_INFO_HEADER=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/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 | 24 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@281F8000 {
compatible = "mmio-sram";
reg = <0x281F8000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/mps2_an521_cpu1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```unknown
CONFIG_BUILD_OUTPUT_INFO_HEADER=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/mimxrt1160_evk_mimxrt1166_cm4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
/* Switch to lpuart2, since primary core uses lpuart1 */
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
zephyr,ipc_shm = &ocram2_overlay;
};
soc {
/delete-node/ gpt@400f0000;
... | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/mimxrt1170_evk_mimxrt1176_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 378 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx1;
zephyr,ipc = &mailbox0;
};
sramx1:memory@4000000{
compatible = "mmio-sram";
reg = <0x4000000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/lpcxpresso54114_lpc54114_m0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_BUILD_OUTPUT_HEX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/lpcxpresso54114_lpc54114_m0.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/drivers/ipm.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openamp/open_amp.h>
#include <metal/device.h>
#include "common.h"
#define APP_TASK_STACK_SIZE (1024)
K_THREAD_STACK... | /content/code_sandbox/samples/subsys/ipc/openamp/remote/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,782 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
/* Switch to lpuart2, since primary core uses lpuart1 */
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
zephyr,ipc_shm = &ocram2_overlay;
};
soc {
/delete-node/ gpt@400f0000;
... | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/mimxrt1160_evk_mimxrt1166_cm4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 378 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_BUILD_OUTPUT_HEX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
CONFIG_BUILD_OUTPUT_INFO_HEADER=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/mimxrt1170_evk_mimxrt1176_cm4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sram4duplicate;
zephyr,ipc = &mailbox0;
};
/* This is a duplication of sram4, workaround */
sram4duplicate: memory@20040000 {
compatible = "mmio-sram";
reg = <0x20040000 DT_SIZ... | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/lpcxpresso55s69_lpc55s69_cpu1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 107 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@20060000 {
compatible = "mmio-sram";
reg = <0x20060000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp/remote/boards/v2m_musca_b1_musca_b1_ns.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
/*
*
*/
/ {
/* Switch to lpuart2, since primary core uses lpuart1 */
chosen {
zephyr,flash = &ocram;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
zephyr,ipc_shm = &ocram2_overlay;
};
soc {
/delete-node/ gpt@400f0000;
/* Replace GPT2 with another GPT kernel timer */
gpt2_hw_... | /content/code_sandbox/samples/subsys/ipc/openamp/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 | 360 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/lpcxpresso55s69_lpc55s69_cpu0.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
zephyr,ipc_shm = &ocram2_overlay;
};
/* OpenAMP fails with full 512K OCRAM2 memory region as shared memory.
* Define a subset of the OCRAM2 region for demo to use
* Note that shared memory must have specific MPU at... | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 181 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sram4duplicate;
zephyr,ipc = &mailbox0;
};
/* This is a duplication of sram4, workaround */
sram4duplicate: memory@20040000 {
compatible = "mmio-sram";
reg = <0x20040000 DT_SIZ... | /content/code_sandbox/samples/subsys/ipc/openamp/boards/lpcxpresso55s69_lpc55s69_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 107 |
```unknown
CONFIG_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@281F8000 {
compatible = "mmio-sram";
reg = <0x281F8000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mps2_an521_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```unknown
CONFIG_SECOND_CORE_MCUX=y
CONFIG_INCLUDE_REMOTE_DIR=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/lpcxpresso54114_lpc54114_m4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
zephyr,ipc_shm = &ocram2_overlay;
};
/* OpenAMP fails with full 512K OCRAM2 memory region as shared memory.
* Define a subset of the OCRAM2 region for demo to use
* Note that shared memory must have specific MPU at... | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mimxrt1160_evk_mimxrt1166_cm7.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 181 |
```unknown
#
#
#
CONFIG_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```unknown
CONFIG_INCLUDE_REMOTE_DIR=y
CONFIG_SECOND_CORE_MCUX=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mimxrt1160_evk_mimxrt1166_cm7.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx1;
zephyr,ipc = &mailbox0;
};
sramx1:memory@4000000{
compatible = "mmio-sram";
reg = <0x4000000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/lpcxpresso54114_lpc54114_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
/ {
chosen {
zephyr,ipc_shm = &ocram2_overlay;
};
/* OpenAMP fails with full 512K OCRAM2 memory region as shared memory.
* Define a subset of the OCRAM2 region for demo to use
* Note that shared memory must have specific MPU at... | /content/code_sandbox/samples/subsys/ipc/openamp/boards/mimxrt1170_evk_mimxrt1176_cm7_A.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 181 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &sramx;
zephyr,ipc = &mhu0;
};
sramx: memory@20060000 {
compatible = "mmio-sram";
reg = <0x20060000 0x8000>;
};
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp/boards/v2m_musca_b1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/init.h>
#include <openamp/open_amp.h>
#include <metal/device.h>
#include "common.h"
#define APP_TASK_STACK_S... | /content/code_sandbox/samples/subsys/ipc/openamp/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,086 |
```unknown
CONFIG_KERNEL_BIN_NAME="zephyr_openamp_rsc_table"
CONFIG_PRINTK=n
CONFIG_IPM=y
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_OPENAMP=y
CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF=8
CONFIG_OPENAMP_RSC_TABLE=y
CONFIG_OPENAMP_MASTER=n
CONFIG_SHELL=y
CONFIG_SHELL_BACKEND_RPMSG=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 89 |
```yaml
sample:
description: This app provides an example of how to integrate OpenAMP
with Zephyr including a resource table.
name: OpenAMP with resource table example integration
tests:
sample.subsys.ipc.openamp_rs_table:
build_only: true
platform_allow:
- stm32mp157c_dk2
- imx8mp_evk/mim... | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```restructuredtext
.. zephyr:code-sample:: openamp-rsc-table
:name: OpenAMP using resource table
:relevant-api: ipm_interface
Send messages between two cores using OpenAMP and a resource table.
Overview
********
This application demonstrates how to use OpenAMP with Zephyr based on a resource
table. It is d... | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,068 |
```unknown
CONFIG_PLATFORM_SPECIFIC_INIT=n
``` | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/boards/stm32mp157c_dk2.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8 |
```unknown
CONFIG_IPM=y
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y
CONFIG_OPENAMP_WITH_DCACHE=y
CONFIG_PLATFORM_SPECIFIC_INIT=n
CONFIG_OPENAMP=y
CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF=32
CONFIG_OPENAMP_RSC_TABLE=y
CONFIG_OPENAMP_MASTER=n
CONFIG_ROMSTART_RELOCATION_ROM=y
CONFIG_BUILD_OUTPUT_BIN=n
``` | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/boards/colibri_imx7d_mcimx7d_m4.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &mcusram3;
zephyr,ipc = &mailbox;
};
mcusram3: memory1@10040000 {
compatible = "mmio-sram";
reg = <0x10040000 DT_SIZE_K(64)>;
};
};
&mcusram {
reg = <0x10000000 DT_SIZE_K(256)>... | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/boards/stm32mp157c_dk2.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 115 |
```unknown
/*
*
*/
/* Follow the board's documentation to modify the Linux DT accordingly */
/ {
chosen {
/* Use OCRAM 128kB because TCM 32kB is too small for the sample */
zephyr,flash = &ocram_code;
zephyr,ipc_shm = &ddr_shm;
zephyr,ipc = &mub;
};
ddr_shm: memory1@90000000 {
compatible = "mmio-sram... | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/boards/colibri_imx7d_mcimx7d_m4.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 162 |
```unknown
/*
*
*/
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &dspsram3;
zephyr,ipc = &mailbox0;
};
dspsram3: memory@942f0000 {
compatible = "mmio-sram";
reg = <0x942f0000 0x110000>;
};
};
&mailbox0 {
status = "okay";
};
``` | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/boards/imx8mp_evk_mimx8ml8_adsp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 105 |
```unknown
CONFIG_LOG_PRINTK=n
CONFIG_IPM_IMX_MAX_DATA_SIZE_16=n
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y
CONFIG_OPENAMP_WITH_DCACHE=y
CONFIG_IPM_IMX_FW_READY_REPLY=y
``` | /content/code_sandbox/samples/subsys/ipc/openamp_rsc_table/boards/imx8mp_evk_mimx8ml8_adsp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```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()
ExternalZephyrProject_Add(
APPLICATION remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_REMOTE_BOARD}
)
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/sysbuild.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```unknown
#
source "share/sysbuild/Kconfig"
config REMOTE_BOARD
string
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
default "nrf54l15pdk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15pdk"
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
``` | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 108 |
```restructuredtext
.. zephyr:code-sample:: ipc-icmsg
:name: IPC service: icmsg backend
:relevant-api: ipc
Send messages between two cores using the IPC service and icmsg backend.
Overview
********
This application demonstrates how to use IPC Service and the icmsg backend with
Zephyr. It is designed to demo... | /content/code_sandbox/samples/subsys/ipc/ipc_service/icmsg/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 913 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.