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 |
|---|---|---|---|---|---|---|---|---|
```yaml
identifier: qemu_x86/atom/nommu
name: QEMU Emulation for X86 (MMU disabled)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- kernel
- userspace
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nommu.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```unknown
/*
*
*/
/dts-v1/;
#include <mem.h>
#ifndef DT_DRAM_BASE
#define DT_DRAM_BASE 0
#endif
#ifndef DT_DRAM_SIZE
#define DT_DRAM_SIZE DT_SIZE_K(4096)
#endif
#include <intel/lakemont.dtsi>
/ {
model = "QEMU X86 (Lakemont) emulator";
compatible = "qemu,x86_lakemont_emulator";
aliases {
uart-0 = &uart0... | /content/code_sandbox/boards/qemu/x86/qemu_x86_lakemont.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 358 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_SRAM_OFFSET=0x100... | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_virt_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 187 |
```unknown
/*
*
*/
#include "qemu_x86.dts"
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nopae.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```unknown
#
config BOARD_QEMU_X86_64
select SOC_ATOM
``` | /content/code_sandbox/boards/qemu/x86/Kconfig.qemu_x86_64 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```unknown
/*
*
*/
#define DT_DRAM_BASE 0x100000
#define DT_DRAM_SIZE DT_SIZE_K(256)
#include "qemu_x86.dts"
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_tiny.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/dts-v1/;
#include <mem.h>
#ifndef DT_DRAM_BASE
#define DT_DRAM_BASE 0
#endif
#ifndef DT_DRAM_SIZE
#define DT_DRAM_SIZE DT_SIZE_M(32)
#endif
#define DT_FLASH_SIZE DT_SIZE_K(4096)
#include <intel/atom.dtsi>
#include <zephyr/dt-bindings/pcie/pcie.h>
/ {
model = "QEMU X86 emulator";
compatible = "qemu... | /content/code_sandbox/boards/qemu/x86/qemu_x86.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,107 |
```unknown
/*
*
*/
#include "qemu_x86.dts"
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_xip.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```unknown
if BOARD_QEMU_X86 || BOARD_QEMU_X86_64 || BOARD_QEMU_X86_LAKEMONT || BOARD_QEMU_X86_TINY
# The EEPROM emulator must be initialized after the flash simulator
config EEPROM_INIT_PRIORITY
default 60
depends on EEPROM
config BUILD_OUTPUT_BIN
default n
config QEMU_TARGET
default y
config HAS_COVERAGE_SUP... | /content/code_sandbox/boards/qemu/x86/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 600 |
```unknown
#
config BOARD_QEMU_X86
bool
select CPU_HAS_FPU
config BOARD_QEMU_X86_64
bool
select X86_64
config BOARD_QEMU_X86_LAKEMONT
bool
select CPU_HAS_FPU
config BOARD_QEMU_X86_TINY
bool
select CPU_HAS_FPU
``` | /content/code_sandbox/boards/qemu/x86/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
#
config BOARD_QEMU_X86_LAKEMONT
select SOC_LAKEMONT
``` | /content/code_sandbox/boards/qemu/x86/Kconfig.qemu_x86_lakemont | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=n
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_DUMB=y
CONFIG_WAITQ_DUMB=y
CONFIG_X86_VERY_EARLY_CONSOLE=n
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nommu_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```yaml
identifier: qemu_x86_lakemont
name: QEMU Emulation for X86 (Lakemont)
type: qemu
simulation: qemu
arch: x86
toolchain:
- zephyr
- xtools
- llvm
testing:
default: true
only_tags:
- kernel
ignore_tags:
- benchmark
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_lakemont.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```restructuredtext
.. _qemu_x86:
X86 Emulation (QEMU)
####################
Overview
********
The X86 QEMU board configuration is used to emulate the X86 architecture.
This board configuration provides support for an x86 Minute IA (Lakemont) CPU
and the following devices:
* HPET
* Advanced Programmable Interrupt C... | /content/code_sandbox/boards/qemu/x86/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,444 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_binary_suffix riscv64)
set(QEMU_CPU_TYPE_${ARCH} riscv64)
set(QEMU_FLAGS_${ARCH}
-nographic
-machine virt
-bios none
-m 256
)
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/riscv64/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```yaml
identifier: qemu_riscv64/qemu_virt_riscv64/smp
name: QEMU Emulation for RISC-V 64-bit SMP
type: qemu
simulation: qemu
arch: riscv
toolchain:
- zephyr
supported:
- netif
- smp
testing:
default: true
ignore_tags:
- net
- bluetooth
``` | /content/code_sandbox/boards/qemu/riscv64/qemu_riscv64_qemu_virt_riscv64_smp.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```yaml
identifier: qemu_riscv64
name: QEMU Emulation for RISC-V 64-bit
type: qemu
simulation: qemu
arch: riscv
toolchain:
- zephyr
supported:
- netif
testing:
default: true
ignore_tags:
- net
- bluetooth
``` | /content/code_sandbox/boards/qemu/riscv64/qemu_riscv64.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
config BOARD_QEMU_RISCV64
select SOC_QEMU_VIRT_RISCV64
``` | /content/code_sandbox/boards/qemu/riscv64/Kconfig.qemu_riscv64 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```linker script
/*
*
*/
#include <zephyr/devicetree.h>
#include <zephyr/offsets.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/linker/linker-tool.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel/mm.h>
/* Bounds of physical RAM from DTS */
#define PHYS_RAM_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_sra... | /content/code_sandbox/boards/qemu/x86/qemu_x86_tiny.ld | linker script | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,688 |
```yaml
board:
name: qemu_riscv64
vendor: qemu
socs:
- name: qemu_virt_riscv64
variants:
- name: smp
``` | /content/code_sandbox/boards/qemu/riscv64/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 43 |
```unknown
/dts-v1/;
#include <qemu/virt-riscv64.dtsi>
/ {
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &ram0;
};
};
&uart0 {
status = "okay";
};
``` | /content/code_sandbox/boards/qemu/riscv64/qemu_riscv64.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
config BOARD_QEMU_RISCV64
select QEMU_TARGET
``` | /content/code_sandbox/boards/qemu/riscv64/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```unknown
if BOARD_QEMU_RISCV64
config BUILD_OUTPUT_BIN
default n
config HAS_COVERAGE_SUPPORT
default y
config QEMU_ICOUNT_SHIFT
default 6 if QEMU_ICOUNT
endif # BOARD_QEMU_RISCV64
``` | /content/code_sandbox/boards/qemu/riscv64/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
CONFIG_PRIVILEGED_STACK_SIZE=2048
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_STACK_SENTINEL=y
CONFIG_XIP=n
CONFIG_RISCV_PMP=y
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=2
CONFIG_IDLE_STACK_SIZE=1024
CONFIG_QEMU_ICOUNT=n
``` | /content/code_sandbox/boards/qemu/riscv64/qemu_riscv64_qemu_virt_riscv64_smp_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```unknown
/dts-v1/;
#include <qemu/virt-riscv64.dtsi>
/ {
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &ram0;
};
};
&uart0 {
status = "okay";
};
``` | /content/code_sandbox/boards/qemu/riscv64/qemu_riscv64_qemu_virt_riscv64_smp.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
CONFIG_PRIVILEGED_STACK_SIZE=2048
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_STACK_SENTINEL=y
CONFIG_XIP=n
CONFIG_RISCV_PMP=y
``` | /content/code_sandbox/boards/qemu/riscv64/qemu_riscv64_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```unknown
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_HAS_STACK_CHECKING=n
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT_SHIFT=6
CONFIG_ARC_MPU_ENABLE=y
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
CONFIG_ISA_ARCV3=y
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_HAS_STACK_CHECKING=n
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT_SHIFT=6
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs5x_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```restructuredtext
.. _qemu_riscv64:
RISCV64 Emulation (QEMU)
########################
Overview
********
The RISCV64 QEMU board configuration is used to emulate the RISCV64 architecture.
Get the Toolchain and QEMU
**************************
The minimum version of the `Zephyr SDK tools
<path_to_url`_
with toolchai... | /content/code_sandbox/boards/qemu/riscv64/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 489 |
```yaml
identifier: qemu_arc/qemu_arc_hs
name: QEMU Emulation for ARC HS
type: qemu
simulation: qemu
arch: arc
toolchain:
- zephyr
- cross-compile
- arcmwdt
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: snps
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```unknown
/*
*
*/
/dts-v1/;
#include "qemu_arc.dtsi"
/ {
model = "QEMU ARC EM";
compatible = "snps,qemu-arcem";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem";
reg = <0>;
};
};
};
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_em.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 99 |
```yaml
identifier: qemu_arc/qemu_arc_hs/xip
name: QEMU Emulation for ARC HS (XIP)
type: qemu
simulation: qemu
arch: arc
toolchain:
- zephyr
- cross-compile
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: snps
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs_xip.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_CPU_TYPE_${ARCH} arc)
if(${CONFIG_SOC_QEMU_ARC_EM})
set(QEMU_CPU_TYPE_${ARCH} arcem)
set(QEMU_FLAGS_${ARCH} -cpu arcem)
elseif(${CONFIG_SOC_QEMU_ARC_HS})
set(QEMU_CPU_TYPE_${ARCH} archs)
set(QEMU_FLAGS_${ARCH} -cpu archs)
elseif(${CONFIG_SOC_QEMU_ARC_HS5X})
... | /content/code_sandbox/boards/qemu/arc/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 441 |
```unknown
CONFIG_XIP=y
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_HAS_STACK_CHECKING=n
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT_SHIFT=6
CONFIG_ARC_MPU_ENABLE=y
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs_xip_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
#
config BOARD_QEMU_ARC
select SOC_QEMU_ARC_EM if BOARD_QEMU_ARC_QEMU_ARC_EM
select SOC_QEMU_ARC_HS if BOARD_QEMU_ARC_QEMU_ARC_HS || BOARD_QEMU_ARC_QEMU_ARC_HS_XIP
select SOC_QEMU_ARC_HS5X if BOARD_QEMU_ARC_QEMU_ARC_HS5X
select SOC_QEMU_ARC_HS6X if BOARD_QEMU_ARC_QEMU_ARC_HS6X
``` | /content/code_sandbox/boards/qemu/arc/Kconfig.qemu_arc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```c
/*
*
*/
#include <zephyr/devicetree.h>
#include <zephyr/arch/arc/v2/mpu/arc_mpu.h>
#include <zephyr/arch/arc/arch.h>
#include <zephyr/linker/linker-defs.h>
/*
* for secure firmware, MPU entries are only set up for secure world.
* All regions not listed here are shared by secure world and normal world.
*/
st... | /content/code_sandbox/boards/qemu/arc/arc_mpu_regions.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 561 |
```unknown
CONFIG_ISA_ARCV3=y
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_HAS_STACK_CHECKING=n
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT_SHIFT=6
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs6x_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```yaml
identifier: qemu_arc/qemu_arc_hs6x
name: QEMU Emulation for ARC HS6x
type: qemu
simulation: qemu
arch: arc
toolchain:
- cross-compile
- zephyr
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: snps
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs6x.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
/*
*
*/
/dts-v1/;
#include <mem.h>
#include "skeleton.dtsi"
#define DT_FLASH_SIZE DT_SIZE_M(4)
#define DT_SRAM_SIZE DT_SIZE_M(4)
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
};
intc: arcv2-intc {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
... | /content/code_sandbox/boards/qemu/arc/qemu_arc.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 520 |
```unknown
/*
*
*/
/dts-v1/;
#include "qemu_arc.dtsi"
/ {
model = "QEMU ARC HS";
compatible = "snps,qemu-archs";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,archs";
reg = <0>;
};
};
};
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs6x.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```yaml
board:
name: qemu_arc
vendor: qemu
socs:
- name: qemu_arc_em
- name: qemu_arc_hs
variants:
- name: xip
- name: qemu_arc_hs5x
- name: qemu_arc_hs6x
``` | /content/code_sandbox/boards/qemu/arc/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```yaml
identifier: qemu_arc/qemu_arc_hs5x
name: QEMU Emulation for ARC HS5x
type: qemu
simulation: qemu
arch: arc
toolchain:
- zephyr
- cross-compile
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: snps
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs5x.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
/*
*
*/
/dts-v1/;
#include "qemu_arc.dtsi"
/ {
model = "QEMU ARC HS";
compatible = "snps,qemu-archs";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,archs";
reg = <0>;
};
};
};
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs5x.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```unknown
/*
*
*/
/dts-v1/;
#include "qemu_arc.dtsi"
/ {
model = "QEMU ARC HS";
compatible = "snps,qemu-archs";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,archs";
reg = <0>;
};
};
};
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```yaml
identifier: qemu_arc/qemu_arc_em
name: QEMU Emulation for ARC EM
type: qemu
simulation: qemu
arch: arc
toolchain:
- zephyr
- cross-compile
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: snps
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_em.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```unknown
if BOARD_QEMU_ARC
if NETWORKING
config NET_L2_ETHERNET
default y
# Required to satisfy dependency of networking stack on RNG
config TEST_RANDOM_GENERATOR
default y
endif # NETWORKING
endif
``` | /content/code_sandbox/boards/qemu/arc/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```unknown
#
config BOARD_QEMU_ARC
select QEMU_TARGET
select HAS_COVERAGE_SUPPORT
``` | /content/code_sandbox/boards/qemu/arc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```unknown
CONFIG_XIP=y
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_HAS_STACK_CHECKING=n
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT_SHIFT=6
CONFIG_ARC_MPU_ENABLE=y
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_em_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
/*
*
*/
/dts-v1/;
#include "qemu_arc.dtsi"
/ {
model = "QEMU ARC HS";
compatible = "snps,qemu-archs";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,archs";
reg = <0>;
};
};
};
``` | /content/code_sandbox/boards/qemu/arc/qemu_arc_qemu_arc_hs_xip.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```restructuredtext
.. _boards_posix:
POSIX/Native Boards
###################
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/boards/native/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```unknown
CONFIG_CONSOLE=y
CONFIG_NO_OPTIMIZATIONS=y
CONFIG_LOG_BACKEND_UART=n
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf52_bsim_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```cmake
set(SUPPORTED_EMU_PLATFORMS native)
board_set_debugger_ifnset(native)
board_set_flasher_ifnset(native)
board_finalize_runner_args(native)
``` | /content/code_sandbox/boards/native/nrf_bsim/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```yaml
identifier: nrf5340bsim/nrf5340/cpunet
name: NRF53 Net Core BabbleSim board
type: native
arch: posix
simulation: native
env:
- BSIM_OUT_PATH
toolchain:
- zephyr
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```restructuredtext
.. _qemu_arc:
ARCv2 & ARCv3 Emulation (QEMU)
###############################
Overview
********
This board configuration will use QEMU to emulate set of generic
ARCv2 and ARCv3 hardware platforms.
The following features of ARC ISA cores are currently supported:
* CPU:
* ARCv2 EM
* ARCv2 HS3x... | /content/code_sandbox/boards/qemu/arc/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 643 |
```unknown
CONFIG_CONSOLE=y
CONFIG_NO_OPTIMIZATIONS=y
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```yaml
identifier: nrf5340bsim/nrf5340/cpuapp
name: NRF53 BabbleSim - Application Core target
type: native
arch: posix
simulation: native
env:
- BSIM_OUT_PATH
toolchain:
- zephyr
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```unknown
/*
*
*/
/dts-v1/;
#include <mem.h>
#include <arm/nordic/nrf54l15_cpuapp.dtsi>
/ {
model = "Nordic NRF54L15 BSIM NRF54L15 Application";
compatible = "bsim,nrf54l15-bsim-nrf54l15-cpuapp", "bsim,nrf54";
chosen {
zephyr,entropy = &rng;
zephyr,flash-controller = &rram_controller;
zephyr,flash = &cp... | /content/code_sandbox/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 800 |
```yaml
identifier: nrf54l15bsim/nrf54l15/cpuapp
name: NRF54L15 BabbleSim - Application Core target
type: native
arch: posix
simulation: native
env:
- BSIM_OUT_PATH
toolchain:
- zephyr
supported:
- counter
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```c
/*
*
*/
#include <stdbool.h>
#include <stdlib.h>
#include "bs_tracing.h"
#include "bstests.h"
#include "bs_cmd_line.h"
#include "bs_dynargs.h"
#include "posix_native_task.h"
#include "nsi_tracing.h"
#include "nsi_main.h"
#include "nsi_cpu_ctrl.h"
static const char exe_name[] = "nrf_bsim options:";
static char ... | /content/code_sandbox/boards/native/nrf_bsim/argparse.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 658 |
```yaml
identifier: nrf52_bsim
name: NRF52 BabbleSim board
type: native
arch: posix
simulation: native
env:
- BSIM_OUT_PATH
toolchain:
- zephyr
testing:
ignore_tags:
- modem
- bsim_skip_CI
supported:
- gpio
- counter
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf52_bsim.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```cmake
# Suppress "unique_unit_address_if_enabled" to handle the following overlaps:
# - power@40000000 & clock@40000000 & bprot@40000000
# - acl@4001e000 & flash-controller@4001e000
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
``` | /content/code_sandbox/boards/native/nrf_bsim/pre_dt_board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
CONFIG_CONSOLE=y
CONFIG_NO_OPTIMIZATIONS=y
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```c
/*
*
*/
#include <stdbool.h>
#include <stdint.h>
#include "fake_timer.h"
#include <zephyr/arch/posix/posix_soc_if.h>
#include <posix_board_if.h>
#include <posix_soc.h>
#include "nsi_hw_scheduler.h"
/**
* Replacement to the kernel k_busy_wait()
* Will block this thread (and therefore the whole Zephyr) during ... | /content/code_sandbox/boards/native/nrf_bsim/cpu_wait.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 476 |
```objective-c
/*
*
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_BOARD_IRQ_H
#define BOARDS_POSIX_NRF52_BSIM_BOARD_IRQ_H
#include <zephyr/types.h>
#include "../common/irq/board_irq.h"
#ifdef __cplusplus
extern "C" {
#endif
void nrfbsim_WFE_model(void);
void nrfbsim_SEV_model(void);
#define IRQ_ZERO_LATENCY BIT(1) /* Unuse... | /content/code_sandbox/boards/native/nrf_bsim/board_irq.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```unknown
/*
*
*/
/dts-v1/;
#include <mem.h>
#include <arm/nordic/nrf5340_cpunet.dtsi>
/ {
model = "Nordic NRF5340 BSIM NRF5340 Network";
compatible = "bsim,nrf5340-bsim-nrf5340-cpunet","bsim,nrf53";
/* We need to remove aliases to nodes we delete */
aliases {
/delete-property/ sram-0;
/delete-property/ ... | /content/code_sandbox/boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 565 |
```yaml
boards:
- name: nrf52_bsim
vendor: zephyr
socs:
- name: native
- name: nrf5340bsim
vendor: zephyr
socs:
- name: nrf5340
- name: nrf54l15bsim
vendor: zephyr
socs:
- name: nrf54l15
# Note the 53 and 54 are referring to the real SOC yamls, but we only use their name and cpu-cluster
# definitions.... | /content/code_sandbox/boards/native/nrf_bsim/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 144 |
```c
/*
*
*
* SW side of the IRQ handling
*/
#include <stdint.h>
#include <zephyr/irq_offload.h>
#include <zephyr/kernel_structs.h>
#include "kernel_internal.h"
#include "kswap.h"
#include "irq_ctrl.h"
#include "posix_core.h"
#include "board_soc.h"
#include <zephyr/sw_isr_table.h>
#include "soc.h"
#include "bs_tra... | /content/code_sandbox/boards/native/nrf_bsim/irq_handler.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,510 |
```c
/*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <soc.h>
#include <posix_native_task.h>
#include <nsi_cpu_if.h>
#include "bstests.h"
#include "bs_tracing.h"
#include "phy_sync_ctrl.h"
#include "nsi_hw_scheduler.h"
#include "nsi_cpu_ctrl.h"
#include "nsi_host_trampolines.h"
/*
* These hooks are to be na... | /content/code_sandbox/boards/native/nrf_bsim/nsi_if.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,005 |
```objective-c
/*
*
*/
#ifndef _BOARD_POSIX_NRF52_BSIM_TIME_MACHINE_H
#define _BOARD_POSIX_NRF52_BSIM_TIME_MACHINE_H
#include "bs_types.h"
#include "time_machine_if.h"
#include <zephyr/toolchain.h>
#ifdef __cplusplus
extern "C" {
#endif
/* This header and prototype exists for backwards compatibility with old bsim ... | /content/code_sandbox/boards/native/nrf_bsim/time_machine.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```c
/*
*
*/
/*
* Here we define the shared memory buffers for the RPMSG IPC back-end in simulation.
* In real HW, these are booked in RAM thru device tree configuration.
* In this simulated target, we just define them at build time to have the size defined
* in device tree.
*
* Note that this file is only com... | /content/code_sandbox/boards/native/nrf_bsim/ipc_backend.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 195 |
```unknown
/*
*
*/
/dts-v1/;
#include <mem.h>
#include <arm/nordic/nrf52833.dtsi>
/* We resuse the pinctrl definitions directly from the real board : */
#include <../boards/nordic/nrf52833dk/nrf52833dk_nrf52833-pinctrl.dtsi>
/ {
model = "nrf52 bsim";
compatible = "bsim,nrf52833";
/* We need to remove aliases t... | /content/code_sandbox/boards/native/nrf_bsim/nrf52_bsim.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 830 |
```unknown
if SOC_SERIES_BSIM_NRFXX
config BUILD_OUTPUT_BIN
default n
config BUILD_OUTPUT_EXE
# When the IPC service is used, the net core image requires the application core image, as it needs
# access to its IPC buffer. Without it, the executable cannot be built.
default y if !(BOARD_NRF5340BSIM_NRF5340_CPUNET... | /content/code_sandbox/boards/native/nrf_bsim/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 569 |
```objective-c
/*
*
*/
#ifndef BSIM_NRF_ARGS_H
#define BSIM_NRF_ARGS_H
#include "bsim_args_runner.h"
/* This header is present to avoid breaking backwards compatibility with old bsim tests */
#endif
``` | /content/code_sandbox/boards/native/nrf_bsim/argparse.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
config BOARD_NRF52_BSIM
select SOC_POSIX
``` | /content/code_sandbox/boards/native/nrf_bsim/Kconfig.nrf52_bsim | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```unknown
config BOARD_NRF54L15BSIM
select SOC_POSIX
``` | /content/code_sandbox/boards/native/nrf_bsim/Kconfig.nrf54l15bsim | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```unknown
config BOARD_NRF52_BSIM
bool
select SOC_SERIES_BSIM_NRF52X
select SOC_COMPATIBLE_NRF52833
select NRF_RTC_TIMER
select CLOCK_CONTROL
help
NRF52 simulation model
Will produce a console Linux process which can be executed natively.
It needs the BabbleSim simulator both in compile time and to exe... | /content/code_sandbox/boards/native/nrf_bsim/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 776 |
```unknown
CONFIG_CONSOLE=y
CONFIG_NO_OPTIMIZATIONS=y
# Start SYSCOUNTER on driver init
CONFIG_NRF_GRTC_START_SYSCOUNTER=y
``` | /content/code_sandbox/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```objective-c
/*
*
*/
/**
* @file Extra definitions provided by the board to soc.h
*
* Background:
* The POSIX ARCH/SOC/board layering is different than in normal archs
* The "SOC" does not provide almost any of the typical SOC functionality
* but that is left for the "board" to define it
* Device code may re... | /content/code_sandbox/boards/native/nrf_bsim/board_soc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 382 |
```unknown
config BOARD_NRF5340BSIM
select SOC_POSIX
``` | /content/code_sandbox/boards/native/nrf_bsim/Kconfig.nrf5340bsim | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```c
/*
*
*/
#include "nsi_main.h"
void posix_exit(int exit_code)
{
nsi_exit(exit_code);
}
``` | /content/code_sandbox/boards/native/nrf_bsim/common/posix_arch_if.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 26 |
```unknown
/*
*
*/
/dts-v1/;
#include <mem.h>
#include <arm/nordic/nrf5340_cpuapp.dtsi>
/ {
model = "Nordic NRF5340 BSIM NRF5340 Application";
compatible = "bsim,nrf5340-bsim-nrf5340-cpuapp","bsim,nrf53";
/* We need to remove aliases to nodes we delete */
aliases {
/delete-property/ sram-0;
/delete-proper... | /content/code_sandbox/boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 979 |
```objective-c
/*
*
*/
#ifndef _BSTESTS_ENTRY_H
#define _BSTESTS_ENTRY_H
#include "bs_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* TEST HOOKS:
*
* You may register some of these functions in your testbench
*
* Note that you can overwrite this function pointers on the fly
*/
/*
* Will be called with... | /content/code_sandbox/boards/native/nrf_bsim/common/bstests.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,039 |
```c
/*
*
*/
#include "bs_tracing.h"
#include "nsi_cpu_if.h"
/*
* Default (weak) implementation for nsif_cpu<n>_save_test_arg() expected by the argument
* parsing defined in bsim_args_runner.
* Note that the real implementation is provided by the board code.
* This exists in case the total device image is assem... | /content/code_sandbox/boards/native/nrf_bsim/common/bsim_extra_cpu_if_stubs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 210 |
```objective-c
/*
*
*/
#ifndef BOARDS_POSIX_BSIM_COMMON_PHY_SYNC_CTRL_H
#define BOARDS_POSIX_BSIM_COMMON_PHY_SYNC_CTRL_H
#include "bs_types.h"
#ifdef __cplusplus
extern "C"{
#endif
void phy_sync_ctrl_set_last_phy_sync_time(bs_time_t time);
void phy_sync_ctrl_set_max_resync_offset(bs_time_t max_resync_offset);
voi... | /content/code_sandbox/boards/native/nrf_bsim/common/phy_sync_ctrl.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 130 |
```c
/*
*
*/
#include <stdarg.h>
#include "bs_tracing.h"
/*
* Provide the posix_print_* functions required from all POSIX arch boards
* (This functions provide a lower level, more direct, print mechanism than
* Zephyr's printk or logger and therefore can be relied on even if the kernel
* is down.
*/
#if (CONFI... | /content/code_sandbox/boards/native/nrf_bsim/common/trace_hook.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 647 |
```c
/*
*
*/
#include <stddef.h>
#include <stdbool.h>
#include "bs_cmd_line.h"
#include "bs_dynargs.h"
#include "bs_utils.h"
#include "bs_types.h"
#include "bs_tracing.h"
#include "nsi_tasks.h"
#include "nsi_hws_models_if.h"
#include "NRF_HWLowL.h"
#include "xo_if.h"
#include "bsim_args_runner.h"
/* By default ever... | /content/code_sandbox/boards/native/nrf_bsim/common/phy_sync_ctrl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,858 |
```objective-c
/*
*
*/
/**
* This header exists solely to allow drivers meant for the native_sim board
* to be used directly in the nrf5*_bsim boards.
* Note that such reuse should be done with great care.
*
* The command line arguments parsing logic from native_sim was born as a copy
* of the one from the Bab... | /content/code_sandbox/boards/native/nrf_bsim/common/cmdline.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 227 |
```c
/*
*
*
* Note this run in the runner context, and therefore
* this file should therefore only be built once for all CPUs.
*/
#include "bs_tracing.h"
#include "bs_dump_files.h"
#include "bs_pc_backchannel.h"
#include "nsi_tasks.h"
#include "nsi_main.h"
#include "nsi_hw_scheduler.h"
#include "NRF_HWLowL.h"
#in... | /content/code_sandbox/boards/native/nrf_bsim/common/runner_hooks.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 252 |
```objective-c
/*
*
*/
#ifndef BOARDS_POSIX_BSIM_COMMON_BSIM_ARGS_RUNNER_H
#define BOARDS_POSIX_BSIM_COMMON_BSIM_ARGS_RUNNER_H
#include <stdint.h>
#include "bs_cmd_line.h"
#ifdef __cplusplus
extern "C" {
#endif
void bs_add_extra_dynargs(bs_args_struct_t *args_struct_toadd);
char *bsim_args_get_simid(void);
char *... | /content/code_sandbox/boards/native/nrf_bsim/common/bsim_args_runner.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 190 |
```c
/*
*
*
* Common command line arguments and overall command line argument handling
* for Zephyr Babblesim boards.
*
* Note that this is code runs in the native simulator runner context,
* and not in any embedded CPU context.
* This file should therefore only be built once for all CPUs.
*/
#include <stdint... | /content/code_sandbox/boards/native/nrf_bsim/common/bsim_args_runner.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,235 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <stdint.h>
#include <string.h>
#include "bs_types.h"
#include "bs_tracing.h"
#include "bstests.h"
#include "bs_oswrap.h"
#include "nsi_host_trampolines.h"
/*
* Result of the testcase execution.
* Note that the executable will return the maximum of bst_result and
* {t... | /content/code_sandbox/boards/native/nrf_bsim/common/bstests_entry.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,620 |
```objective-c
/*
*
*/
/**
* This header defines replacements for inline
* ARM Cortex-M CMSIS intrinsics.
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_INSTR_H
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_INSTR_H
/* Implement the following ARM intrinsics as no-op:
* - ARM Data Synchronization Barrier
* - ARM Data Memory ... | /content/code_sandbox/boards/native/nrf_bsim/common/cmsis/cmsis_instr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,210 |
```c
/*
*
*/
#include <stdint.h>
#include "irq_ctrl.h"
#include "posix_core.h"
#include "posix_board_if.h"
#include "board_soc.h"
#include "bs_tracing.h"
/*
* Replacement for ARMs NVIC functions()
*/
void NVIC_SetPendingIRQ(IRQn_Type IRQn)
{
hw_irq_ctrl_raise_im_from_sw(CONFIG_NATIVE_SIMULATOR_MCU_N, IRQn);
}
... | /content/code_sandbox/boards/native/nrf_bsim/common/cmsis/cmsis.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 471 |
```objective-c
/*
*
*/
/**
* This header defines replacements for CMSIS compiler attributes.
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_COMPILER_H
#include <zephyr/toolchain.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __PACKED
#define __PACKED __packed
#endi... | /content/code_sandbox/boards/native/nrf_bsim/common/cmsis/cmsis_compiler.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```objective-c
/*
*
*/
/*
* Replacement for Nordic's nrf soc/nordic/common/soc_secure.h
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_SOC_SECURE_H
#define BOARDS_POSIX_NRF52_BSIM_SOC_SECURE_H
#include <stdint.h>
#include <nrf.h>
#include <hal/nrf_ficr.h>
static inline void soc_secure_read_deviceid(uint32_t deviceid[2])
{... | /content/code_sandbox/boards/native/nrf_bsim/soc/soc_secure.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```objective-c
/*
*
*/
/**
* This header defines replacements for inline
* ARM Cortex-M CMSIS intrinsics.
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_H
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_H
#include <stdint.h>
#include "cmsis_instr.h"
#if defined(CONFIG_SOC_COMPATIBLE_NRF52833)
#include "nrf52833.h"
#endif
#ifd... | /content/code_sandbox/boards/native/nrf_bsim/common/cmsis/cmsis.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 236 |
```objective-c
/*
*
*/
#ifndef BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H
#define BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H
/* We reuse the real SOC's header: */
#include "../soc/nordic/common/pinctrl_soc.h"
#endif /* BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H */
``` | /content/code_sandbox/boards/native/nrf_bsim/soc/pinctrl_soc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```objective-c
/*
*
*/
#ifndef BOARDS_POSIX_NRF_BSIM_SOC_SOC_NRF_COMMON_H
#define BOARDS_POSIX_NRF_BSIM_SOC_SOC_NRF_COMMON_H
/* We reuse the real SOC's header: */
#include "../soc/nordic/common/soc_nrf_common.h"
#endif /* BOARDS_POSIX_NRF_BSIM_SOC_SOC_NRF_COMMON_H */
``` | /content/code_sandbox/boards/native/nrf_bsim/soc/soc_nrf_common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```c
/*
*
*/
#include <stdint.h>
#include <kernel_internal.h>
/*
* Replacement for the nrfx nrfx_coredep_delay_us()
* which busy waits for the given number of microseconds.
*
* This function will replace at *link* time the
* nrfx one which had been marked as weak.
*/
void nrfx_coredep_delay_us(uint32_t time_u... | /content/code_sandbox/boards/native/nrf_bsim/soc/nrfx_coredep.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.