text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```unknown
# Configuration for the partitions in the TF-M Module
if BUILD_WITH_TFM
config TFM_PARTITION_PROTECTED_STORAGE
bool "Secure partition 'Protected Storage'"
depends on TFM_PARTITION_PLATFORM # Specfically TFM_SP_PLATFORM_NV_COUNTER service
depends on TFM_PARTITION_INTERNAL_TRUSTED_STORAGE
depends on TF... | /content/code_sandbox/modules/trusted-firmware-m/Kconfig.tfm.partitions | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 771 |
```unknown
# Configuration for the TF-M Module
rsource "Kconfig.tfm"
rsource "Kconfig.tfm.partitions"
rsource "Kconfig.tfm.crypto_modules"
``` | /content/code_sandbox/modules/trusted-firmware-m/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```cmake
#
#
# This file is the INHERIT equivalent to
# path_to_url
#
# The INHERIT concept was introduced in
# path_to_url
if(${CPU_ARCH} STREQUAL armv7m)
set(TARGET_SWITCH "-march=armv7-m")
elseif(${CPU_ARCH} STREQUAL armv8m_ml)
set(TARGET_SWITCH "-march=armv8-m.main -mcmse")
elseif(${CPU_ARCH} STREQUAL armv8m_b... | /content/code_sandbox/modules/trusted-firmware-m/psa/GNUARM.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 223 |
```cmake
#
#
#
set(PLATFORM_PATH platform/ext/target/nordic_nrf)
include(${PLATFORM_PATH}/common/nrf5340/cpuarch.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/cpuarch.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```cmake
#
#
#
set(NRF_SOC_VARIANT nrf5340 CACHE STRING "nRF SoC Variant")
include(${PLATFORM_PATH}/common/nrf5340/config.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/config.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```cmake
#
#
#
set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR})
set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR})
include(${CMAKE_CURRENT_LIST_DIR}/common/nrf5340/cpuarch.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/ns/cpuarch_ns.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```c
/*
*
*/
#include "platform/include/tfm_platform_system.h"
#include "cmsis.h"
#include "tfm_platform_hal_ioctl.h"
#include "tfm_ioctl_core_api.h"
void tfm_platform_hal_system_reset(void)
{
/* Reset the system */
NVIC_SystemReset();
}
enum tfm_platform_err_t tfm_platform_hal_ioctl(tfm_platform_ioctl_req_t req... | /content/code_sandbox/modules/trusted-firmware-m/nordic/src/tfm_platform_system.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 207 |
```c
/*
*
*/
#include "tfm_hal_defs.h"
#include "tfm_hal_platform_common.h"
enum tfm_hal_status_t tfm_hal_platform_init(void)
{
return tfm_hal_platform_common_init();
}
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/src/tfm_hal_platform.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```cmake
#
#
#
set(PLATFORM_PATH platform/ext/target/nordic_nrf)
include(${PLATFORM_PATH}/common/nrf9120/cpuarch.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9120/cpuarch.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```cmake
#
#
#
set(NRF_SOC_VARIANT nrf91 CACHE STRING "nRF SoC Variant")
include(${PLATFORM_PATH}/common/nrf91/config.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9120/config.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```cmake
#
#
#
set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR})
set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR})
include(${CMAKE_CURRENT_LIST_DIR}/common/nrf9120/cpuarch.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9120/ns/cpuarch_ns.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```cmake
#
#
#
set(PLATFORM_PATH platform/ext/target/nordic_nrf)
include(${PLATFORM_PATH}/common/nrf9160/cpuarch.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9160/cpuarch.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```cmake
#
#
#
set(NRF_SOC_VARIANT nrf91 CACHE STRING "nRF SoC Variant")
include(${PLATFORM_PATH}/common/nrf91/config.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9160/config.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```cmake
#
#
#
set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR})
set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR})
include(${CMAKE_CURRENT_LIST_DIR}/common/nrf9160/cpuarch.cmake)
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9160/ns/cpuarch_ns.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```objective-c
/*
*
*/
#ifndef __RTE_DEVICE_H
#define __RTE_DEVICE_H
#include <zephyr/autoconf.h>
/* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */
#undef ARRAY_SIZE
#include <zephyr/devicetree.h>
#define UART_PIN_INIT(node_id, prop, idx) \
DT_PROP_BY_IDX(node_id, pr... | /content/code_sandbox/modules/trusted-firmware-m/nordic/include/RTE_Device.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 294 |
```unknown
# Configuration for the TF-M Module
config ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
bool
config TFM_BOARD
string
default "nxp/lpcxpresso55s69" if BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS
default "arm/mps2/an521" if BOARD_MPS2_AN521_CPU0_NS
default "arm/mps3/an547" if BOARD_MPS3_AN547
default "stm/b_u585i_iot0... | /content/code_sandbox/modules/trusted-firmware-m/Kconfig.tfm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,052 |
```objective-c
/*
*
*/
#ifndef DEVICE_CFG_H__
#define DEVICE_CFG_H__
#include <zephyr/autoconf.h>
/* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */
#undef ARRAY_SIZE
#include <zephyr/devicetree.h>
#if DOMAIN_NS == 1U
#define TFM_UART uart0
#endif
#if DOMAIN_NS != 1U
... | /content/code_sandbox/modules/trusted-firmware-m/nordic/include/device_cfg.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 165 |
```objective-c
/*
*
*/
#ifndef TFM_PERIPHERALS_CONFIG_H__
#define TFM_PERIPHERALS_CONFIG_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef SECURE_UART1
#define TFM_PERIPHERAL_UARTE1_SECURE 1
#endif
#if TEST_NS_SLIH_IRQ || TEST_NS_FLIH_IRQ
#define TFM_PERIPHERAL_TIMER0_SECURE 1
#endif
#ifdef PSA_API_TEST_IPC
#def... | /content/code_sandbox/modules/trusted-firmware-m/nordic/include/tfm_peripherals_config.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 196 |
```objective-c
/*
*
*/
#ifndef TFM_IOCTL_API_H__
#define TFM_IOCTL_API_H__
#include <limits.h>
#include <stdint.h>
#include <tfm_platform_api.h>
/* Include core IOCTL services */
#include <tfm_ioctl_core_api.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Board specific IOCTL services can be added here */
#ifdef _... | /content/code_sandbox/modules/trusted-firmware-m/nordic/include/tfm_ioctl_api.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```objective-c
/*
*
*/
#ifndef __ARRAY_H__
#define __ARRAY_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <zephyr/sys/util.h>
#ifdef __cplusplus
}
#endif
#endif /* __ARRAY_H__ */
``` | /content/code_sandbox/modules/trusted-firmware-m/nordic/include/util/array.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```objective-c
/*
*
*/
#ifndef TFM_READ_RANGES_H__
#define TFM_READ_RANGES_H__
#include <tfm_ioctl_core_api.h>
#include <nrf.h>
#ifdef NRF_FICR_S_BASE
#define FICR_BASE NRF_FICR_S_BASE
#define FICR_INFO_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, INFO))
#define FICR_INFO_SIZE (size... | /content/code_sandbox/modules/trusted-firmware-m/nordic/include/tfm_read_ranges.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 537 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/arm/cortex_m/fpu.h>
#include <tfm_ns_interface.h>
/**
* @file @brief Zephyr's TF-M NS interface implementation
*
*/
/* Global mutex to be used by the TF-M NS dispatcher, preventing
* the Non-Secu... | /content/code_sandbox/modules/trusted-firmware-m/interface/interface.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 614 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include "tfm_platform_api.h"
#if defined(TFM_PSA_API)
#include "psa_manifest/sid.h"
#endif /* TFM_PSA_API */
/**
*
* @brief Reset the system
*
* This routine resets the processor.
*
* The function requests Trusted-Firmware-M to reset the processor,
* on behalf of the... | /content/code_sandbox/modules/trusted-firmware-m/src/reboot.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 161 |
```c
/*
*
*/
#include <zephyr/sys/printk.h>
int tfm_log_printf(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vprintk(fmt, ap);
va_end(ap);
return 0;
}
``` | /content/code_sandbox/modules/trusted-firmware-m/src/zephyr_tfm_log.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```unknown
config OPENTHREAD
bool "OpenThread Support"
help
This option enables the OpenThread library
if OPENTHREAD
menu "OpenThread stack features"
rsource "Kconfig.features"
endmenu
menu "Thread Network configuration"
rsource "Kconfig.thread"
endmenu
endif # OPENTHREAD
``` | /content/code_sandbox/modules/openthread/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```unknown
# Thread network configuration options
config OPENTHREAD_PANID
int "Default PAN ID"
default 43981
config OPENTHREAD_CHANNEL
int "Default Channel"
default 11
config OPENTHREAD_NETWORK_NAME
string "Default network name"
default "ot_zephyr"
help
Network name for OpenThread
config OPENTHREAD_XPANI... | /content/code_sandbox/modules/openthread/Kconfig.thread | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,551 |
```unknown
# OpenThread stack features selection
choice OPENTHREAD_STACK_VERSION
prompt "OpenThread stack version"
default OPENTHREAD_THREAD_VERSION_1_1
help
This option selects version of Thread stack
config OPENTHREAD_THREAD_VERSION_1_1
bool "Version 1.1"
config OPENTHREAD_THREAD_VERSION_1_2
bool "Version ... | /content/code_sandbox/modules/openthread/Kconfig.features | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,517 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <openthread/platform/memory.h>
#include <stdlib.h>
void *otPlatCAlloc(size_t aNum, size_t aSize)
{
return calloc(aNum, aSize);
}
void otPlatFree(void *aPtr)
{
free(aPtr);
}
``` | /content/code_sandbox/modules/openthread/platform/memory.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/net/openthread.h>
#include <zephyr/sys/printk.h>
#include <zephyr/shell/shell.h>
#include <zephyr/shell/shell_uart.h>
#include <openthread/cli.h>
#include <openthread/instance.h>
#include "platform-zephyr.h"
#define OT_SHELL_BUFFER_SIZE C... | /content/code_sandbox/modules/openthread/platform/shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 551 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <stdarg.h>
#include <stdio.h>
#include <openthread/platform/logging.h>
#include "openthread-core-zephyr-config.h"
#define LOG_MODULE_NAME net_openthread
#define LOG_LEVEL LOG_LEVEL_DBG
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include "... | /content/code_sandbox/modules/openthread/platform/logging.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 293 |
```objective-c
/*
*
*/
/**
* @file
* This file includes Zephyr compile-time configuration constants
* for OpenThread.
*/
#ifndef OPENTHREAD_CORE_ZEPHYR_CONFIG_H_
#define OPENTHREAD_CORE_ZEPHYR_CONFIG_H_
#include <zephyr/devicetree.h>
#include <zephyr/toolchain.h>
/**
* @def OPENTHREAD_CONFIG_PLATFORM_ASS... | /content/code_sandbox/modules/openthread/platform/openthread-core-zephyr-config.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,139 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <openthread/platform/spi-slave.h>
#include "platform-zephyr.h"
/* Spi-slave stubs */
otError otPlatSpiSlaveEnable(
otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback,
otPlatSpiSlaveTransactionProcessCallback aProces... | /content/code_sandbox/modules/openthread/platform/spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 232 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/settings/settings.h>
#include <zephyr/random/random.h>
#include <openthread/platform/settings.h>
LOG_MODULE_REGISTER(net_otPlat_settings, CONFIG_OPENTHREAD_L2_LOG_LEVEL);
#define OT_SETTINGS_ROOT_KEY "ot"
#define OT_SETTINGS_... | /content/code_sandbox/modules/openthread/platform/settings.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,032 |
```c
/*
*
*/
#include <openthread/platform/crypto.h>
#include <psa/crypto.h>
#include <zephyr/sys/__assert.h>
#if !defined(CONFIG_BUILD_WITH_TFM) && defined(CONFIG_OPENTHREAD_CRYPTO_PSA)
#include <zephyr/settings/settings.h>
#endif
#if defined(CONFIG_OPENTHREAD_ECDSA)
#include <string.h>
#include <mbedtls/asn1.h... | /content/code_sandbox/modules/openthread/platform/crypto_psa.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,984 |
```c
/*
*
*/
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/types.h>
#include <zephyr/sys/ring_buffer.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetooth/conn.h>
#include <zep... | /content/code_sandbox/modules/openthread/platform/ble.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,925 |
```objective-c
/*
*
*/
/**
* @file
* @brief
* This file includes the Zephyr platform-specific initializers.
*/
#ifndef PLATFORM_ZEPHYR_H_
#define PLATFORM_ZEPHYR_H_
#include <stdint.h>
#include <openthread/instance.h>
#include <zephyr/net/net_pkt.h>
/**
* This function initializes the alarm service used b... | /content/code_sandbox/modules/openthread/platform/platform-zephyr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 438 |
```c
/*
*
*/
/**
* @file
* @brief
* This file includes the platform-specific initializers.
*/
#include <zephyr/kernel.h>
#include <openthread/instance.h>
#include <openthread/tasklet.h>
#include "platform-zephyr.h"
void otSysInit(int argc, char *argv[])
{
ARG_UNUSED(argc);
ARG_UNUSED(argv);
platformRadi... | /content/code_sandbox/modules/openthread/platform/platform.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 147 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <openthread/platform/diag.h>
#include "platform-zephyr.h"
/**
* Diagnostics mode variables.
*
*/
static bool sDiagMode;
static void *sDiagCallbackContext;
static otPlatDiagOutputCallback sDiagOutputCallback;
static void diag_out... | /content/code_sandbox/modules/openthread/platform/diag.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,659 |
```c
/*
*
*/
#define LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL
#define LOG_MODULE_NAME net_otPlat_uart
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/sys/ring_buffer.h>
#include ... | /content/code_sandbox/modules/openthread/platform/uart.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,566 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/reboot.h>
#include <openthread/instance.h>
#include <openthread/platform/misc.h>
#if defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_RETENTION)
#include <zephyr/retention/bootmode.h>
#elif defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_GPIO)
BUI... | /content/code_sandbox/modules/openthread/platform/misc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 785 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/random/random.h>
#include <zephyr/logging/log.h>
#include <openthread/platform/entropy.h>
LOG_MODULE_REGISTER(net_otPlat_entropy, CONFIG_OPENTHREAD_L2_LOG_LEVEL);
#if !defined(CONFIG_CSPRNG_ENABLED)
#error OpenThread requires an entropy source for a TRNG
#e... | /content/code_sandbox/modules/openthread/platform/entropy.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 184 |
```c
/*
*
*/
#define LOG_MODULE_NAME net_openthread_alarm
#define LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <string.h>
#include <inttypes.h>
#include <openthread/platform/alarm-milli.h>
#include <openthread/platf... | /content/code_sandbox/modules/openthread/platform/alarm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 812 |
```objective-c
/*
*
*/
/**
* @file
* @brief CMSIS interface file
*
* This header contains the interface to the ARM CMSIS Core headers.
*/
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_M_H_
#define ZEPHYR_MODULES_CMSIS_CMSIS_M_H_
#if defined(CONFIG_CMSIS_M_CHECK_DEVICE_DEFINES) && CONFIG_CMSIS_M_CHECK_DEVICE_DEFINES == 1... | /content/code_sandbox/modules/cmsis/cmsis_core_m.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 607 |
```objective-c
/*
*
*/
/**
* @file
* @brief CMSIS extension
*
* This header provides CMSIS-style register access functions and macros that
* are not currently available in the CMSIS.
*
* NOTE: cmsis.h includes this file; do not manually include this file.
*/
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_A_R_EXT_H_
#de... | /content/code_sandbox/modules/cmsis/cmsis_core_a_r_ext.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 613 |
```objective-c
/*
*
*/
/**
* @file
* @brief CMSIS interface file
*
* This header contains the interface to the ARM CMSIS Core headers.
*/
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_
#define ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_
#include <soc.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __CR_REV
#define __CR_... | /content/code_sandbox/modules/cmsis/cmsis_core_a_r.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 348 |
```c
/*
*
*/
/**
* @file
* This file implements the OpenThread platform abstraction
* for radio communication.
*
*/
#define LOG_MODULE_NAME net_otPlat_radio
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_OPENTHREAD_L2_LOG_LEVEL);
#include <stdbool.h>
#include <stddef.h>
#incl... | /content/code_sandbox/modules/openthread/platform/radio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,620 |
```unknown
config ZEPHYR_CMSIS_MODULE
bool
config HAS_CMSIS_CORE
bool
select HAS_CMSIS_CORE_A if CPU_AARCH32_CORTEX_A
select HAS_CMSIS_CORE_R if CPU_AARCH32_CORTEX_R
select HAS_CMSIS_CORE_M if CPU_CORTEX_M
if HAS_CMSIS_CORE
config HAS_CMSIS_CORE_A
bool
config HAS_CMSIS_CORE_R
bool
config HAS_CMSIS_CORE_M
... | /content/code_sandbox/modules/cmsis/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 149 |
```objective-c
/*
*/
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_H_
#define ZEPHYR_MODULES_CMSIS_CMSIS_H_
#if defined(CONFIG_CPU_CORTEX_M)
#include "cmsis_core_m.h"
#elif defined(CONFIG_CPU_AARCH32_CORTEX_A) || defined(CONFIG_CPU_AARCH32_CORTEX_R)
#include "cmsis_core_a_r.h"
#endif
#endif /* ZEPHYR_MODULES_CMSIS_CMSIS_H_ */... | /content/code_sandbox/modules/cmsis/cmsis_core.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 96 |
```objective-c
/*
*
*/
/**
* @file
* @brief CMSIS interface file
*
* This header populates the default values required to configure the
* ARM CMSIS Core headers.
*/
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_
#define ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_
#include <zephyr/arch/arm/cortex_m/nvic.h>
#i... | /content/code_sandbox/modules/cmsis/cmsis_core_m_defaults.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 995 |
```unknown
menu "nrf-regtool options"
depends on SOC_SERIES_NRF54HX
config NRF_REGTOOL_GENERATE_UICR
bool "Generate UICR"
help
Generate a UICR hex based on devicetree contents using nrf-regtool.
CPU domains that require UICR allocation aren't bootable without it
being programmed alongside the firmware.
c... | /content/code_sandbox/modules/hal_nordic/Kconfig.nrf_regtool | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 300 |
```unknown
config ZEPHYR_HAL_NORDIC_MODULE
bool
config HAS_NORDIC_DRIVERS
bool
menu "Nordic drivers"
depends on HAS_NORDIC_DRIVERS
choice NRF_802154_SOURCE
prompt "Source of the IEEE 802.15.4 radio driver"
config NRF_802154_SOURCE_HAL_NORDIC
bool "Open source"
endchoice
menuconfig NRF_802154_RADIO_DRIVER
b... | /content/code_sandbox/modules/hal_nordic/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,035 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_COMMON_H__
#define NRFX_CONFIG_COMMON_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/** @brief Symbol specifying major version of the nrfx API to be used. */
#ifndef NRFX_CONFIG_API_VER_MAJOR
#define ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 169 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF54H20_PPR_H__
#define NRFX_CONFIG_NRF54H20_PPR_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0. Maximum: 3.
*/
#ifndef NRFX_DE... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_ppr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,253 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF54L15_ENGA_APPLICATION_H__
#define NRFX_CONFIG_NRF54L15_ENGA_APPLICATION_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0. Maxi... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54l15_enga_application.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,029 |
```objective-c
/*
*
*/
#ifndef NRFX_GLUE_H__
#define NRFX_GLUE_H__
#if defined(CONFIG_CPU_CORTEX_M)
/* Workaround for missing __ICACHE_PRESENT and __DCACHE_PRESENT symbols in MDK
* SoC definitions. To be removed when this is fixed.
*/
#include <cmsis_core_m_defaults.h>
#endif
#include <zephyr/sys/__assert.h>
#in... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_glue.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,538 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52833_H__
#define NRFX_CONFIG_NRF52833_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52833.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,701 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52820_H__
#define NRFX_CONFIG_NRF52820_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52820.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,739 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF5340_APPLICATION_H__
#define NRFX_CONFIG_NRF5340_APPLICATION_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
#define NRF_CLOCK NRF_PERIPH(NRF_CLOCK)
#define NRF_COMP NRF_PERIPH(NRF_COM... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf5340_application.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,197 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_H__
#define NRFX_CONFIG_H__
#include <zephyr/devicetree.h>
#include <zephyr/sys/util_macro.h>
/*
* These are mappings of Kconfig options enabling nrfx drivers and particular
* peripheral instances to the corresponding symbols used inside of nrfx.
* Please note that onl... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,060 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF54H20_FLPR_H__
#define NRFX_CONFIG_NRF54H20_FLPR_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0. Maximum: 3.
*/
#ifndef NRFX... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_flpr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,886 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52805_H__
#define NRFX_CONFIG_NRF52805_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52805.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,903 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52811_H__
#define NRFX_CONFIG_NRF52811_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52811.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,727 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52832_H__
#define NRFX_CONFIG_NRF52832_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52832.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,655 |
```unknown
menu "nrfx drivers logging"
depends on LOG
config NRFX_ADC_LOG
bool "ADC driver logging"
depends on NRFX_ADC
config NRFX_CLOCK_LOG
bool "CLOCK driver logging"
depends on NRFX_CLOCK
config NRFX_COMP_LOG
bool "COMP driver logging"
depends on NRFX_COMP
config NRFX_DPPI_LOG
bool "DPPI driver logging... | /content/code_sandbox/modules/hal_nordic/nrfx/Kconfig.logging | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 784 |
```objective-c
/*
*
*/
#ifndef NRFX_LOG_H__
#define NRFX_LOG_H__
#include <zephyr/logging/log.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NRFX_MODULE_PREFIX _CONCAT(NRFX_, NRFX_LOG_MODULE)
/*
* The following macros from nrfx_config control the log messages coming from
* a given module:
* - NRFX_<module>... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_log.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 985 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF54H20_APPLICATION_H__
#define NRFX_CONFIG_NRF54H20_APPLICATION_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0. Maximum: 7.
*/... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_application.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,646 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF54H20_RADIOCORE_H__
#define NRFX_CONFIG_NRF54H20_RADIOCORE_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0. Maximum: 7.
*/
#if... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_radiocore.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,020 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF51_H__
#define NRFX_CONFIG_NRF51_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 3
*/
#ifndef NRFX_DEFAULT_IRQ_PRIOR... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf51.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,531 |
```c
/*
*
*/
#include <nrfx.h>
#include <zephyr/kernel.h>
#include <soc/nrfx_coredep.h>
void nrfx_isr(const void *irq_handler)
{
((nrfx_irq_handler_t)irq_handler)();
}
void nrfx_busy_wait(uint32_t usec_to_wait)
{
if (IS_ENABLED(CONFIG_SYS_CLOCK_EXISTS)) {
k_busy_wait(usec_to_wait);
} else {
nrfx_coredep_del... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_glue.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 391 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF91_H__
#define NRFX_CONFIG_NRF91_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
#define NRF_CLOCK NRF_PERIPH(NRF_CLOCK)
#define NRF_DPPIC NRF_PERIPH(NRF_DPPIC)
#define NRF_EGU0 ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf91.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,962 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52840_H__
#define NRFX_CONFIG_NRF52840_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52840.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,880 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF52810_H__
#define NRFX_CONFIG_NRF52810_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0 Maximum: 7
*/
#ifndef NRFX_DEFAULT_IRQ... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52810.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,598 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF5340_NETWORK_H__
#define NRFX_CONFIG_NRF5340_NETWORK_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/*
* The MDK provides macros for accessing the peripheral register structures
* by using their s... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf5340_network.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,946 |
```unknown
config HAS_NRFX
bool
menu "nrfx drivers"
depends on HAS_NRFX
rsource "Kconfig.logging"
config NRFX_ADC
bool "ADC driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_ADC))
config NRFX_CLOCK
bool "CLOCK driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_CLOCK))
config NRFX_CLOCK_LFXO_T... | /content/code_sandbox/modules/hal_nordic/nrfx/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,066 |
```objective-c
/*
*
*/
#ifndef NRFS_CONFIG_H
#define NRFS_CONFIG_H
#ifdef CONFIG_NRFS_TEMP_SERVICE_ENABLED
#define NRFS_TEMP_SERVICE_ENABLED
#endif
#ifdef CONFIG_NRFS_MRAM_SERVICE_ENABLED
#define NRFS_MRAM_SERVICE_ENABLED
#endif
#ifdef CONFIG_NRFS_RESET_SERVICE_ENABLED
#define NRFS_RESET_SERVICE_ENABLED
#endif
... | /content/code_sandbox/modules/hal_nordic/nrfs/nrfs_config.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 190 |
```unknown
config HAS_NRFS
bool
menu "nRF Services"
depends on HAS_NRFS
config NRFS_HAS_CLOCK_SERVICE
bool
config NRFS_HAS_CONST_LATENCY_SERVICE
bool
config NRFS_HAS_DIAG_SERVICE
bool
config NRFS_HAS_DVFS_SERVICE
bool
config NRFS_HAS_MRAM_SERVICE
bool
config NRFS_HAS_PMIC_SERVICE
bool
config NRFS_HAS_R... | /content/code_sandbox/modules/hal_nordic/nrfs/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 606 |
```objective-c
/*
*
*/
#ifndef NRFS_BACKEND_IPC_SERVICE_H
#define NRFS_BACKEND_IPC_SERVICE_H
#include <stdint.h>
#include <nrfs_common.h>
#include <zephyr/ipc/ipc_service.h>
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern "C" {
#endif
struct __packed ipc_data_packet {
uint16_t channel_id;
uint16_t size;
u... | /content/code_sandbox/modules/hal_nordic/nrfs/backends/nrfs_backend_ipc_service.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 578 |
```c
/*
*
*/
#include "nrfs_backend_ipc_service.h"
#include <internal/nrfs_backend.h>
#include <internal/nrfs_dispatcher.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/reboot.h>
#include <zephyr/sys_clock.h>
#include <zephyr/logging/log.h>
#include <zephyr/init.h>
LOG_MODULE_REGISTER(NRFS_BACKEND, CONFIG_NRFS... | /content/code_sandbox/modules/hal_nordic/nrfs/backends/nrfs_backend_ipc_service.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,575 |
```unknown
menu "NRFS backend settings"
module = NRFS_BACKEND
module-str = NRFS backend
source "subsys/logging/Kconfig.template.log_config"
config NRFS_BACKEND_IPC_SERVICE_INIT_PRIO
int "Initialization priority for NRFS IPC backend"
default 51
help
This should be higher than priority of other drivers/subsyste... | /content/code_sandbox/modules/hal_nordic/nrfs/backends/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 151 |
```c
/*
*
*/
#include "ld_dvfs_handler.h"
#include "ld_dvfs.h"
#include <hal/nrf_hsfll.h>
#include <nrfs_dvfs.h>
#include <nrfs_backend_ipc_service.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(LD_DVFS_LIB, CONFIG_LOCAL_DOMAIN_DVFS_LIB_LOG_LEVEL);
static K_SEM_DEFINE(dvfs_servic... | /content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs_handler.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,683 |
```objective-c
/*
*
*/
#ifndef LD_DVFS_H
#define LD_DVFS_H
#include <dvfs_oppoint.h>
#include <nrfs_common.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Function for initializing the Dynamic Voltage and Frequency Scaling service
* from LD perspective..
*
*/
void ld_dvfs_init(void);
/**
* @bri... | /content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 338 |
```objective-c
/*
*
*/
#ifndef LD_DVFS_HANDLER_H
#define LD_DVFS_HANDLER_H
#include <dvfs_oppoint.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Function to request LD frequency change.
*
* @param frequency requested frequency setting from enum dvfs_frequency_setting.
* @return EBUS... | /content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs_handler.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 276 |
```c
/*
*
*/
#include "ld_dvfs.h"
#include <hal/nrf_hsfll.h>
#include <hal/nrf_ramc.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LD_DVFS_LIB, CONFIG_LOCAL_DOMAIN_DVFS_LIB_LOG_LEVEL);
#define TRANSIENT_ZBB_ABB_SLOT 0
#define CURR_TARG_ABB_SLOT 1
#define LD_ABB_CLR_ZBB 0
/* TODO... | /content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,290 |
```unknown
#
#
#
menu "Local domain DVFS library"
module = LOCAL_DOMAIN_DVFS_LIB
module-str = Local domain DVFS library
source "subsys/logging/Kconfig.template.log_config"
config NRFS_LOCAL_DOMAIN_DVFS_TEST
bool "Local domain DVFS test"
help
Disable hw registers interaction for testing.
config NRFS_LOCAL_DOMAI... | /content/code_sandbox/modules/hal_nordic/nrfs/dvfs/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 285 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include "nrf_802154_assert_zephyr.h"
#if defined(CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL)
__weak void nrf_802154_assert_handler(void)
{
#ifdef CONFIG_USERSPACE
/* User threads aren't allowed to induce kernel panics; generate
* an oops instead.
*/
if (k_is_user_context... | /content/code_sandbox/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 121 |
```c
/*
*
*/
#include <platform/nrf_802154_irq.h>
#include <zephyr/irq.h>
#include <nrfx.h>
void nrf_802154_irq_init(uint32_t irqn, int32_t prio, nrf_802154_isr_t isr)
{
uint32_t flags = 0U;
if (prio < 0) {
prio = 0;
flags |= IRQ_ZERO_LATENCY;
}
irq_connect_dynamic(irqn, prio, isr, NULL, flags);
}
void ... | /content/code_sandbox/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_irq_zephyr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 292 |
```c
/*
*
*/
#include <nrf_802154_config.h>
#include <platform/nrf_802154_clock.h>
#include <stddef.h>
#include <compiler_abstraction.h>
#include <zephyr/kernel.h>
#if defined(CONFIG_CLOCK_CONTROL_NRF)
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#elif !defi... | /content/code_sandbox/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 760 |
```c
/*
*
*/
/**
* @file
* This file implements the thermometer abstraction that uses Zephyr sensor
* API for the die thermometer.
*
*/
#include "platform/nrf_802154_temperature.h"
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <z... | /content/code_sandbox/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_temperature_zephyr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 475 |
```c
/*
*
*/
#include "nrf_802154_spinel_response_notifier.h"
#include <assert.h>
#include <string.h>
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include "../spinel_base/spinel.h"
#include "nrf_802154_spinel_log.h"
#define LOG_LEVEL LOG_LEVEL_INFO
#define LOG_MODULE_NAME spinel_ipc_backend_rsp_nt... | /content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_response_notifier.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 801 |
```c
/*
*
*/
#include <zephyr/init.h>
#include "nrf_802154.h"
#include "nrf_802154_serialization.h"
static int serialization_init(void)
{
/* On NET core we don't use Zephyr's shim layer so we have to call inits manually */
nrf_802154_init();
nrf_802154_serialization_init();
return 0;
}
BUILD_ASSERT(CONFIG_N... | /content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_init_net.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 148 |
```c
/*
*
*/
#include "nrf_802154_serialization_crit_sect.h"
#ifndef TEST
#include <zephyr/irq.h>
#endif
void nrf_802154_serialization_crit_sect_enter(uint32_t *p_critical_section)
{
#ifndef TEST
*p_critical_section = irq_lock();
#else
(void)p_critical_section;
#endif
}
void nrf_802154_serialization_crit_sect_e... | /content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_serialization_crit_sect.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 115 |
```objective-c
/*
*
*/
#ifndef NRFX_CONFIG_NRF54L15_ENGA_FLPR_H__
#define NRFX_CONFIG_NRF54L15_ENGA_FLPR_H__
#ifndef NRFX_CONFIG_H__
#error "This file should not be included directly. Include nrfx_config.h instead."
#endif
/**
* @brief NRFX_DEFAULT_IRQ_PRIORITY
*
* Integer value. Minimum: 0. Maximum: 3.
*/
#i... | /content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54l15_enga_flpr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,033 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/ipc/ipc_service.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
#include "nrf_802154.h"
#include "nrf_802154_spinel_backend_callouts.h"
#include "nrf_802154_serialization_error.h"
#include "../../spinel_base/spinel.h"
#include "../../src/include... | /content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,197 |
```c
/*
*
*/
#include <stdint.h>
#include <stddef.h>
#include <zephyr/kernel.h>
void nrf_802154_spinel_log(const char *p_fmt, ...)
{
va_list args;
va_start(args, p_fmt);
vprintk(p_fmt, args);
va_end(args);
}
void nrf_802154_spinel_buff_log(const uint8_t *p_buff, size_t buff_len)
{
for (size_t i = 0; i < buf... | /content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_log.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```c
/*
*
*/
#include <platform/nrf_802154_temperature.h>
#include <zephyr/drivers/entropy.h>
static uint32_t state;
static uint32_t next(void)
{
state ^= (state<<13);
state ^= (state>>17);
return state ^= (state<<5);
}
void nrf_802154_random_init(void)
{
const struct device *const dev = DEVICE_DT_GET(DT_CHO... | /content/code_sandbox/modules/hal_nordic/nrf_802154/radio/platform/nrf_802154_random_zephyr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 182 |
```objective-c
/*
*
*/
#ifndef NRF_802154_ASSERT_ZEPHYR_H__
#define NRF_802154_ASSERT_ZEPHYR_H__
#if defined(CONFIG_NRF_802154_ASSERT_ZEPHYR)
#include <zephyr/sys/__assert.h>
#define NRF_802154_ASSERT(condition) __ASSERT_NO_MSG(condition)
#elif defined(CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL)
extern void nrf_80... | /content/code_sandbox/modules/hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 165 |
```cmake
function(nrf_regtool_generate_hex_from_dts peripheral)
string(TOLOWER "${peripheral}.hex" generated_hex_name)
string(TOLOWER "${peripheral}_merged.hex" merged_hex_name)
# Prepare common argument sub-lists.
string(REPEAT "-v;" ${CONFIG_NRF_REGTOOL_VERBOSITY} verbosity)
list(TRANSFORM CACHED_DTS_ROOT... | /content/code_sandbox/modules/hal_nordic/nrf-regtool/nrf-regtoolConfig.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 466 |
```cmake
find_program(NRF_REGTOOL nrf-regtool)
if(NRF_REGTOOL)
execute_process(
COMMAND ${NRF_REGTOOL} --version
OUTPUT_VARIABLE version
RESULT_VARIABLE result
)
if(result EQUAL 0 AND version MATCHES "version ([0-9]+[.][0-9]+[.][0-9]+)")
set(PACKAGE_VERSION ${CMAKE_MATCH_1})
if(PACKAGE_VERS... | /content/code_sandbox/modules/hal_nordic/nrf-regtool/nrf-regtoolConfigVersion.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 237 |
```unknown
#
config AMBIQ_HAL
bool "Ambiq HAL drivers support"
depends on SOC_SERIES_APOLLO4X || SOC_SERIES_APOLLO3X
help
Use the Ambiq HAL
if AMBIQ_HAL
config AMBIQ_HAL_USE_GPIO
bool
help
Use the GPIO driver from Ambiq HAL
config AMBIQ_HAL_USE_STIMER
bool
help
Use the STIMER driver from Ambiq HAL
... | /content/code_sandbox/modules/hal_ambiq/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 293 |
```unknown
#
#
#
# file is empty and kept as a place holder if/when Kconfig is needed
``` | /content/code_sandbox/modules/hal_nxp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.