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
```restructuredtext .. _mgmt-samples: Management Samples ################## .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/mgmt/mgmt.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown # Disable default configs CONFIG_BT=n CONFIG_NET_L2_ETHERNET=n CONFIG_NET_IPV4=n CONFIG_NET_DHCPV4=n CONFIG_NET_TCP=n # Enable IEEE 802.15.4 CONFIG_NET_L2_IEEE802154=y CONFIG_NET_L2_IEEE802154_SHELL=y CONFIG_NET_CONFIG_IEEE802154_PAN_ID=0xcafe CONFIG_NET_CONFIG_IEEE802154_CHANNEL=26 CONFIG_NET_IPV6=y C...
/content/code_sandbox/samples/subsys/mgmt/updatehub/overlay-802154.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
225
```unknown CONFIG_FLASH_AREA_CHECK_INTEGRITY_PSA=y CONFIG_MBEDTLS=y CONFIG_MBEDTLS_PSA_CRYPTO_C=y ```
/content/code_sandbox/samples/subsys/mgmt/updatehub/overlay-psa.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
28
```unknown # # # CONFIG_UPDATEHUB_DTLS=y #Minimal TLS configuration CONFIG_MAIN_STACK_SIZE=3000 CONFIG_NET_BUF_RX_COUNT=50 CONFIG_MBEDTLS_HEAP_SIZE=60000 # End tls configs ```
/content/code_sandbox/samples/subsys/mgmt/updatehub/overlay-dtls.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
48
```unknown # Disable default configs CONFIG_NET_L2_ETHERNET=n CONFIG_NET_DHCPV4=n CONFIG_NET_CONFIG_SETTINGS=n # Enable WIFI CONFIG_WIFI=y CONFIG_UPDATEHUB_SAMPLE_WIFI_SSID="<SSID>" CONFIG_UPDATEHUB_SAMPLE_WIFI_PSK="<PASSWD>" CONFIG_NET_PKT_RX_COUNT=8 CONFIG_NET_PKT_TX_COUNT=8 CONFIG_NET_BUF_RX_COUNT=20 CONFIG_NET...
/content/code_sandbox/samples/subsys/mgmt/updatehub/overlay-wifi.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```c /* * */ /** * @file * @brief Sample echo app for CDC ACM class * * Sample app for USB CDC ACM class driver. The received data is echoed back * to the serial port. */ #include <sample_usbd.h> #include <stdio.h> #include <string.h> #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zeph...
/content/code_sandbox/samples/subsys/usb/cdc_acm/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,489
```unknown mainmenu "Sample app Configuration" config UPDATEHUB_SAMPLE_MANUAL bool "UpdateHub manual mode" help Manual mode requires the user to call the server probe and then, if there is an available update, also requires the user to decide if it is appropriate to update now or later. if !UPDATEHUB_SAMP...
/content/code_sandbox/samples/subsys/mgmt/updatehub/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
196
```unknown # # # #Example of product_uid, you must set you product uid. CONFIG_UPDATEHUB_PRODUCT_UID=your_sha256_hash #If you use the autorandler, need set UPDATEHUB_POLL_INTERVAL. #This example, the updatehub will poll on the server #request for updates one to one minute. #(min: 0 minute, mx: 30 days) CONFIG_UPDATEH...
/content/code_sandbox/samples/subsys/mgmt/updatehub/overlay-prj.conf.example
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
131
```unknown # Disable default configs CONFIG_BT=n CONFIG_NET_L2_ETHERNET=n CONFIG_NET_L2_IEEE802154=n CONFIG_NET_IPV4=n CONFIG_NET_DHCPV4=n CONFIG_NET_TCP=n # Enable OpenThread network CONFIG_NET_L2_OPENTHREAD=y CONFIG_OPENTHREAD_DEBUG=y CONFIG_OPENTHREAD_L2_DEBUG=y CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y # Enable Op...
/content/code_sandbox/samples/subsys/mgmt/updatehub/overlay-ot.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
412
```unknown CONFIG_FLASH=y CONFIG_STREAM_FLASH=y CONFIG_FLASH_MAP=y CONFIG_REBOOT=y CONFIG_MCUBOOT_IMG_MANAGER=y CONFIG_IMG_MANAGER=y CONFIG_IMG_ENABLE_IMAGE_CHECK=y CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_MPU_ALLOW_FLASH_WRITE=y CONFIG_NETWORKING=y CONFIG_NET_UDP=y CONFIG_NET_SOCKETS=y CONFIG_COAP=y CONFIG_DNS_RESOLVER=y CO...
/content/code_sandbox/samples/subsys/mgmt/updatehub/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
244
```yaml sample: description: UpdateHub enterprise-grade Firmware Over-the-Air (FOTA) name: UpdateHub common: harness: net tags: - net - wifi - updatehub depends_on: netif build_only: true platform_allow: frdm_k64f integration_platforms: - frdm_k64f tests: sample.net.updatehub: extr...
/content/code_sandbox/samples/subsys/mgmt/updatehub/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
349
```objective-c /* * */ #ifndef __CERTIFICATE_H__ #define __CERTIFICATE_H__ #if defined(CONFIG_UPDATEHUB_DTLS) #define CA_CERTIFICATE_TAG 1 static const unsigned char server_certificate[] = { #include "servercert.der.inc" }; static const unsigned char private_key[] = { #include "privkey.der.inc" }; #endi...
/content/code_sandbox/samples/subsys/mgmt/updatehub/src/c_certificates.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/mgmt/updatehub.h> #include <zephyr/net/net_mgmt.h> #include <zephyr/net/net_event.h> #include <zephyr/net/conn_mgr_monitor.h> #ifdef CONFIG_NET_L2_WIFI_MGMT #include <zephyr/net/wifi_mgmt.h> #endif /* CONFIG_NET_L2_WIFI_MGMT */ #if defined(CONFIG_UPDATEHUB_D...
/content/code_sandbox/samples/subsys/mgmt/updatehub/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
856
```restructuredtext .. zephyr:code-sample:: updatehub-fota :name: UpdateHub embedded Firmware Over-The-Air (FOTA) update :relevant-api: updatehub Perform Firmware Over-The-Air (FOTA) updates using UpdateHub. Overview ******** UpdateHub is an enterprise-grade solution which makes it simple to remotely update...
/content/code_sandbox/samples/subsys/mgmt/updatehub/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,090
```unknown CONFIG_MAIN_STACK_SIZE=8192 # TLS configuration CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_HEAP_SIZE=60000 CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384 CONFIG_NET_SOCKETS_SOCKOPT_TLS=y CONFIG_HAWKBIT_USE_TLS=y ```
/content/code_sandbox/samples/subsys/mgmt/hawkbit/overlay-tls.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
76
```unknown CONFIG_HAWKBIT_SET_SETTINGS_RUNTIME=y ```
/content/code_sandbox/samples/subsys/mgmt/hawkbit/overlay-runtime.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11
```restructuredtext .. zephyr:code-sample:: hawkbit-api :name: Eclipse hawkBit Direct Device Integration API :relevant-api: hawkbit Update a device using Eclipse hawkBit DDI API. Overview ******** The Eclipse hawkBit update server provides REST resources which are consumed by the device to retrieve software...
/content/code_sandbox/samples/subsys/mgmt/hawkbit/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,058
```unknown # # # mainmenu "hawkBit sample configuration" choice prompt "hawkBit mode" default HAWKBIT_POLLING depends on HAWKBIT config HAWKBIT_POLLING bool "hawkBit Polling mode" help Polling mode runs automatically on a predefined period, probing the server for updates and installing them without requiri...
/content/code_sandbox/samples/subsys/mgmt/hawkbit/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
152
```unknown #Enable hawkBit CONFIG_HAWKBIT=y CONFIG_NVS=y CONFIG_FLASH=y CONFIG_FLASH_MAP=y CONFIG_STREAM_FLASH=y CONFIG_REBOOT=y CONFIG_HWINFO=y CONFIG_NET_TCP=y CONFIG_NET_SOCKETS=y CONFIG_IMG_MANAGER=y CONFIG_NETWORKING=y CONFIG_HTTP_CLIENT=y CONFIG_DNS_RESOLVER=y CONFIG_JSON_LIBRARY=y CONFIG_BOOTLOADER_MCUBOOT=y CON...
/content/code_sandbox/samples/subsys/mgmt/hawkbit/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
429
```yaml common: filter: CONFIG_FULL_LIBC_SUPPORTED harness: net tags: net depends_on: netif build_only: true platform_allow: frdm_k64f integration_platforms: - frdm_k64f sample: description: hawkBit Firmware Over-the-Air (FOTA) name: hawkbit tests: sample.net.hawkbit.default: {} sample.net.haw...
/content/code_sandbox/samples/subsys/mgmt/hawkbit/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
293
```objective-c /* * */ #ifndef __CA_CERTIFICATE_H__ #define __CA_CERTIFICATE_H__ #define CA_CERTIFICATE_TAG 1 /* By default only certificates in DER format are supported. If you want to use * certificate in PEM format, you can enable support for it in Kconfig. */ /* GlobalSign Root CA - R2 for path_to_url */ #i...
/content/code_sandbox/samples/subsys/mgmt/hawkbit/src/ca_certificate.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
126
```unknown # Enable the shell MCUmgr transport. CONFIG_BASE64=y CONFIG_CRC=y CONFIG_SHELL=y CONFIG_SHELL_BACKEND_SERIAL=y CONFIG_MCUMGR_TRANSPORT_SHELL=y # mcumgr-cli application doesn't accepts log in the channel it uses CONFIG_SHELL_LOG_BACKEND=n ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-shell.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
63
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/mgmt/hawkbit.h> #include <zephyr/dfu/mcuboot.h> #include <zephyr/sys/printk.h> #include <zephyr/sys/reboot.h> #include <zephyr/logging/log.h> #include <zephyr/data/json.h> #if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS) #include <zephyr/net/tls_credentials.h> #in...
/content/code_sandbox/samples/subsys/mgmt/hawkbit/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
801
```unknown # Enable MCUboot bootloader support SB_CONFIG_BOOTLOADER_MCUBOOT=y ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/sysbuild.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
18
```unknown CONFIG_BT=y CONFIG_BT_PERIPHERAL=y # Allow for large Bluetooth data packets. CONFIG_BT_L2CAP_TX_MTU=498 CONFIG_BT_BUF_ACL_RX_SIZE=502 CONFIG_BT_BUF_ACL_TX_SIZE=502 CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 # Enable the Bluetooth mcumgr transport (unauthenticated). CONFIG_MCUMGR_TRANSPORT_BT=y CONFIG_MCUMGR_TRANSP...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-bt.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
363
```unknown # Enable the serial MCUmgr transport. CONFIG_BASE64=y CONFIG_CRC=y CONFIG_MCUMGR_TRANSPORT_UART=y CONFIG_CONSOLE=y ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```unknown # Enable the UDP MCUmgr transport. CONFIG_MCUMGR_TRANSPORT_UDP=y CONFIG_MCUMGR_TRANSPORT_UDP_IPV4=y CONFIG_MCUMGR_TRANSPORT_UDP_IPV6=y # Network settings CONFIG_NETWORKING=y CONFIG_NET_UDP=y CONFIG_NET_IPV4=y CONFIG_NET_IPV6=y CONFIG_NET_SOCKETS=y CONFIG_NET_CONNECTION_MANAGER=y CONFIG_NET_CONFIG_SETTINGS=y...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-udp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
116
```unknown # Enable the LittleFS file system. CONFIG_FLASH_MAP=y CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_LITTLEFS=y # Add 256 bytes to accommodate upload command (lfs_stat overflows) CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304 # Enable file system commands CONFIG_MCUMGR_GRP_FS=y ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-fs.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
67
```unknown # Enable shell commands. CONFIG_BASE64=y CONFIG_CRC=y CONFIG_SHELL=y CONFIG_SHELL_BACKEND_DUMMY=y CONFIG_MCUMGR_GRP_SHELL=y ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-shell-mgmt.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
37
```unknown # Enable console with MCUmgr pass through CONFIG_BASE64=y CONFIG_CRC=y CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE_MCUMGR=y ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial-console.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
36
```unknown # Enable USB subsystem CONFIG_USB_DEVICE_STACK=y CONFIG_SERIAL=y CONFIG_UART_LINE_CTRL=y CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n CONFIG_CONSOLE=y # USB backend is serial device CONFIG_MCUMGR_TRANSPORT_UART=y CONFIG_BASE64=y CONFIG_CRC=y ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/overlay-cdc.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
60
```unknown /* * */ / { chosen { zephyr,uart-mcumgr = &cdc_acm_uart0; }; }; &zephyr_udc0 { cdc_acm_uart0: cdc_acm_uart0 { compatible = "zephyr,cdc-acm-uart"; }; }; ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/usb.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```unknown # Enable MCUmgr and dependencies. CONFIG_NET_BUF=y CONFIG_ZCBOR=y CONFIG_CRC=y CONFIG_MCUMGR=y CONFIG_STREAM_FLASH=y CONFIG_FLASH_MAP=y # Some command handlers require a large stack. CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304 CONFIG_MAIN_STACK_SIZE=2048 # Ensure an MCUboot-compatible binary is generated. CONF...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
212
```yaml sample: description: Simple Management Protocol sample name: smp svr common: harness: bluetooth tags: bluetooth tests: sample.mcumgr.smp_svr.bt: extra_args: OVERLAY_CONFIG="overlay-bt.conf" platform_allow: - nrf52dk/nrf52832 - nrf52840dk/nrf52840 - pinnacle_100_dvk - mg...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
966
```restructuredtext .. zephyr:code-sample:: smp-svr :name: SMP server Implement a Simple Management Protocol (SMP) server. Overview ******** This sample application implements a Simple Management Protocol (SMP) server. SMP is a basic transfer encoding for use with the MCUmgr management protocol. For more infor...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,243
```c /* * */ #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/gatt.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/mgmt/mcumgr/transport/smp_bt.h> #define LOG_LEVEL LOG_LEVEL_DBG #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(smp_bt_sample); static st...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/src/bluetooth.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
590
```objective-c /* * */ void start_smp_bluetooth_adverts(void); ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/src/common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
14
```unknown # Use minimal logging mode and disable info/debug logging to reduce flash space CONFIG_LOG_MODE_MINIMAL=y CONFIG_LOG_MAX_LEVEL=2 CONFIG_LOG_DEFAULT_LEVEL=2 # Disable RTT support CONFIG_USE_SEGGER_RTT=n # Disable Bluetooth PHY update support CONFIG_BT_USER_PHY_UPDATE=n CONFIG_BT_PHY_UPDATE=n ```
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/boards/nrf52dk_nrf52832.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/stats/stats.h> #include <zephyr/usb/usb_device.h> #ifdef CONFIG_MCUMGR_GRP_FS #include <zephyr/device.h> #include <zephyr/fs/fs.h> #include <zephyr/fs/littlefs.h> #endif #ifdef CONFIG_MCUMGR_GRP_STAT #include <zephyr/mgmt/mcumgr/grp/stat_mgmt/stat_mgmt.h> #en...
/content/code_sandbox/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
638
```restructuredtext .. _osdp-sample: Open Supervised Device Protocol (OSDP) ###################################### Open Supervised Device Protocol (OSDP) is an IEC standard (IEC 60839-11-5) intended to improve interoperability among access control and security products. It supports Secure Channel (SC) for encrypted a...
/content/code_sandbox/samples/subsys/mgmt/osdp/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
272
```unknown # # # CONFIG_PRINTK=y CONFIG_LOG=y CONFIG_GPIO=y # OSDP config CONFIG_OSDP=y CONFIG_OSDP_MODE_PD=y # Secure Channel CONFIG_ENTROPY_GENERATOR=y CONFIG_OSDP_LOG_LEVEL=4 ```
/content/code_sandbox/samples/subsys/mgmt/osdp/peripheral_device/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```unknown # # # CONFIG_PRINTK=y CONFIG_LOG=y CONFIG_GPIO=y # OSDP config CONFIG_OSDP=y CONFIG_OSDP_MODE_PD=y # Secure Channel CONFIG_ENTROPY_GENERATOR=y CONFIG_OSDP_SC_ENABLED=y CONFIG_OSDP_LOG_LEVEL=4 ```
/content/code_sandbox/samples/subsys/mgmt/osdp/peripheral_device/prj_sc.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
65
```yaml sample: description: OSDP Peripheral Device Sample name: osdp common: tags: osdp depends_on: gpio filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL harness: osdp integration_platforms: - stm32_min_dev@black ...
/content/code_sandbox/samples/subsys/mgmt/osdp/peripheral_device/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
152
```unknown # # # CONFIG_PRINTK=y CONFIG_LOG=y CONFIG_GPIO=y # OSDP config CONFIG_OSDP=y CONFIG_OSDP_MODE_CP=y # Secure Channel CONFIG_ENTROPY_GENERATOR=y CONFIG_OSDP_SC_ENABLED=y CONFIG_OSDP_LOG_LEVEL=4 ```
/content/code_sandbox/samples/subsys/mgmt/osdp/control_panel/prj_sc.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
65
```unknown # # # CONFIG_PRINTK=y CONFIG_LOG=y CONFIG_GPIO=y # OSDP config CONFIG_OSDP=y CONFIG_OSDP_MODE_CP=y # Secure Channel CONFIG_ENTROPY_GENERATOR=y CONFIG_OSDP_LOG_LEVEL=4 ```
/content/code_sandbox/samples/subsys/mgmt/osdp/control_panel/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/mgmt/osdp.h> /* The devicetree node identifier for the "led0" alias. */ #define LED0_NODE DT_ALIAS(led0) #if !DT_NODE_HAS_STATUS(LED0_NODE, okay) #error "BOARD does not define a debug LED" #endif s...
/content/code_sandbox/samples/subsys/mgmt/osdp/peripheral_device/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
382
```yaml sample: description: OSDP Control Panel Sample name: osdp common: tags: osdp depends_on: gpio filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and dt_chosen_enabled("zephyr,osdp-uart") and CONFIG_SERIAL harness: osdp integration_platforms: - stm32_min_dev@black - ...
/content/code_sandbox/samples/subsys/mgmt/osdp/control_panel/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
150
```restructuredtext .. _zbus_samples: zbus Samples ############ .. toctree:: :maxdepth: 1 :glob: **/* ```
/content/code_sandbox/samples/subsys/zbus/zbus.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/mgmt/osdp.h> /* The devicetree node identifier for the "led0" alias. */ #define LED0_NODE DT_ALIAS(led0) #if !DT_NODE_HAS_STATUS(LED0_NODE, okay) #error "BOARD does not define a debug LED" #endif s...
/content/code_sandbox/samples/subsys/mgmt/osdp/control_panel/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
723
```python #!/usr/bin/env python3 import serial import json import argparse j = """ [ {"name":"version","on_changed": false, "read_only": true, "message_size": 4}, {"name":"sensor_data","on_changed": true, "read_only": false, "message_size":8}, {"name":"start_measurement","on_changed": false, "read_only": f...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/decoder.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
317
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_THREAD_NAME=y CONFIG_SERIAL=y CONFIG_UART_LINE_CTRL=n CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_DBG=y CONFIG_ZBUS_CHANNEL_NAME=y ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
47
```yaml sample: name: UART bridge common: tags: zbus harness: console harness_config: type: multi_line ordered: false regex: - "D: Core sending start measurement with status 0" - "D: Peripheral sending sensor data" - "D: Bridge Started" - "D: Bridge send start_measurement" ...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
146
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DECLARE(start_measurement_chan); ZBUS_CHAN_DEFINE(version_chan, /* Name */ struct version_msg, /* Message type */ NULL, /* Validator */ NUL...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/src/core.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
239
```restructuredtext .. zephyr:code-sample:: zbus-uart-bridge :name: UART bridge :relevant-api: zbus_apis Redirect channel events to the host over UART. Overview ******** This simple application demonstrates a UART redirection of all channel events to the host. The device sends information to the script runn...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,065
```objective-c /* */ #ifndef _MESSAGES_H_ #define _MESSAGES_H_ #include <stdbool.h> #include <stdint.h> struct version_msg { uint8_t major; uint8_t minor; uint16_t build; }; struct sensor_data_msg { int a; int b; }; struct net_pkt_msg { char x; bool y; }; struct action_msg { bool status; }; #endif /* _MES...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/src/messages.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
85
```c /* */ #include "messages.h" #include <string.h> #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_SUBSCRIBER_DEFINE(bridge_sub, 4); ZBUS_CHAN_DEFINE(finish_c...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/src/bridge.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
512
```unknown CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE=y ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/native_sim_native_64.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown /* */ &uart1 { status = "okay"; current-speed = <115200>; }; ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/nrf52840dk_nrf52840.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20
```unknown CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE=y ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/native_sim.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_SUBSCRIBER_DEFINE(peripheral_sub, 8); ZBUS_CHAN_DECLARE(sensor_data_chan); static bool sensor_data_from_bridge; ZBUS_CHAN_DEFINE(sensor_data_chan, /* Name */ stru...
/content/code_sandbox/samples/subsys/zbus/uart_bridge/src/peripheral.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
337
```unknown CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_UART_SIFIVE_PORT_1=y CONFIG_UART_SIFIVE_PORT_1_TXCNT_IRQ=1 CONFIG_UART_SIFIVE_PORT_1_RXCNT_IRQ=1 ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/hifive1_fe310_B.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```unknown /* */ &uart1 { status = "okay"; current-speed = <115200>; }; ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/hifive1_fe310_B.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20
```unknown CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE=y ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/native_posix.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE=y ```
/content/code_sandbox/samples/subsys/zbus/uart_bridge/boards/native_posix_native_64.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_ASSERT=y CONFIG_HEAP_MEM_POOL_SIZE=1024 CONFIG_ZBUS=y CONFIG_ZBUS_CHANNEL_NAME=y CONFIG_ZBUS_LOG_LEVEL_WRN=y CONFIG_BOOT_BANNER=n ```
/content/code_sandbox/samples/subsys/zbus/dyn_channel/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```restructuredtext .. zephyr:code-sample:: zbus-dyn-channel :name: Dynamic channel :relevant-api: zbus_apis Use zbus channels with dynamically allocated messages. Overview ******** This sample implements an application using zbus to illustrate the way zbus supports dynamically allocated channels. Building ...
/content/code_sandbox/samples/subsys/zbus/dyn_channel/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
820
```yaml sample: name: Dynamic channel common: tags: zbus harness: console harness_config: type: multi_line ordered: true regex: - "W: size=01" - "W: Content" - "W: 00 |." - "W: size=02" - "W: Content" - "W: 01 01 |.." -...
/content/code_sandbox/samples/subsys/zbus/dyn_channel/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
849
```objective-c /* */ #ifndef _MESSAGES_H_ #define _MESSAGES_H_ #include <stddef.h> #include <stdint.h> struct version_msg { uint8_t major; uint8_t minor; uint16_t build; }; struct external_data_msg { void *reference; size_t size; }; struct ack_msg { uint8_t value; }; #endif /* _MESSAGES_H_ */ ```
/content/code_sandbox/samples/subsys/zbus/dyn_channel/src/messages.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
77
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DECLARE(pkt_chan, data_ready_chan, ack); ZBUS_SUBSCRIBER_DEFINE(consumer_sub, 4); static void consumer_thread(void) { struct external_data_msg *dyn_alloc_msg; ...
/content/code_sandbox/samples/subsys/zbus/dyn_channel/src/consumer.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
325
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DECLARE(pkt_chan); ZBUS_SUBSCRIBER_DEFINE(producer_sub, 4); static void producer_thread(void) { const struct zbus_channel *chan; void *msg; for (uint8_t i = ...
/content/code_sandbox/samples/subsys/zbus/dyn_channel/src/producer.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
276
```c /* */ #include "messages.h" #include <stdint.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DEFINE(pkt_chan, /* Name */ struct external_data_msg, /* Message type */ NULL, /* Validator */ ...
/content/code_sandbox/samples/subsys/zbus/dyn_channel/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
537
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_ZBUS_LOG_LEVEL_INF=y CONFIG_ZBUS=y CONFIG_ZBUS_MSG_SUBSCRIBER=y CONFIG_HEAP_MEM_POOL_SIZE=1024 ```
/content/code_sandbox/samples/subsys/zbus/priority_boost/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```yaml sample: name: Priority boost tests: sample.zbus.non_priority_boost: harness: console harness_config: type: multi_line ordered: false regex: - "I: 0 -> T1: prio before 5" - "I: 0 ---> L1: T1 prio 5" - "I: 0 ---> L2: T1 prio 5" - "I: 0 -> T1: prio afte...
/content/code_sandbox/samples/subsys/zbus/priority_boost/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,058
```restructuredtext .. zephyr:code-sample:: zbus-priority-boost :name: zbus Priority Boost :relevant-api: zbus_apis Illustrates zbus priority boost feature with a priority inversion scenario. Overview ******** This sample implements a simple application that illustrates the priority boost feature. The applic...
/content/code_sandbox/samples/subsys/zbus/priority_boost/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,026
```restructuredtext .. zephyr:code-sample:: zbus-runtime-obs-registration :name: Runtime observer registration :relevant-api: zbus_apis Use zbus' runtime observer registration to filter data generated by a producer. Overview ******** The sample illustrates a way of using the runtime observer registration fea...
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
717
```unknown CONFIG_LOG=y CONFIG_ASSERT=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_BOOT_BANNER=n CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_INF=y CONFIG_ZBUS_RUNTIME_OBSERVERS=y CONFIG_HEAP_MEM_POOL_SIZE=256 CONFIG_MP_MAX_NUM_CPUS=1 ```
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
61
```c /* */ #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DEFINE(chan_a, int, NULL, NULL, ZBUS_OBSERVERS(l1, ms1, ms2, s1, l2), 0); static void t1_thread(void *ptr1, void *ptr2, void *ptr3); K_THREAD_DEFINE(t1_id, C...
/content/code_sandbox/samples/subsys/zbus/priority_boost/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,154
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_SUBSCRIBER_DEFINE(consumer_sub, 4); static void consumer_subscriber_thread(void) { const struct zbus_channel *chan; while (!zbus_sub_wait(&consumer_sub, &chan, K_FO...
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/src/consumer.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
177
```objective-c /* */ #ifndef _MESSAGES_H_ #define _MESSAGES_H_ #include <stdint.h> struct sensor_msg { int x; int y; int z; }; #endif /* _MESSAGES_H_ */ ```
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/src/messages.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```yaml sample: name: Runtime observer registration tests: sample.zbus.runtime_os_registration: min_ram: 16 integration_platforms: - qemu_x86 arch_exclude: nios2 harness: console harness_config: type: multi_line ordered: false regex: - "I: System started" ...
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
335
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DEFINE(raw_data_chan, struct sensor_msg, NULL, NULL, ZBUS_OBSERVERS_EMPTY, ZBUS_MSG_INIT(.x = 0, .y = 0, .z = 0)); ZBUS_CHAN_DEFINE(state_chan, bool, NULL, NUL...
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/src/producer.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
274
```restructuredtext .. zephyr:code-sample:: zbus-hello-world :name: zbus Hello World :relevant-api: zbus_apis Make three threads talk to each other using zbus. Overview ******** This sample implements a simple hello world application using zbus to make the threads talk to each other. Building and Running **...
/content/code_sandbox/samples/subsys/zbus/hello_world/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
408
```c /* */ #include "messages.h" #include <stdint.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); ZBUS_CHAN_DEFINE(processed_data_chan, struct sensor_msg, NULL, NULL, ZBUS_OBSERVERS(consumer_sub), ZBUS_MSG_INIT(.x = 0, ...
/content/code_sandbox/samples/subsys/zbus/runtime_obs_registration/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
479
```yaml sample: name: Hello World tests: sample.zbus.hello_world: harness: console harness_config: type: multi_line ordered: false regex: - "I: Sensor sample started raw reading, version 0.1-2!" - "I: Channel list:" - "I: 0 - Channel acc_data_chan:" - "I: ...
/content/code_sandbox/samples/subsys/zbus/hello_world/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
336
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=y CONFIG_BOOT_BANNER=n CONFIG_MAIN_THREAD_PRIORITY=5 CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_INF=y CONFIG_ZBUS_CHANNEL_NAME=y CONFIG_ZBUS_OBSERVER_NAME=y CONFIG_ZBUS_RUNTIME_OBSERVERS=y ```
/content/code_sandbox/samples/subsys/zbus/hello_world/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```restructuredtext .. zephyr:code-sample:: zbus-remote-mock :name: Remote mock sample :relevant-api: zbus_apis Publish to a zbus instance using UART as a bridge. Overview ******** This application demonstrates how a host script can publish to the zbus in an embedded device using the UART as a bridge. The d...
/content/code_sandbox/samples/subsys/zbus/remote_mock/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
952
```python #!/usr/bin/env python3 import serial import json from time import sleep import argparse j = """ [ {"name":"version","on_changed": false, "read_only": true, "message_size": 4}, {"name":"sensor_data","on_changed": true, "read_only": false, "message_size": 4}, {"name":"start_measurement","on_changed": false, "r...
/content/code_sandbox/samples/subsys/zbus/remote_mock/remote_mock.py
python
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
381
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_MINIMAL=n CONFIG_THREAD_NAME=y CONFIG_ASSERT=y CONFIG_SERIAL=y CONFIG_UART_LINE_CTRL=n CONFIG_NET_BUF=y CONFIG_NET_BUF_LOG=y CONFIG_NET_BUF_SIMPLE_LOG=y CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_DBG=y CONFIG_ZBUS_CHANNEL_NAME=y ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```yaml sample: name: Remote mock tests: sample.zbus.remote_mock: build_only: true tags: zbus platform_allow: - native_posix - native_sim - hifive1@B integration_platforms: - native_sim ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```objective-c /* */ #ifndef _MESSAGES_H_ #define _MESSAGES_H_ #include <stdbool.h> #include <stdint.h> struct version_msg { uint8_t major; uint8_t minor; uint16_t build; }; struct sensor_data_msg { int value; }; struct action_msg { bool status; }; #endif /* _MESSAGES_H_ */ ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/src/messages.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
70
```c /* */ #include "messages.h" #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); static bool sensor_from_bridge; ZBUS_CHAN_DEFINE(sensor_data_chan, /* Name */ struct sensor_data_msg, /* Message type */ NULL, /* Validator */ &sensor_from_...
/content/code_sandbox/samples/subsys/zbus/remote_mock/src/peripheral.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
243
```c /* */ #include <stdint.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); struct version_msg { uint8_t major; uint8_t minor; uint16_t build; }; struct acc_msg { int x; int y; int z; }; ZBUS_CHAN_DEFINE(version_cha...
/content/code_sandbox/samples/subsys/zbus/hello_world/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,197
```unknown CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE=y CONFIG_NATIVE_SIM_SLOWDOWN_TO_REAL_TIME=y ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/boards/native_sim.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
23
```unknown CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE=y CONFIG_NATIVE_POSIX_SLOWDOWN_TO_REAL_TIME=y ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/boards/native_posix.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
24
```unknown CONFIG_UART_SIFIVE_PORT_1=y CONFIG_UART_SIFIVE_PORT_1_TXCNT_IRQ=1 CONFIG_UART_SIFIVE_PORT_1_RXCNT_IRQ=1 ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/boards/hifive1_fe310_B.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```unknown /* * RS232 usart */ &uart1 { status = "okay"; current-speed = <115200>; clock-frequency = <16000000>; }; ```
/content/code_sandbox/samples/subsys/zbus/remote_mock/boards/hifive1_fe310_B.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
34
```c /* */ #include "messages.h" #include <stdint.h> #include <string.h> #include <zephyr/drivers/uart.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/net/buf.h> #include <zephyr/zbus/zbus.h> LOG_MODULE_DECLARE(zbus, CONFIG_ZBUS_LOG_LEVEL); const static struct device *uart_dev = DEVIC...
/content/code_sandbox/samples/subsys/zbus/remote_mock/src/mock_proxy.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,022
```unknown config BM_MESSAGE_SIZE int "Message size" default 256 config BM_ONE_TO int "Number of consumers" default 8 choice BM_OBSERVER_TYPE bool "Observer type to be used in the benchmark" config BM_LISTENERS bool "Synchronous using listeners" config BM_SUBSCRIBERS bool "Asynchronous using subscribers" c...
/content/code_sandbox/samples/subsys/zbus/benchmark/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
147
```unknown CONFIG_LOG=y CONFIG_BOOT_BANNER=n CONFIG_LOG_MODE_MINIMAL=y CONFIG_ASSERT=n CONFIG_ZBUS=y CONFIG_ZBUS_LOG_LEVEL_INF=y CONFIG_HEAP_MEM_POOL_SIZE=1024 ```
/content/code_sandbox/samples/subsys/zbus/benchmark/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```yaml sample: name: Zbus Benchmark tests: sample.zbus.benchmark_async: tags: zbus min_ram: 16 filter: CONFIG_SYS_CLOCK_EXISTS and not (CONFIG_ARCH_POSIX and not CONFIG_BOARD_NATIVE_POSIX) harness: console harness_config: type: multi_line ordered: true regex: - "I: Ben...
/content/code_sandbox/samples/subsys/zbus/benchmark/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
695