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++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#include "main_functions.hpp"
/* This is the default main used on systems that have the standard C entry
* point. Other devices ... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/main.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 131 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_CONSTANTS_H_
#define TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_CONSTANTS_H_
/* ... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/constants.hpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 266 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
extern "C" {
void __assert_func(const char *, int, const char *, const char *)
{
}
}
``` | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/assert.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_OUTPUT_HANDLER_H_
#define TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_OUTPUT_HANDL... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/output_handler.hpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 123 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_MAIN_FUNCTIONS_H_
#define TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_MAIN_FUNCTIO... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/main_functions.hpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 197 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#include "gesture_predictor.hpp"
#include "constants.hpp"
namespace {
/* State for the averaging algorithm we're using. */
flo... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/gesture_predictor.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 565 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
/* This is a standard TensorFlow Lite model file that has been converted into a
* C data array, so it can be easily compiled into... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/magic_wand_model_data.hpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 155 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#include "accelerometer_handler.hpp"
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <s... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/accelerometer_handler.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 614 |
```c++
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_GESTURE_PREDICTOR_H_
#define TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_GESTURE_P... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/src/gesture_predictor.hpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 116 |
```unknown
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
CONFIG_PWM=n
CONFIG_PWM_LITEX=n
CONFIG_I2C=y
``` | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/boards/litex_vexriscv.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```unknown
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
==============================================================================*/
&i2c0 {
reg = <0xe0003000 0x4 0xe0003004 0x4>;
adxl@1d {
compa... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/boards/litex_vexriscv.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 125 |
```unknown
using sysbus
$zephyr_elf?=@../build/zephyr/zephyr.elf
mach create
machine LoadPlatformDescription $ORIGIN/litex-vexriscv-tflite.repl
showAnalyzer uart
logLevel 3 i2c
macro reset
"""
sysbus LoadELF $zephyr_elf
i2c.adxl345 MaxFifoDepth 1
i2c.adxl345 FeedSample $ORIGIN/circle.data
i2c.adxl3... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/renode/litex-vexriscv-tflite.resc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 314 |
```unknown
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 ... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/renode/circle.data | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,040 |
```robotframework
*** Settings ***
Suite Setup Run Keywords
... Setup AND
... Execute Command include @${CURDIR}/LiteX_I2C_Zephyr.cs
Suite Teardown Teardown
Test Setup Reset Emulation
Resource ... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/renode/litex-vexriscv-tflite.robot | robotframework | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,088 |
```unknown
/*
*
*/
ram: Memory.MappedMemory @ {
sysbus 0x40000000;
sysbus 0xc0000000 // shadow
}
size: 0x10000000
cpu: CPU.VexRiscv @ sysbus
cpuType: "rv32imac"
uart: UART.LiteX_UART @ {
sysbus 0x60001800;
sysbus 0xE0001800 // shadow
}
-> cpu@2
timer0: Timers.Li... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/renode/litex-vexriscv-tflite.repl | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 217 |
```unknown
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 ... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/renode/angle.data | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,042 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Test for data_split_person.py."""... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_split_person_test.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 323 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
# pylint: disable=g-bad-import-order
... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_augmentation.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 616 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Test for train.py."""
from __fut... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/train_test.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 564 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Test for data_split.py."""
from ... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_split_test.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 756 |
```python
# Lint as: python3
# coding=utf-8
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Prepare data for f... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_prepare.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,507 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
# pylint: disable=g-bad-import-order
... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_load.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 934 |
```jupyter notebook
{
"cells": [
{
"source": [
"\n",
"\n",
" path_to_url",
"\n",
"Unless required by applicable law or agreed to in writing, software\n",
"WITHOUT WARRANTIES OR CONDITIONS OF A... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/train_magic_wand_model.ipynb | jupyter notebook | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,882 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
# pylint: disable=g-bad-import-order
... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_augmentation_test.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 384 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Test for data_prepare.py."""
fro... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_prepare_test.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 565 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
# pylint: disable=g-bad-import-order
... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_load_test.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 905 |
```python
# Lint as: python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
# pylint: disable=g-bad-import-order
... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/train.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,699 |
```python
# Lint as: python3
# coding=utf-8
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Split data into tr... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_split_person.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 534 |
```python
# Lint as: python3
# coding=utf-8
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# ==============================================================================
"""Mix and split data.... | /content/code_sandbox/samples/modules/tflite-micro/magic_wand/train/data_split.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 599 |
```unknown
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDhyDzwdNTCq5+e
ZsJ+xn+P6WS5EsxFZW4LJnp3gBqkjAdqceF0CGON6M9sSdIxpzGJhRWG4oyMxbDW
xQwpPC70wDbCTqMK97ASGcLKZpljQgcTVIJjz8FmKTvR2z/QPw61QHnfGBHl6X+e
1RQmCZzNblkgqalxbzo5HSvNSz2PojwwXdOnioo9IUG5YwL6deQ+5fSXrfV22Tvo
Nlps6pJPceKqLh0NX5No4... | /content/code_sandbox/samples/modules/thrift/hello/native-key.pem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,084 |
```thrift
/*
*
*/
service Hello {
void ping();
string echo(1: string msg);
i32 counter();
}
``` | /content/code_sandbox/samples/modules/thrift/hello/hello.thrift | thrift | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 26 |
```unknown
-----BEGIN PRIVATE KEY-----
your_sha256_hash
U1wwOFHcxO/xxUIWexVkSCrrbW9nmeMKcrnnstGA4onHoyf7x3Rq7VGCMiPKG5bR
oZFCeeRfyYFdKoUn6NBhMECziLkl6af5Gx/XsuNHXV4Y2Ooi1LkmqWspR9jcJ+AW
g39gkhOYOAgTR3o1slur4uS4G691/j5vEOnzD+aA6vbC8ZwAa+1oBawlVpC9eQuV
crAA5Hj8KEUtAl7F7gqt4zCe9pr/QldGJr7gj5Q9ZIlSapynB5uPygOBeqJC/7ol
your... | /content/code_sandbox/samples/modules/thrift/hello/qemu-key.pem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 948 |
```unknown
-----BEGIN CERTIFICATE-----
MIIDkzCCAnugAwIBAgIUaGlOEAH7p7FyprSNEHTH3Yy3+8owDQYJKoZIhvcNAQEL
your_sha256_hash
your_sha256_hash
your_sha256_hash
your_sha256_hash
your_sha256_hash
MIIBCgKCAQEA4cg88HTUwqufnmbCfsZ/j+lkuRLMRWVuCyZ6d4AapIwHanHhdAhj
jejPbEnSMacxiYUVhuKMjMWw1sUMKTwu9MA2wk6jCvewEhnCymaZY0IHE1SCY8/B
Z... | /content/code_sandbox/samples/modules/thrift/hello/native-cert.pem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 637 |
```restructuredtext
.. _thrift-hello-sample:
Thrift sample
#############
.. figure:: thrift-layers.png
:align: center
:alt: Thrift Layers
What is Thrift?
***************
`Apache Thrift`_ is an `IDL`_ specification, `RPC`_ framework, and
`code generator`_. It works across all major operating systems, supports ... | /content/code_sandbox/samples/modules/thrift/hello/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,443 |
```unknown
CONFIG_THRIFT_SSL_SOCKET=y
# TLS configuration
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=60000
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048
CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=6
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
``` | /content/code_sandbox/samples/modules/thrift/hello/overlay-tls.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
-----BEGIN CERTIFICATE-----
your_sha256_hash
your_sha256_hash
your_sha256_hash
your_sha256_hash
your_sha256_hash
your_sha256_hash
your_sha256_hash
gOKJx6Mn+8d0au1RgjIjyhuW0aGRQnnkX8mBXSqFJ+jQYTBAs4i5Jemn+Rsf17Lj
R11eGNjqItS5JqlrKUfY3CfgFoN/YJITmDgIE0d6NbJbq+LkuBuvdf4+bxDp8w/m
gOr2wvGcAGvtaAWsJVaQvXkLlXKwAOR4... | /content/code_sandbox/samples/modules/thrift/hello/qemu-cert.pem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 554 |
```unknown
source "Kconfig.zephyr"
config THRIFT_COMPACT_PROTOCOL
bool "Use TCompactProtocol in samples"
depends on THRIFT
help
Enable this option to use TCompactProtocol in samples
``` | /content/code_sandbox/samples/modules/thrift/hello/server/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
.PHONY: all clean
OS = $(shell uname -s)
CXXFLAGS :=
CXXFLAGS += -std=c++17
GEN_DIR = gen-cpp
GENSRC = $(GEN_DIR)/Hello.cpp $(GEN_DIR)/Hello.h $(GEN_DIR)/hello_types.h
GENHDR = $(filter %.h, $(GENSRC))
GENOBJ = $(filter-out %.h, $(GENSRC:.cpp=.o))
THRIFT_FLAGS :=
THRIFT_FLAGS += $(shell pkg-config --cfl... | /content/code_sandbox/samples/modules/thrift/hello/server/Makefile | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 504 |
```unknown
# Need a full libc++
CONFIG_REQUIRES_FULL_LIBCPP=y
# CONFIG_THRIFT Dependencies
CONFIG_CPP=y
CONFIG_STD_CPP17=y
CONFIG_CPP_EXCEPTIONS=y
CONFIG_POSIX_API=y
CONFIG_XOPEN_STREAMS=y
CONFIG_NET_SOCKETPAIR=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_EVENTFD=y
CONFIG_THRIFT=y
# Generic networking options
CONFIG_NET... | /content/code_sandbox/samples/modules/thrift/hello/server/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 390 |
```yaml
sample:
description: Hello Thrift server sample
name: hello thrift server
common:
tags:
- thrift
- cpp
- sample
build_only: true
modules:
- thrift
platform_allow:
- mps2/an385
- qemu_x86_64
integration_platforms:
- qemu_x86_64
filter: CONFIG_FULL_LIBCPP_SUPPORTED
test... | /content/code_sandbox/samples/modules/thrift/hello/server/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 154 |
```c++
/*
*
*/
#ifdef __ZEPHYR__
#include <zephyr/kernel.h>
#endif
#include <cstdio>
#include <cstdlib>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/protocol/TCompactProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/transport/TSSL... | /content/code_sandbox/samples/modules/thrift/hello/server/src/main.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 823 |
```objective-c
/*
*
*/
#pragma once
#ifdef __ZEPHYR__
#include <zephyr/kernel.h>
#else
#define printk printf
#endif
#include <iostream>
#include "Hello.h"
class HelloHandler : virtual public HelloIf
{
public:
HelloHandler() : count(0)
{
}
void ping()
{
printk("%s\n", __func__);
}
void echo(std::string... | /content/code_sandbox/samples/modules/thrift/hello/server/src/HelloHandler.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 159 |
```python
#!/usr/bin/env python3
#
"""Thrift Hello Client Sample
Connect to a hello service and demonstrate the
ping(), echo(), and counter() Thrift RPC methods.
Usage:
./hello_client.py [ip]
"""
import argparse
import sys
sys.path.append('gen-py')
from thrift.protocol import TBinaryProtocol
from thrift.transp... | /content/code_sandbox/samples/modules/thrift/hello/client/hello_client.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 262 |
```unknown
source "Kconfig.zephyr"
config THRIFT_COMPACT_PROTOCOL
bool "Use TCompactProtocol in samples"
depends on THRIFT
help
Enable this option to use TCompactProtocol in samples
``` | /content/code_sandbox/samples/modules/thrift/hello/client/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
.PHONY: all clean
OS = $(shell uname -s)
CXXFLAGS :=
CXXFLAGS += -std=c++17
GEN_DIR = gen-cpp
GENSRC = $(GEN_DIR)/Hello.cpp $(GEN_DIR)/Hello.h $(GEN_DIR)/hello_types.h
GENHDR = $(filter %.h, $(GENSRC))
GENOBJ = $(filter-out %.h, $(GENSRC:.cpp=.o))
THRIFT_FLAGS :=
THRIFT_FLAGS += $(shell pkg-config --cfl... | /content/code_sandbox/samples/modules/thrift/hello/client/Makefile | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 534 |
```unknown
CONFIG_REQUIRES_FULL_LIBCPP=y
# CONFIG_THRIFT Dependencies
CONFIG_CPP=y
CONFIG_STD_CPP17=y
CONFIG_CPP_EXCEPTIONS=y
CONFIG_POSIX_API=y
CONFIG_XOPEN_STREAMS=y
CONFIG_COMMON_LIBC_THRD=y
CONFIG_DYNAMIC_THREAD=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETPAIR=y
CONFIG_HE... | /content/code_sandbox/samples/modules/thrift/hello/client/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 448 |
```yaml
sample:
description: Hello Thrift client sample
name: hello thrift client
common:
tags:
- thrift
- cpp
- sample
build_only: true
modules:
- thrift
platform_allow:
- mps2/an385
- qemu_x86_64
integration_platforms:
- qemu_x86_64
filter: CONFIG_FULL_LIBCPP_SUPPORTED
test... | /content/code_sandbox/samples/modules/thrift/hello/client/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 154 |
```c++
/*
*
*/
#ifdef __ZEPHYR__
#include <zephyr/kernel.h>
#endif
#include <cstdlib>
#include <iostream>
#include <fcntl.h>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/protocol/TCompactProtocol.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/transport/TSSLSocket.h>
#include ... | /content/code_sandbox/samples/modules/thrift/hello/client/src/main.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 785 |
```restructuredtext
.. zephyr:code-sample:: cmsis-dsp-moving-average
:name: CMSIS-DSP moving average
Use the CMSIS-DSP library to calculate the moving average of a signal.
Overview
********
This sample demonstrates how to use the CMSIS-DSP library to calculate the moving average of a
signal.
It can be run on ... | /content/code_sandbox/samples/modules/cmsis_dsp/moving_average/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 734 |
```unknown
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_CMSIS_DSP=y
CONFIG_CMSIS_DSP_FILTERING=y
``` | /content/code_sandbox/samples/modules/cmsis_dsp/moving_average/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```yaml
sample:
description: Use CMSIS DSP to calculate moving average
name: CMSIS DSP Moving Average
tests:
sample.modules.cmsis_dsp.moving_average:
tags:
- samples
integration_platforms:
- qemu_cortex_m0
- native_sim
modules:
- cmsis-dsp
harness: console
harness_confi... | /content/code_sandbox/samples/modules/cmsis_dsp/moving_average/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,579 |
```objective-c
/*
*
*/
#define TENSOR_ARENA_SIZE 50000
const char *modelName = "keyword_spotting_cnn_small_int8";
__aligned(16) __attribute__((section("tflm_model"))) uint8_t networkModelData[] = {
0x1c, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x12, 0x00, 0x1c, 0x00, 0x18,
0x00, 0x14, 0x00, 0x10, 0... | /content/code_sandbox/samples/modules/tflite-micro/tflm_ethosu/src/models/keyword_spotting_cnn_small_int8/model.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 389,728 |
```c
/*
*
*/
#include <stdio.h>
#include <zephyr/kernel.h>
#include "arm_math.h"
#define NUM_TAPS 10 /* Number of taps in the FIR filter (length of the moving average window) */
#define BLOCK_SIZE 32 /* Number of samples processed per block */
/*
* Filter coefficients are all equal for a moving average filter.... | /content/code_sandbox/samples/modules/cmsis_dsp/moving_average/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 518 |
```unknown
CONFIG_CHRE=y
CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_CHRE_LOG_LEVEL_DBG=y
CONFIG_CPP=y
CONFIG_STD_CPP17=y
``` | /content/code_sandbox/samples/modules/chre/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```yaml
sample:
description: A simple echo app using Android's Context Hub Runtime Environment (CHRE).
name: chre
tests:
sample.modules.chre:
tags:
- introduction
- chre
platform_exclude: qemu_leon3
modules:
- chre
harness: console
harness_config:
type: multi_line
... | /content/code_sandbox/samples/modules/chre/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```restructuredtext
Android's Context Hub Runtime Environment (CHRE)
################################################
Android's context hub enables the use of nanoapps. A single nanoapp has 3 entry points seen in
`chre_api/chre/nanoapp.h`_:
* A ``nanoappStart`` function used to notify the nanoapp that it is now activ... | /content/code_sandbox/samples/modules/chre/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 847 |
```c++
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/logging/log_ctrl.h>
#include "apps.hpp"
#include "chre/core/event_loop_manager.h"
#include "chre/target_platform/init.h"
inline const char *boolToString(bool cond)
{
return cond ? "SUCCESS" : "FAIL";
}
int main(void)
{
auto echo... | /content/code_sandbox/samples/modules/chre/src/main.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 419 |
```c++
*/
#ifndef SAMPLES_APPLICATION_DEVELOPMENT_CHRE_INCLUDE_APPS_H_
#define SAMPLES_APPLICATION_DEVELOPMENT_CHRE_INCLUDE_APPS_H_
#include "chre/core/nanoapp.h"
#include "chre/util/unique_ptr.h"
namespace chre {
UniquePtr<Nanoapp> initializeStaticNanoappEchoApp();
} /* namespace chre */
#endif /* SAMPLES_APPL... | /content/code_sandbox/samples/modules/chre/include/apps.hpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```c++
*/
#include <cinttypes>
#include <zephyr/sys/printk.h>
#include "chre_api/chre/event.h"
#include "chre/core/event_loop_manager.h"
#include "chre/platform/static_nanoapp_init.h"
#include "chre/util/system/napp_permissions.h"
namespace
{
constexpr const uint64_t kAppId = 1;
constexpr const uint32_t kAppVersion... | /content/code_sandbox/samples/modules/chre/src/echoapp.cpp | c++ | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 296 |
```restructuredtext
.. _smp-samples:
Various SMP Samples
###################
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/arch/smp/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```restructuredtext
.. _arch-samples:
Architecture Dependent Samples
##############################
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/arch/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```unknown
# Allow worker threads to capture all resources
CONFIG_MAIN_THREAD_PRIORITY=11
# Enable SMP
CONFIG_SMP=y
# Enable assertions, stack overflow checking, etc
CONFIG_TEST=y
``` | /content/code_sandbox/samples/arch/smp/pi/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 40 |
```restructuredtext
.. _smp_pi:
SMP Pi
###########
Overview
********
This sample application calculates Pi independently in many threads, and
demonstrates the benefit of multiple execution units (CPU cores)
when compute-intensive tasks can be run in parallel, with
no cross-dependencies or shared resources.
By changi... | /content/code_sandbox/samples/arch/smp/pi/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 374 |
```yaml
sample:
description: Calculation of Pi independently in
a number of threads
name: SMP Pi
common:
tags: introduction
integration_platforms:
- qemu_x86_64
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Calculate first [0-9]+ digits of Pi independent... | /content/code_sandbox/samples/arch/smp/pi/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <stdio.h>
/* Amount of execution threads to create and run */
#define THREADS_NUM 16
/*
* Amount of digits of Pi to calculate, must be a multiple of 4,
* as used algorithm spits 4 digits on every iteration.
*/
#define DIGITS_NUM 240
#define LENGTH ((DIGITS_NUM ... | /content/code_sandbox/samples/arch/smp/pi/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 869 |
```restructuredtext
.. _smp_pktqueue:
SMP pktqueue
############
Overview
********
This sample application performs a simplified network layer forwarding function
(essentially checksum calculation from IP Header Validation) of the Internet protocol
suite specified in RFC1812 "Requirements for IP Version 4 Routers" wh... | /content/code_sandbox/samples/arch/smp/pktqueue/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 740 |
```unknown
# Allow worker threads to capture all resources
CONFIG_MAIN_THREAD_PRIORITY=11
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_TEST_RANDOM_GENERATOR=y
# Enable SMP
CONFIG_SMP=y
CONFIG_CRC=y
``` | /content/code_sandbox/samples/arch/smp/pktqueue/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```yaml
sample:
description: Processing multiple queues in a number of threads
name: SMP Pktqueue
common:
tags: introduction
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "RESULT: OK(.*)"
tests:
sample.smp.pktqueue:
tags:
- introduction
- kernel
... | /content/code_sandbox/samples/arch/smp/pktqueue/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 119 |
```objective-c
/*
*
*/
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/sys/crc.h>
#include <zephyr/random/random.h>
struct phdr_desc {
struct phdr_desc *next; /* Next pkt descriptor in respective queue */
uint8_t *ptr; /* Pointer to header */
};
struct phdr_desc_queue... | /content/code_sandbox/samples/arch/smp/pktqueue/src/pktqueue.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 166 |
```c
/*
*
*/
#include "pktqueue.h"
/* Put a packet header in a queue defined in argument */
void phdr_desc_enqueue(struct phdr_desc_queue *queue, struct phdr_desc *desc,
struct k_mutex *mutex)
{
/* Locking queue */
k_mutex_lock(mutex, K_FOREVER);
if (queue->count == 0) {
queue->head = queue->tail = desc;
... | /content/code_sandbox/samples/arch/smp/pktqueue/src/pktqueue.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 244 |
```restructuredtext
.. _mmu_mpu-samples:
MMU/MPU Samples
###############
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/arch/mpu/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
CONFIG_MULTITHREADING=n
CONFIG_SHELL=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/arch/mpu/mpu_test/prj_single.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```c
/*
*
*/
#include "pktqueue.h"
/* Amount of parallel processed sender/receiver queues of packet headers */
#define QUEUE_NUM 2
/* Amount of execution threads per pair of queues*/
#define THREADS_NUM (CONFIG_MP_MAX_NUM_CPUS+1)
/* Amount of packet headers in a queue */
#define SIZE_OF_QUEUE 5000
/* Size of pac... | /content/code_sandbox/samples/arch/smp/pktqueue/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,839 |
```unknown
CONFIG_SHELL=y
CONFIG_LOG=y
### In order to allow the flash device to be written to, this line will
### need to be uncommented. Note that on some devices (MCUX/NXP), this
### needs to be enabled to even enable CONFIG_FLASH, as the probe needs
### to write to flash. Also, on NXP, enabling flash write also ... | /content/code_sandbox/samples/arch/mpu/mpu_test/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 148 |
```yaml
sample:
name: MPU Test
tests:
sample.mpu.mpu_test:
arch_allow: arm
filter: CONFIG_CPU_HAS_MPU and not CONFIG_ARM64
tags: mpu
harness: keyboard
``` | /content/code_sandbox/samples/arch/mpu/mpu_test/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```restructuredtext
.. _mpu_test:
Memory Protection Unit (MPU) Sample
###################################
Overview
********
This application provides a set options to check the correct MPU configuration
against the following security issues:
* Read at an address that is reserved in the memory map.
* Write into the b... | /content/code_sandbox/samples/arch/mpu/mpu_test/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,629 |
```restructuredtext
.. _boards:
Supported Boards
################
Zephyr project developers are continually adding board-specific support as
documented below.
If you are looking to add Zephyr support for a new board, please start with the
:ref:`board_porting_guide`.
When adding support documentation for each board,... | /content/code_sandbox/boards/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 137 |
```unknown
BOARD_STRING := $(normalize_upper,$(BOARD))
BOARD_TARGET_STRING := $(normalize_upper,$(BOARD)$(BOARD_QUALIFIERS))
BOARD_QUALIFIERS_NO_SEPARATOR := $(substring,$(BOARD_QUALIFIERS),1)
config BOARD_$(BOARD_STRING)
def_bool y
help
Kconfig symbol identifying the board.
config BOARD_$(BOARD_TARGET_STRING)... | /content/code_sandbox/boards/Kconfig.v2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 176 |
```c
/*
*
*/
#include <stdlib.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/shell/shell.h>
#define PR_SHELL(sh, fmt, ...) \
shell_fprintf(sh, SHELL_NORMAL, fmt, ##__VA_ARGS__)
#define PR_ERROR(sh, fmt, ...) \
shell_... | /content/code_sandbox/samples/arch/mpu/mpu_test/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,240 |
```unknown
config BOARD
string
# When using hw model v2, then the board is inherited from CMake.
default "$(BOARD)" if "$(HWM_SCHEME)" = "v2"
help
This option holds the name of the board and is used to locate the files
related to the board in the source tree (under boards/).
The Board is the first locatio... | /content/code_sandbox/boards/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,206 |
```unknown
choice
prompt "Board Selection"
source "$(BOARD_DIR)/Kconfig.board"
endchoice
``` | /content/code_sandbox/boards/Kconfig.v1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```restructuredtext
.. _boards-seco:
SECO SpA
########
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/boards/seco/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```cmake
board_runner_args(jlink "--device=STM32F302VC" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
``` | /content/code_sandbox/boards/seco/stm32f3_seco_d23/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
# SECO SBC-3.5-PX30 board defconfig
#
# Enable MPU
CONFIG_ARM_MPU=y
# Enable HW stack protection
CONFIG_HW_STACK_PROTECTION=y
# enable uart driver
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
# enable GPIO
CONFIG_GPIO=y
# clock configuration
CONFIG_CLOCK_CONTROL=y
# enable r... | /content/code_sandbox/boards/seco/stm32f3_seco_d23/stm32f3_seco_d23_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 99 |
```unknown
/*
*
*/
/dts-v1/;
#include <st/f3/stm32f302Xc.dtsi>
#include <st/f3/stm32f302v(b-c)tx-pinctrl.dtsi>
/ {
model = "SECO SBC-3.5-PX30 board (STM32F302VCT6)";
compatible = "seco,stm32f3-d23";
chosen {
zephyr,console = &usart1;
zephyr,code-partition = &slot0_partition;
zephyr,shell-uart = &usart1;
... | /content/code_sandbox/boards/seco/stm32f3_seco_d23/stm32f3_seco_d23.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,797 |
```yaml
identifier: stm32f3_seco_d23
name: SECO SBC-3.5-PX30 (STM32F302)
type: mcu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
ram: 40
supported:
- gpio
- i2c
- counter
- spi
- watchdog
- nvs
- can
- pwm
``` | /content/code_sandbox/boards/seco/stm32f3_seco_d23/stm32f3_seco_d23.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```unknown
config BOARD_STM32F3_SECO_D23
select SOC_STM32F302XC
``` | /content/code_sandbox/boards/seco/stm32f3_seco_d23/Kconfig.stm32f3_seco_d23 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```yaml
board:
name: stm32f3_seco_d23
vendor: seco
socs:
- name: stm32f302xc
``` | /content/code_sandbox/boards/seco/stm32f3_seco_d23/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```ini
# SECO SBC-3.5-PX30 board with a single STM32F302VCT6 chip
# Flashing is possible by connecting the board to an ST-Link via SWD
# path_to_url
source [find interface/stlink.cfg]
transport select hla_swd
source [find target/stm32f3x.cfg]
reset_config srst_only
$_TARGETNAME configure -event gdb-attach {
echo ... | /content/code_sandbox/boards/seco/stm32f3_seco_d23/support/openocd.cfg | ini | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```cmake
# This file contains boards in Zephyr which have been replaced with a new board
# name.
# This allows the system to automatically change the board while at the same
# time prints a warning to the user, that the board name is deprecated.
#
# To add a board rename, add a line in following format:
# set(<old_boa... | /content/code_sandbox/boards/deprecated.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,601 |
```restructuredtext
.. _stm32f3_seco_d23_board:
SECO SBC-3.5-PX30 (JUNO - D23) (STM32F302)
##########################################
Overview
********
SBC-3.5-PX30 (JUNO - D23) is a Single Board Computer based on embedded Rockchip PX30
Processor, featuring Quad-Core ARM Cortex-A35 processor. The processor
integrate... | /content/code_sandbox/boards/seco/stm32f3_seco_d23/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,082 |
```restructuredtext
.. _boards-espressif:
Espressif
#########
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/boards/espressif/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
#include <dt-bindings/pinctrl/esp32c3-pinctrl.h>
#include <zephyr/dt-bindings/pinctrl/esp32c3-gpio-sigmap.h>
&pinctrl {
uart0_default: uart0_default {
group1 {
pinmux = <UART0_TX_GPIO21>;
output-high;
};
group2 {
pinmux =... | /content/code_sandbox/boards/espressif/esp32c3_devkitc/esp32c3_devkitc-pinctrl.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 312 |
```yaml
identifier: esp32c3_devkitc
name: ESP32-C3
type: mcu
arch: riscv
toolchain:
- zephyr
supported:
- adc
- gpio
- i2c
- watchdog
- uart
- dma
- pwm
- spi
- counter
- entropy
testing:
ignore_tags:
- net
- bluetooth
vendor: espressif
``` | /content/code_sandbox/boards/espressif/esp32c3_devkitc/esp32c3_devkitc.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 102 |
```unknown
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_GPIO=y
``` | /content/code_sandbox/boards/espressif/esp32c3_devkitc/esp32c3_devkitc_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 27 |
```unknown
choice BOOTLOADER
default BOOTLOADER_MCUBOOT
endchoice
choice BOOT_SIGNATURE_TYPE
default BOOT_SIGNATURE_TYPE_NONE
endchoice
``` | /content/code_sandbox/boards/espressif/esp32c3_devkitc/Kconfig.sysbuild | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```yaml
board:
name: esp32c3_devkitc
vendor: espressif
socs:
- name: esp32c3
``` | /content/code_sandbox/boards/espressif/esp32c3_devkitc/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```cmake
if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
set(OPENOCD OPENOCD-NOTFOUND)
endif()
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)
include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.c... | /content/code_sandbox/boards/espressif/esp32c3_devkitc/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 102 |
```unknown
# ESP32C3 devkitc board configuration
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
``` | /content/code_sandbox/boards/espressif/esp32c3_devkitc/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
# ESP32C3 devkitc board configuration
config BOARD_ESP32C3_DEVKITC
select SOC_ESP32C3_WROOM_02_N4
``` | /content/code_sandbox/boards/espressif/esp32c3_devkitc/Kconfig.esp32c3_devkitc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.