text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```c
/*
*
*/
#include "nsi_cpu_if.h"
#include "nsi_tracing.h"
/*
* Stubbed embedded CPU images, which do nothing:
* The CPU does not boot, and interrupts are just ignored
* These are all defined as weak, so if an actual image is present for that CPU,
* that will be linked against.
*
* This exists in case th... | /content/code_sandbox/scripts/native_simulator/common/src/nsi_weak_stubs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 337 |
```objective-c
/*
*
*
* The native simulator provides a set of trampolines to some of the simplest
* host C library symbols.
* These are intended to facilitate test embedded code interacting with the host.
*
* We should never include here symbols which require host headers be exposed
* to the embedded side, for... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_host_trampolines.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 381 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_MAIN_H
#define NSI_COMMON_SRC_INCL_NSI_MAIN_H
#include "nsi_utils.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Like nsi_exit(), do all cleanup required to terminate the
* execution of the native_simulator, but instead of exiting,
* ... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_main.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 248 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_CPU_IF_INTERNAL_H
#define NSI_COMMON_SRC_INCL_NSI_CPU_IF_INTERNAL_H
#include "nsi_utils.h"
#ifdef __cplusplus
extern "C" {
#endif
#define FUNCT(i, pre, post) \
pre##i##post
#define FUNCT_LIST(pre, post, sep) \
FUNCT(0, pre, post) NSI_DEBRACKET sep \
FUNCT... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_cpu_if_internal.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 616 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_MAIN_SEMIPUBLIC_H
#define NSI_COMMON_SRC_INCL_NSI_MAIN_SEMIPUBLIC_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* These APIs are exposed for special use cases in which a developer needs to
* replace the native simulator main loop.
* An ex... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_main_semipublic.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 202 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_HWS_MODELS_IF_H
#define NSI_COMMON_SRC_INCL_HWS_MODELS_IF_H
#include <stdint.h>
#include "nsi_utils.h"
#include "nsi_hw_scheduler.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Internal structure used to link HW events */
struct nsi_hw_event_st {
void (*const call... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_hws_models_if.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 327 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_HW_SCHEDULER_H
#define NSI_COMMON_SRC_INCL_HW_SCHEDULER_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NSI_NEVER UINT64_MAX
/* API intended for the native simulator specific embedded drivers: */
static inline uint64_t nsi_hws_get_time(void)... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_hw_scheduler.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 196 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_UTILS_H
#define NSI_COMMON_SRC_INCL_NSI_UTILS_H
/* Remove brackets from around a single argument: */
#define NSI_DEBRACKET(...) __VA_ARGS__
#define _NSI_STRINGIFY(x) #x
#define NSI_STRINGIFY(s) _NSI_STRINGIFY(s)
/* concatenate the values of the arguments into... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_utils.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 304 |
```objective-c
/*
*
*/
/*
* Interfaces the Native Simulator provides to
* the embedded CPU SW
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_CPU_ES_IF_H
#define NSI_COMMON_SRC_INCL_NSI_CPU_ES_IF_H
#include "nsi_tracing.h"
#include "nsi_main.h"
#include "nsi_hw_scheduler.h"
#endif /* NSI_COMMON_SRC_INCL_NSI_CPU_ES_IF_H */
... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_cpu_es_if.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_CPU_CTRL_H
#define NSI_COMMON_SRC_INCL_NSI_CPU_CTRL_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Define if a CPU should automatically start at boot or not
*
* @param[in] cpu_n: Which CPU
* @param[in] auto_start: If true,... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_cpu_ctrl.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 232 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NCE_IF_H
#define NSI_COMMON_SRC_INCL_NCE_IF_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Native simulator CPU start/stop emulation module interface
*
* Check docs/NCE.md for an overview.
*
* A descriptions of each function can be found in the .c file
*/
voi... | /content/code_sandbox/scripts/native_simulator/common/src/include/nce_if.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 161 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_TRACING_H
#define NSI_COMMON_SRC_INCL_NSI_TRACING_H
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Native simulator tracing API:
* Print a message/warning/error to the tracing backend
* and in case of nsi_print_error_and_exit() also ca... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_tracing.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 325 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NSI_CPU_IF_H
#define NSI_COMMON_SRC_INCL_NSI_CPU_IF_H
#ifdef __cplusplus
extern "C" {
#endif
#include "nsi_cpu_if_internal.h"
/*
* Any symbol annotated by this macro will be visible outside of the
* embedded SW library, both by the native simulator runner,
* a... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_cpu_if.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 897 |
```objective-c
/*
*
*/
/**
* @file
* @brief API to the native simulator expects any integrating program has for handling
* command line argument parsing
*/
#ifndef NATIVE_SIMULATOR_COMMON_SRC_NSI_CMDLINE_MAIN_IF_H
#define NATIVE_SIMULATOR_COMMON_SRC_NSI_CMDLINE_MAIN_IF_H
#ifdef __cplusplus
extern "C" {
... | /content/code_sandbox/scripts/native_simulator/common/src/include/nsi_cmdline_main_if.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 124 |
```objective-c
/*
*
*/
#ifndef NSI_COMMON_SRC_INCL_NCT_IF_H
#define NSI_COMMON_SRC_INCL_NCT_IF_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Interface provided by the Native simulator CPU threading emulation
*
* A description of each function can be found in the C file
*
* In docs/NCT.md you can find more info... | /content/code_sandbox/scripts/native_simulator/common/src/include/nct_if.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 193 |
```c
/*
*
*/
#include <stdint.h>
#include "nsi_tracing.h"
#include "native_rtc.h"
#include "nsi_hw_scheduler.h"
#include "nsi_timer_model.h"
/**
* Return the (simulation) time in microseconds
* where clock_type is one of RTC_CLOCK_*
*/
uint64_t native_rtc_gettime_us(int clock_type)
{
if (clock_type == RTC_CLOCK... | /content/code_sandbox/scripts/native_simulator/native/src/native_rtc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 473 |
```c
/*
*
*/
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "nsi_cmdline.h"
#include "nsi_cmdline_internal.h"
#include "nsi_tracing.h"
#include "nsi_timer_model.h"
#include "nsi_hw_scheduler.h"
#include "nsi_tasks.h"
static int s_argc, test_argc;
static char **s_argv, **test_argv;
/* Extra "... | /content/code_sandbox/scripts/native_simulator/native/src/nsi_cmdline.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,092 |
```objective-c
/*
*
*/
#ifndef NATIVE_SIMULATOR_NATIVE_SRC_NSI_CMDLINE_INTERNAL_H
#define NATIVE_SIMULATOR_NATIVE_SRC_NSI_CMDLINE_INTERNAL_H
#include <stdbool.h>
#include <stddef.h>
#include "nsi_cmdline.h"
#ifdef __cplusplus
extern "C" {
#endif
#define _MAX_LINE_WIDTH 100 /*Total width of the help message*/
/* H... | /content/code_sandbox/scripts/native_simulator/native/src/nsi_cmdline_internal.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 321 |
```c
/*
*
*/
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "nsi_tracing.h"
#include "nsi_cmdline.h"
#include "nsi_cmdline_internal.h"
#include "nsi_cpu_es_if.h"
/**
* Check if <arg> is the option <option>
* The a... | /content/code_sandbox/scripts/native_simulator/native/src/nsi_cmdline_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,820 |
```c
/*
*
*/
#include <stdlib.h>
#include <stdio.h> /* for printfs */
#include <stdarg.h> /* for va args */
#include <unistd.h>
#include "nsi_tasks.h"
#include "nsi_cmdline.h"
#include "nsi_tracing.h"
#include "nsi_main.h"
/**
* Are stdout and stderr connected to a tty
* 0 = no
* 1 = yes
* -1 = we do not kno... | /content/code_sandbox/scripts/native_simulator/native/src/nsi_trace.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,008 |
```c
/*
*
*
* HW IRQ controller model
*/
#include <stdint.h>
#include <stdbool.h>
#include "nsi_internal.h"
#include "nsi_cpu_if.h"
#include "nsi_cpu0_interrupts.h"
#include "irq_ctrl.h"
#include "nsi_tasks.h"
#include "nsi_hws_models_if.h"
static uint64_t irq_ctrl_timer = NSI_NEVER;
static uint64_t irq_status; ... | /content/code_sandbox/scripts/native_simulator/native/src/irq_ctrl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,753 |
```c
/*
*
*/
#include <stdbool.h>
#include <stdint.h>
#include "nsi_cpu0_interrupts.h"
#include "irq_ctrl.h"
#include "nsi_tasks.h"
#include "nsi_hws_models_if.h"
static uint64_t hw_counter_timer;
static bool counter_running;
static uint64_t counter_value;
static uint64_t counter_target;
static uint64_t counter_pe... | /content/code_sandbox/scripts/native_simulator/native/src/hw_counter.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 614 |
```objective-c
/*
*
*/
#ifndef NATIVE_SIMULATOR_NATIVE_SRC_NSI_CPU0_INTERRUPTS_H
#define NATIVE_SIMULATOR_NATIVE_SRC_NSI_CPU0_INTERRUPTS_H
#define TIMER_TICK_IRQ 0
#define OFFLOAD_SW_IRQ 1
#define COUNTER_EVENT_IRQ 2
/*
* This interrupt will awake the CPU if IRQs are not locked,
* This interrupt does not have an ... | /content/code_sandbox/scripts/native_simulator/native/src/include/nsi_cpu0_interrupts.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 178 |
```objective-c
/*
*
*/
#ifndef NATIVE_SIMULATOR_NATIVE_SRC_NSI_TIMER_MODEL_H
#define NATIVE_SIMULATOR_NATIVE_SRC_NSI_TIMER_MODEL_H
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
void hwtimer_set_real_time_mode(bool new_rt);
void hwtimer_timer_reached(void);
void hwtimer_wake_in_ti... | /content/code_sandbox/scripts/native_simulator/native/src/include/nsi_timer_model.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 239 |
```objective-c
/*
*
*/
/**
* @file
* @brief API to the native simulator - native (Real) Time Clock
*/
#ifndef NATIVE_SIMULATOR_NATIVE_SRC_NATIVE_RTC_H
#define NATIVE_SIMULATOR_NATIVE_SRC_NATIVE_RTC_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Types of clocks this RTC provides:
*/
/** T... | /content/code_sandbox/scripts/native_simulator/native/src/include/native_rtc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 406 |
```objective-c
/*
*
*/
/**
* @file
* @brief API to the native simulator - native interrupt controller
*/
#ifndef NATIVE_SIMULATOR_NATIVE_SRC_IRQ_CTRL_H
#define NATIVE_SIMULATOR_NATIVE_SRC_IRQ_CTRL_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
void hw_irq_ctrl_set_cur_prio(int new);
int hw_irq_c... | /content/code_sandbox/scripts/native_simulator/native/src/include/irq_ctrl.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 257 |
```objective-c
/*
*
*/
/**
* @file
* @brief API to the native simulator - native HW counter
*/
#ifndef NATIVE_SIMULATOR_NATIVE_SRC_HW_COUNTER_H
#define NATIVE_SIMULATOR_NATIVE_SRC_HW_COUNTER_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
void hw_counter_triggered(void);
void hw_counter_set_peri... | /content/code_sandbox/scripts/native_simulator/native/src/include/hw_counter.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```c
/*
*
*/
/**
* This provides a model of:
* - A system tick timer
* - A real time clock
* - A one shot HW timer which can be used to awake the CPU at a given time
* - The clock source for all of this, and therefore for the native simulator
* in the native configuration
*/
#include <stdint.h>
#inclu... | /content/code_sandbox/scripts/native_simulator/native/src/timer_model.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,894 |
```objective-c
/*
*
*/
/**
* @file
* @brief API to the native simulator - native command line parsing utilities
*
* Note: The arguments structure definitions is kept fully compatible with Zephyr's native_posix
* and BabbleSim's command line options to enable to reuse components between them.
* And for APIs to ... | /content/code_sandbox/scripts/native_simulator/native/src/include/nsi_cmdline.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 534 |
```python
#!/usr/bin/env python3
#
#
import argparse
import binascii
import sys
COREDUMP_PREFIX_STR = "#CD:"
COREDUMP_BEGIN_STR = COREDUMP_PREFIX_STR + "BEGIN#"
COREDUMP_END_STR = COREDUMP_PREFIX_STR + "END#"
COREDUMP_ERROR_STR = COREDUMP_PREFIX_STR + "ERROR CANNOT DUMP#"
def parse_args():
parser = argparse.A... | /content/code_sandbox/scripts/coredump/coredump_serial_log_parser.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 582 |
```python
#!/usr/bin/env python3
#
#
``` | /content/code_sandbox/scripts/coredump/coredump_parser/__init__.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```python
#!/usr/bin/env python3
#
#
import argparse
import logging
import os
import socket
import sys
from coredump_parser.log_parser import CoredumpLogFile
from coredump_parser.elf_parser import CoredumpElfFile
import gdbstubs
LOGGING_FORMAT = "[%(levelname)s][%(name)s] %(message)s"
# Only bind to local host
GDB... | /content/code_sandbox/scripts/coredump/coredump_gdbserver.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 921 |
```python
#!/usr/bin/env python3
#
#
import logging
import struct
# Note: keep sync with C code
COREDUMP_HDR_ID = b'ZE'
COREDUMP_HDR_VER = 2
LOG_HDR_STRUCT = "<ccHHBBI"
LOG_HDR_SIZE = struct.calcsize(LOG_HDR_STRUCT)
COREDUMP_ARCH_HDR_ID = b'A'
LOG_ARCH_HDR_STRUCT = "<cHH"
LOG_ARCH_HDR_SIZE = struct.calcsize(LOG_ARC... | /content/code_sandbox/scripts/coredump/coredump_parser/log_parser.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,229 |
```python
#!/usr/bin/env python3
#
#
from gdbstubs.arch.x86 import GdbStub_x86
from gdbstubs.arch.x86_64 import GdbStub_x86_64
from gdbstubs.arch.arm_cortex_m import GdbStub_ARM_CortexM
from gdbstubs.arch.risc_v import GdbStub_RISC_V
from gdbstubs.arch.xtensa import GdbStub_Xtensa
from gdbstubs.arch.arm64 import GdbSt... | /content/code_sandbox/scripts/coredump/gdbstubs/__init__.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 391 |
```python
#!/usr/bin/env python3
#
#
import logging
import struct
import elftools
from elftools.elf.elffile import ELFFile
from enum import IntEnum
# ELF section flags
SHF_WRITE = 0x1
SHF_ALLOC = 0x2
SHF_EXEC = 0x4
SHF_WRITE_ALLOC = SHF_WRITE | SHF_ALLOC
SHF_ALLOC_EXEC = SHF_ALLOC | SHF_EXEC
# Must match enum in t... | /content/code_sandbox/scripts/coredump/coredump_parser/elf_parser.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,637 |
```python
#!/usr/bin/env python3
#
#
``` | /content/code_sandbox/scripts/coredump/gdbstubs/arch/__init__.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```python
#!/usr/bin/env python3
#
#
import binascii
import logging
import struct
from gdbstubs.gdbstub import GdbStub
logger = logging.getLogger("gdbstub")
class RegNum():
X0 = 0 # X0-X29 - 30 GP registers
X1 = 1
X2 = 2
X3 = 3
X4 = 4
X5 = 5
X6 = 6
X7 = 7
X8 = 8
X9... | /content/code_sandbox/scripts/coredump/gdbstubs/arch/arm64.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,080 |
```python
#!/usr/bin/env python3
#
#
import abc
import binascii
import logging
from coredump_parser.elf_parser import ThreadInfoOffset
logger = logging.getLogger("gdbstub")
class GdbStub(abc.ABC):
def __init__(self, logfile, elffile):
self.logfile = logfile
self.elffile = elffile
self.... | /content/code_sandbox/scripts/coredump/gdbstubs/gdbstub.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,664 |
```python
#!/usr/bin/env python3
#
#
import binascii
import logging
import struct
from gdbstubs.gdbstub import GdbStub
logger = logging.getLogger("gdbstub")
class RegNum():
# Matches the enum amd64_regnum in GDB
RAX = 0
RBX = 1
RCX = 2
RDX = 3
RSI = 4
RDI = 5
RBP = 6
RSP = 7
... | /content/code_sandbox/scripts/coredump/gdbstubs/arch/x86_64.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,571 |
```python
#!/usr/bin/env python3
#
#
import binascii
import logging
import struct
from gdbstubs.gdbstub import GdbStub
logger = logging.getLogger("gdbstub")
class RegNum():
ZERO = 0
RA = 1
SP = 2
GP = 3
TP = 4
T0 = 5
T1 = 6
T2 = 7
FP = 8
S1 = 9
A0 = 10
A1 = 11
A2... | /content/code_sandbox/scripts/coredump/gdbstubs/arch/risc_v.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 985 |
```python
#!/usr/bin/env python3
#
#
import binascii
import logging
import struct
import sys
from enum import Enum
from gdbstubs.gdbstub import GdbStub
logger = logging.getLogger("gdbstub")
# Matches same in coredump.c
XTENSA_BLOCK_HDR_DUMMY_SOC = 255
# Must match --soc arg options; see get_soc
class XtensaSoc(Enu... | /content/code_sandbox/scripts/coredump/gdbstubs/arch/xtensa.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,264 |
```python
#!/usr/bin/env python3
#
#
import binascii
import logging
import struct
from coredump_parser.elf_parser import ThreadInfoOffset
from gdbstubs.gdbstub import GdbStub
logger = logging.getLogger("gdbstub")
class RegNum():
R0 = 0
R1 = 1
R2 = 2
R3 = 3
R4 = 4
R5 = 5
R6 = 6
R7 =... | /content/code_sandbox/scripts/coredump/gdbstubs/arch/arm_cortex_m.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,564 |
```restructuredtext
:orphan:
.. _zephyr_licensing:
Licensing of Zephyr Project components
######################################
The Zephyr kernel tree imports or reuses packages, scripts and other files that
there is no LICENSE file or way to put a LICENSE file there, so we describe the
licensing in this document.
... | /content/code_sandbox/doc/LICENSING.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 266 |
```python
#!/usr/bin/env python3
#
#
import binascii
import logging
import struct
from gdbstubs.gdbstub import GdbStub
logger = logging.getLogger("gdbstub")
class RegNum():
# Matches the enum i386_regnum in GDB
EAX = 0
ECX = 1
EDX = 2
EBX = 3
ESP = 4
EBP = 5
ESI = 6
EDI = 7
... | /content/code_sandbox/scripts/coredump/gdbstubs/arch/x86.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,187 |
```restructuredtext
..
Zephyr Project documentation main file
.. _zephyr-home:
Zephyr Project Documentation
############################
.. only:: release
Welcome to the Zephyr Project's documentation for version |version|.
Documentation for the latest (main) development branch of Zephyr
can be found ... | /content/code_sandbox/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 986 |
```restructuredtext
:orphan:
.. _glossary:
Glossary of Terms
#################
.. glossary::
:sorted:
API
(Application Program Interface) A defined set of routines and protocols for
building application software.
application
The set of user-supplied files that the Zephyr build system use... | /content/code_sandbox/doc/glossary.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,982 |
```restructuredtext
:orphan:
.. _page-not-found:
Sorry, Page Not Found
#####################
.. image:: images/Zephyr-Kite-in-tree.png
:align: right
.. raw:: html
<noscript>
Sorry, the page you requested was not found on this site.
</noscript>
<script type="text/javaScript">
<!--
var strReferr... | /content/code_sandbox/doc/404.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 281 |
```python
# Zephyr documentation build configuration file.
# Reference: path_to_url
import sys
import os
from pathlib import Path
import re
import textwrap
from sphinx.cmd.build import get_parser
args = get_parser().parse_args()
ZEPHYR_BASE = Path(__file__).resolve().parents[1]
ZEPHYR_BUILD = Path(args.outputdir).re... | /content/code_sandbox/doc/conf.py | python | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,039 |
```restructuredtext
:orphan:
.. _kconfig-search:
Kconfig Search
==============
.. kconfig:search::
``` | /content/code_sandbox/doc/kconfig.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```restructuredtext
:orphan:
..
Zephyr Project documentation main file
.. _zephyr-home-tex:
Zephyr Project Documentation
############################
.. toctree::
:maxdepth: 1
:caption: Contents
introduction/index.rst
develop/index.rst
kernel/index.rst
services/index.rst
build/index.rst
... | /content/code_sandbox/doc/index-tex.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 123 |
```unknown
# your_sha256_hash--------------
# Makefile for documentation build
BUILDDIR ?= _build
DOC_TAG ?= development
SPHINXOPTS ?= -j auto -W --keep-going -T
SPHINXOPTS_EXTRA ?=
LATEXMKOPTS ?= -halt-on-error -no-shell-escape
DT_TURBO_MODE ?= 0
# your_sha256_hash--------------
# Documentation targets
.PHONY: conf... | /content/code_sandbox/doc/Makefile | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 272 |
```restructuredtext
.. _formatted_output:
Formatted Output
################
Applications as well as Zephyr itself requires infrastructure to format
values for user consumption. The standard C99 library ``*printf()``
functionality fulfills this need for streaming output devices or memory
buffers, but in an embedded s... | /content/code_sandbox/doc/services/formatted_output.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,066 |
```restructuredtext
.. _poweroff:
Power off
#########
.. doxygengroup:: sys_poweroff
``` | /content/code_sandbox/doc/services/poweroff.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```restructuredtext
.. _os_services:
OS Services
###########
.. toctree::
:maxdepth: 1
binary_descriptors/index.rst
console.rst
crypto/index
debugging/index.rst
device_mgmt/index
dsp/index.rst
file_system/index.rst
formatted_output.rst
input/index.rst
ipc/index.rst
llext/index.rs... | /content/code_sandbox/doc/services/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 241 |
```restructuredtext
.. _misc_api:
Miscellaneous
#############
.. comment
not documenting
.. doxygengroup:: checksum
.. doxygengroup:: structured_data
Checksum APIs
*************
CRC
=====
.. doxygengroup:: crc
Structured Data APIs
********************
JSON
====
.. doxygengroup:: json
JWT
===
JSON Web... | /content/code_sandbox/doc/services/misc.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 147 |
```restructuredtext
.. _async_notification:
Asynchronous Notifications
##########################
Zephyr APIs often include :ref:`api_term_async` functions where an
operation is initiated and the application needs to be informed when it
completes, and whether it succeeded. Using :c:func:`k_poll` is
often a good meth... | /content/code_sandbox/doc/services/notify.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 317 |
```restructuredtext
.. _console:
Console
#######
.. doxygengroup:: console_api
``` | /content/code_sandbox/doc/services/console.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```restructuredtext
.. _resource_mgmt:
Resource Management
###################
There are various situations where it's necessary to coordinate resource
use at runtime among multiple clients. These include power rails,
clocks, other peripherals, and binary device power management. The
complexity of properly managing ... | /content/code_sandbox/doc/services/resource_management/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 769 |
```restructuredtext
Building extensions
###################
The LLEXT subsystem allows for the creation of extensions that can be loaded
into a running Zephyr application. When building these extensions, it's very
often useful to have access to the headers and compiler flags used by the main
Zephyr application.
The e... | /content/code_sandbox/doc/services/llext/build.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,697 |
```restructuredtext
.. _llext:
Linkable Loadable Extensions (LLEXT)
####################################
The LLEXT subsystem provides a toolbox for extending the functionality of an
application at runtime with linkable loadable code.
Extensions are precompiled executables in ELF format that can be verified,
loaded, ... | /content/code_sandbox/doc/services/llext/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 144 |
```restructuredtext
Configuration
#############
The following Kconfig options are available for the LLEXT subsystem:
.. _llext_kconfig_heap:
Heap size
----------
The LLEXT subsystem needs a static heap to be allocated for extension related
data. The following option controls this allocation.
:kconfig:option:`CONFI... | /content/code_sandbox/doc/services/llext/config.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,046 |
```restructuredtext
Loading extensions
##################
Once an extension is built and the ELF file is available, it can be loaded into
the Zephyr application using the LLEXT API, which provides a way to load the
extension into memory, access its symbols and call its functions.
Loading an extension
================... | /content/code_sandbox/doc/services/llext/load.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 729 |
```restructuredtext
API Reference
*************
.. doxygengroup:: llext_apis
.. doxygengroup:: llext_symbols
.. doxygengroup:: llext_loader_apis
``` | /content/code_sandbox/doc/services/llext/api.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```restructuredtext
.. _seialization_reference:
Serialization
#############
Zephyr has support for several data serialization subsystems. These can be used to encode/decode
structured data with a known format on-the-wire.
.. toctree::
:maxdepth: 1
nanopb.rst
``` | /content/code_sandbox/doc/services/serialization/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```restructuredtext
.. _nanopb_reference:
Nanopb
######
`Nanopb <path_to_url`_ is a C implementation of Google's
`Protocol Buffers <path_to_url`_.
Requirements
************
Nanopb uses the protocol buffer compiler to generate source and header files,
make sure the ``protoc`` executable is installed and available.
... | /content/code_sandbox/doc/services/serialization/nanopb.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 417 |
```restructuredtext
.. _binary_descriptors:
Binary Descriptors
##################
Binary Descriptors are constant data objects storing information about the binary executable.
Unlike "regular" constants, binary descriptors are linked to a known offset in the binary, making
them accessible to other programs, such as a... | /content/code_sandbox/doc/services/binary_descriptors/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,319 |
```restructuredtext
.. _modbus:
Modbus
######
Modbus is an industrial messaging protocol. The protocol is specified
for different types of networks or buses. Zephyr OS implementation
supports communication over serial line and may be used
with different physical interfaces, like RS485 or RS232.
TCP support is not imp... | /content/code_sandbox/doc/services/modbus/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 337 |
```restructuredtext
.. _shell_api:
Shell
######
.. contents::
:local:
:depth: 2
Overview
********
This module allows you to create and handle a shell with a user-defined command
set. You can use it in examples where more than simple button or LED user
interaction is required. This module is a Unix-like shel... | /content/code_sandbox/doc/services/shell/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,806 |
```restructuredtext
.. _cs_trace_defmt:
ARM Coresight Trace Deformatter
###############################
Formatter is a method of wrapping multiple trace streams (specified by 7 bit ID) into a
single output stream. Formatter is using 16 byte frames which wraps up to 15 bytes of
data. It is used, for example, by ETR (E... | /content/code_sandbox/doc/services/debugging/cs_trace_defmt.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 193 |
```restructuredtext
.. _debugging:
Debugging
#########
.. toctree::
:maxdepth: 1
thread-analyzer.rst
coredump.rst
gdbstub.rst
debugmon.rst
mipi_stp_decoder.rst
symtab.rst
cs_trace_defmt.rst
``` | /content/code_sandbox/doc/services/debugging/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```restructuredtext
.. _gdbstub:
GDB stub
########
.. contents::
:local:
:depth: 2
Overview
********
The gdbstub feature provides an implementation of the GDB Remote
Serial Protocol (RSP) that allows you to remotely debug Zephyr
using GDB.
The protocol supports different connection types: serial, UDP/IP and
... | /content/code_sandbox/doc/services/debugging/gdbstub.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,701 |
```restructuredtext
.. _mipi_stp_decoder:
MIPI STP Decoder
################
The MIPI System Trace Protocol (MIPI STP) was developed as a generic base protocol that can
be shared by multiple application-specific trace protocols. It serves as a wrapper protocol
that merges disparate streams that typically contain diffe... | /content/code_sandbox/doc/services/debugging/mipi_stp_decoder.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 412 |
```restructuredtext
.. _thread_analyzer:
Thread analyzer
###################
The thread analyzer module enables all the Zephyr options required to track
the thread information, e.g. thread stack size usage and other runtime thread
runtime statistics.
The analysis is performed on demand when the application calls
:c:... | /content/code_sandbox/doc/services/debugging/thread-analyzer.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,020 |
```unknown
# Doxyfile 1.12.0
# This file describes the settings to be used by the documentation system
# Doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comme... | /content/code_sandbox/doc/zephyr.doxyfile.in | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31,526 |
```restructuredtext
.. _symtab:
Symbol Table (Symtab)
#####################
The Symtab module, when enabled, will generate full symbol table during the Zephyr linking
stage that keep tracks of the information about the functions' name and address, for advanced application
with a lot of functions, this is expected to ... | /content/code_sandbox/doc/services/debugging/symtab.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 225 |
```restructuredtext
.. _debugmon:
Cortex-M Debug Monitor
######################
Monitor mode debugging is a Cortex-M feature, that provides a non-halting approach to
debugging. With this it's possible to continue the execution of high-priority interrupts,
even when waiting on a breakpoint.
This strategy makes it poss... | /content/code_sandbox/doc/services/debugging/debugmon.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 594 |
```restructuredtext
.. _profiling:
Profiling
#########
Required Kconfig: :kconfig:option:`CONFIG_PROFILING`
.. toctree::
:maxdepth: 1
perf.rst
``` | /content/code_sandbox/doc/services/profiling/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 43 |
```restructuredtext
.. _coredump:
Core Dump
#########
The core dump module enables dumping the CPU registers and memory content
for offline debugging. This module is called when a fatal error is
encountered and prints or stores data according to which backends
are enabled.
Configuration
*************
Configure this... | /content/code_sandbox/doc/services/debugging/coredump.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,847 |
```restructuredtext
.. _profiling-perf:
Perf
####
Perf is a profiler tool based on stack tracing. It can be used for lightweight profiling
with minimal code overhead.
Work Principle
**************
The ``perf record`` shell command starts a timer with the perf tracer function.
Timers are driven by interrupts, so the... | /content/code_sandbox/doc/services/profiling/perf.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 296 |
```restructuredtext
.. _virtualization_reference:
Virtualization
##############
.. toctree::
:maxdepth: 1
ivshmem.rst
``` | /content/code_sandbox/doc/services/virtualization/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```restructuredtext
.. _ivshmem_driver:
Inter-VM Shared Memory
######################
.. contents::
:local:
:depth: 2
Overview
********
As Zephyr is enabled to run as a guest OS on Qemu and
`ACRN <path_to_url`_
it might be necessary to make VMs aware of each other, or aware of the host.
This is made possible ... | /content/code_sandbox/doc/services/virtualization/ivshmem.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 443 |
```restructuredtext
.. _file_system_api:
File Systems
############
Zephyr RTOS Virtual Filesystem Switch (VFS) allows applications to mount multiple
file systems at different mount points (e.g., ``/fatfs`` and ``/lfs``). The
mount point data structure contains all the necessary information required
to instantiate, mo... | /content/code_sandbox/doc/services/file_system/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 522 |
```restructuredtext
.. _sensing:
Sensing Subsystem
########################
.. contents::
:local:
:depth: 2
Overview
********
Sensing Subsystem is a high level sensor framework inside the OS user
space service layer. It is a framework focused on sensor fusion, client
arbitration, sampling, timing, schedulin... | /content/code_sandbox/doc/services/sensing/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,111 |
```restructuredtext
.. _settings_api:
Settings
########
The settings subsystem gives modules a way to store persistent per-device
configuration and runtime state. A variety of storage implementations are
provided behind a common API using FCB, NVS, or a file system. These different
implementations give the applicat... | /content/code_sandbox/doc/services/settings/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,393 |
```restructuredtext
.. _management_fixing_prev_mcumgr:
Fixing and backporting fixes to Zephyr v2.7 MCUmgr
##################################################
The processes described in this document apply to both the zephyr repository itself and the MCUmgr :ref:`module <modules>` defined in :zephyr_file:`west.yml`.
.... | /content/code_sandbox/doc/services/device_mgmt/mcumgr_backporting.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,469 |
```restructuredtext
.. _mcu_mgr:
MCUmgr
#######
Overview
********
The management subsystem allows remote management of Zephyr-enabled devices.
The following management operations are available:
* Image management
* File System management
* OS management
* Settings (config) management
* Shell management
* Statistic ... | /content/code_sandbox/doc/services/device_mgmt/mcumgr.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,381 |
```restructuredtext
.. _dfu:
Device Firmware Upgrade
#######################
Overview
********
The Device Firmware Upgrade subsystem provides the necessary frameworks to
upgrade the image of a Zephyr-based application at run time. It currently
consists of two different modules:
* :zephyr_file:`subsys/dfu/boot/`: In... | /content/code_sandbox/doc/services/device_mgmt/dfu.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 648 |
```restructuredtext
.. _device_mgmt:
Device Management
#################
.. toctree::
:maxdepth: 1
mcumgr.rst
mcumgr_handlers.rst
mcumgr_callbacks.rst
mcumgr_backporting.rst
smp_protocol.rst
smp_transport.rst
dfu.rst
ota.rst
ec_host_cmd.rst
SMP Groups
==========
.. toctree::... | /content/code_sandbox/doc/services/device_mgmt/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 193 |
```restructuredtext
.. _ec_host_cmd_backend_api:
EC Host Command
###############
Overview
********
The host command protocol defines the interface for a host, or application processor, to
communicate with a target embedded controller (EC). The EC Host command subsystem implements the
target side of the protocol, gene... | /content/code_sandbox/doc/services/device_mgmt/ec_host_cmd.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,272 |
```restructuredtext
.. _mcumgr_smp_transport_specification:
SMP Transport Specification
###########################
The documents specifies information needed for implementing server and client
side SMP transports.
.. _mcumgr_smp_transport_ble:
BLE (Bluetooth Low Energy)
**************************
MCUmgr Clients n... | /content/code_sandbox/doc/services/device_mgmt/smp_transport.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,724 |
```restructuredtext
.. _ota:
Over-the-Air Update
###################
Overview
********
Over-the-Air (OTA) Update is a method for delivering firmware updates to remote
devices using a network connection. Although the name implies a wireless
connection, updates received over a wired connection (such as Ethernet)
are s... | /content/code_sandbox/doc/services/device_mgmt/ota.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 772 |
```restructuredtext
.. _mcumgr_handlers:
MCUmgr handlers
###############
Overview
********
MCUmgr functions by having group handlers which identify a group of functions relating to a
specific management area, which is addressed with a 16-bit identification value,
:c:enum:`mcumgr_group_t` contains the management grou... | /content/code_sandbox/doc/services/device_mgmt/mcumgr_handlers.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,801 |
```restructuredtext
.. _mcumgr_smp_protocol_specification:
SMP Protocol Specification
##########################
This is description of Simple Management Protocol, SMP, that is used by
MCUmgr to pass requests to devices and receive responses from them.
SMP is an application layer protocol. The underlying transport l... | /content/code_sandbox/doc/services/device_mgmt/smp_protocol.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,130 |
```restructuredtext
.. _mcumgr_callbacks:
MCUmgr Callbacks
################
Overview
********
MCUmgr has a customisable callback/notification system that allows application
(and module) code to receive callbacks for MCUmgr events that they are
interested in and react to them or return a status code to the calling fu... | /content/code_sandbox/doc/services/device_mgmt/mcumgr_callbacks.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,350 |
```restructuredtext
.. _mcumgr_smp_group_2:
Statistics management
#####################
Statistics management allows to obtain data gathered by Statistics subsystem
of Zephyr, enabled with :kconfig:option:`CONFIG_STATS`.
Statistics management group defines commands:
.. table::
:align: center
+-------------... | /content/code_sandbox/doc/services/device_mgmt/smp_groups/smp_group_2.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,580 |
```restructuredtext
.. _mcumgr_smp_group_8:
File management
###############
The file management group provides commands that allow to upload and download files
to/from a device.
File management group defines following commands:
.. table::
:align: center
+-------------------+--------------------------------... | /content/code_sandbox/doc/services/device_mgmt/smp_groups/smp_group_8.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,361 |
```restructuredtext
.. _mcumgr_smp_group_3:
Settings (Config) Management Group
##################################
Settings management group (known as Configuration Manager in the original MCUmgr repository)
defines the following commands:
.. table::
:align: center
+----------------+-------------------------... | /content/code_sandbox/doc/services/device_mgmt/smp_groups/smp_group_3.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,691 |
```restructuredtext
.. _mcumgr_smp_group_63:
Zephyr Management Group
#######################
Zephyr management group defines the following commands:
.. table::
:align: center
+----------------+------------------------------+
| ``Command ID`` | Command description |
+================+=======... | /content/code_sandbox/doc/services/device_mgmt/smp_groups/smp_group_63.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 617 |
```restructuredtext
.. _mcumgr_smp_group_9:
Shell management
################
Shell management allows passing commands to the shell subsystem over the SMP
protocol.
Shell management group defines following commands:
.. table::
:align: center
+-------------------+--------------------------------------------... | /content/code_sandbox/doc/services/device_mgmt/smp_groups/smp_group_9.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 894 |
```restructuredtext
.. _mcumgr_smp_group_0:
Default/OS Management Group
###########################
OS management group defines following commands:
.. table::
:align: center
+-------------------+-----------------------------------------------+
| ``Command ID`` | Command description ... | /content/code_sandbox/doc/services/device_mgmt/smp_groups/smp_group_0.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.