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 |
|---|---|---|---|---|---|---|---|---|
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_FPGA_ZYNQMP_H
#define ZEPHYR_DRIVERS_FPGA_ZYNQMP_H
#define PCAP_STATUS (*(volatile uint32_t *) (0xFFCA3010))
#define PCAP_RESET (*(volatile uint32_t *) (0xFFCA300C))
#define PCAP_CTRL (*(volatile uint32_t *) (0xFFCA3008))
#define P... | /content/code_sandbox/drivers/fpga/fpga_zynqmp.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 955 |
```c
/*
*
*/
#define DT_DRV_COMPAT lattice_ice40_fpga
#include <stdbool.h>
#include <stdio.h>
#include <zephyr/device.h>
#include <zephyr/drivers/fpga.h>
#include <zephyr/drivers/gpio.h>
#ifdef CONFIG_PINCTRL
#include <zephyr/drivers/pinctrl.h>
#endif
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#inc... | /content/code_sandbox/drivers/fpga/fpga_ice40.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,282 |
```c
/*
*
*/
#include <errno.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/fpga.h>
#include "fpga_eos_s3.h"
void eos_s3_fpga_enable_clk(void)
{
CRU->C16_CLK_GATE = C16_CLK_GATE_PATH_0_ON;
CRU->C21_CLK_GATE = C21_CLK_GATE_PATH_0_ON;
CRU->C09_CLK_GATE = C09_CLK_GATE_PATH_1_ON | C09_CLK... | /content/code_sandbox/drivers/fpga/fpga_eos_s3.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,078 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mpfs_mailbox
#include <stdio.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/drivers/fpga.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/sys_io.h>
#incl... | /content/code_sandbox/drivers/fpga/fpga_mpfs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,242 |
```objective-c
/*
*
*
*/
#ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_ATAES132A_PRIV_H_
#define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_ATAES132A_PRIV_H_
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
/* Configuration Read Only Registers */
#define ATAES_SERIALNUM_REG 0xF000
#define ATAES_LO... | /content/code_sandbox/drivers/crypto/crypto_ataes132a_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,419 |
```unknown
# STM32 Cryptographic Accelerator configuration options
menuconfig CRYPTO_STM32
bool "STM32 Cryptographic Accelerator driver"
default y
depends on DT_HAS_ST_STM32_AES_ENABLED || DT_HAS_ST_STM32_CRYP_ENABLED
select USE_STM32_HAL_CRYP
select USE_STM32_HAL_CRYP_EX
help
Enable STM32 HAL-based Cryptogr... | /content/code_sandbox/drivers/crypto/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_it8xxx2_sha
#include <zephyr/kernel.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/sys/byteorder.h>
#include <chip_chipregs.h>
#include <errno.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(sha_it8xxx2, CONFIG_CRYPTO_LOG_LEVEL);
BUILD_ASSERT(DT_NUM_INST_STATUS... | /content/code_sandbox/drivers/crypto/crypto_it8xxx2_sha.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,294 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/crypto/crypto.h>
#define DT_DRV_COMPAT atmel_ataes132a
#include "crypto_ataes132a_priv.h"
#define D10D24S 11
#define MAX... | /content/code_sandbox/drivers/crypto/crypto_ataes132a.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,966 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/sys... | /content/code_sandbox/drivers/crypto/crypto_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,795 |
```c
/*
*
*/
/**
* @file Shim layer for TinyCrypt, making it complaint to crypto API.
*/
#include <tinycrypt/cbc_mode.h>
#include <tinycrypt/ctr_mode.h>
#include <tinycrypt/ccm_mode.h>
#include <tinycrypt/constants.h>
#include <tinycrypt/utils.h>
#include <string.h>
#include <zephyr/crypto/crypto.h>
#include "cry... | /content/code_sandbox/drivers/crypto/crypto_tc_shim.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,432 |
```c
/*
*
*/
/**
* @file Shim layer for mbedTLS, crypto API compliant.
*/
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <errno.h>
#include <zephyr/crypto/crypto.h>
#if !defined(CONFIG_MBEDTLS_CFG_FILE)
#include "mbedtls/config.h"
#else
#include CONFIG_MBEDTLS_CFG_FILE
#endif /* CONFIG_MBEDTLS_CFG... | /content/code_sandbox/drivers/crypto/crypto_mtls_shim.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,583 |
```unknown
config CRYPTO_INTEL_SHA
bool "Intel SHA driver"
default y
depends on DT_HAS_INTEL_ADSP_SHA_ENABLED
help
Enable Intel SHA driver. To be used on ACE and CAVS platforms.
``` | /content/code_sandbox/drivers/crypto/Kconfig.intel | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_mcux_dcp
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mcux_dcp, CONFIG_CRYPTO_LOG_LEVEL);
#include <errno.h>
#include <string.h>
#include <zephyr/kernel.h>
#include <zephyr/cache.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/sys/util.h>
#include <fsl_dcp.h>
#... | /content/code_sandbox/drivers/crypto/crypto_mcux_dcp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,417 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_INTEL_SHA_PRIV_H_
#define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_INTEL_SHA_PRIV_H_
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include "crypto_intel_sha_registers.h"
#define SHA_HASH_DATA_BLOCK_LEN (64)
#define SHA_API_MAX_FRAG_LEN (64 * 1024 - 256)
#d... | /content/code_sandbox/drivers/crypto/crypto_intel_sha_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 614 |
```unknown
config CRYPTO_IT8XXX2_SHA
bool "ITE IT8XXX2 SHA driver"
default y
depends on DT_HAS_ITE_IT8XXX2_SHA_ENABLED
select SOC_IT8XXX2_SHA256_HW_ACCELERATE
help
Enable ITE IT8XXX2 SHA driver.
This driver supports SHA256 hardware accelerator of the it8xxx2 series.
It requires 256 + 256 bytes in the RAM... | /content/code_sandbox/drivers/crypto/Kconfig.it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 219 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <errno.h>
#include <zephyr/crypto/crypto.h>
#include "crypto_intel_sha_priv.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(SHA);
#define DT_DRV_COMPAT intel_adsp_sha
static struct sha_session sha_sessions[SHA_MAX_SESSIONS];
static i... | /content/code_sandbox/drivers/crypto/crypto_intel_sha.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,497 |
```unknown
# Atmel ATAES132A configuration options
menuconfig CRYPTO_ATAES132A
bool "Atmel ATAES132A 32k AES Serial EEPROM support"
default y
depends on DT_HAS_ATMEL_ATAES132A_ENABLED
depends on I2C
help
Enable Atmel ATAES132A 32k AES Serial EEPROM support.
if CRYPTO_ATAES132A
choice
prompt "ATAES132A I2C ... | /content/code_sandbox/drivers/crypto/Kconfig.ataes132a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 195 |
```objective-c
/*
*
*
*/
#ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_STM32_PRIV_H_
#define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_STM32_PRIV_H_
/* Maximum supported key length is 256 bits */
#define CRYPTO_STM32_AES_MAX_KEY_LEN (256 / 8)
struct crypto_stm32_config {
const struct reset_dt_spec reset;
struct stm32_pclken pclken;
... | /content/code_sandbox/drivers/crypto/crypto_stm32_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 250 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/irq.h>
#include <DA1469xAB.h>
#include <da1469x_config.h>
#include <da1469x_otp.h>
#include <system_DA1469x.h>
#include <da1469x_pd.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/pm/device.h>
... | /content/code_sandbox/drivers/crypto/crypto_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,608 |
```unknown
# Smartbond Cryptographic Accelerator configuration options
menuconfig CRYPTO_SMARTBOND
bool "Smartbond Cryptographic Accelerator driver"
depends on DT_HAS_RENESAS_SMARTBOND_CRYPTO_ENABLED
default y
help
Enable Smartbond Cryptographic Accelerator driver.
config CRYPTO_ASYNC
bool "Support ASYNC cry... | /content/code_sandbox/drivers/crypto/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_sha
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(sha_npcx, CONFIG_CRYPTO_LOG_LEVEL);
#include "soc_ncl.h"
#define NPCX_HASH_CAPS_SUPPORT (CAP_SEPARATE_IO_BUFS | CAP_SYNC_OPS)
#d... | /content/code_sandbox/drivers/crypto/crypto_npcx_sha.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,710 |
```unknown
config CRYPTO_MCHP_XEC_SYMCR
bool "Microchip XEC symmetric crypto (AES/Hash) driver"
default y
depends on DT_HAS_MICROCHIP_XEC_SYMCR_ENABLED
help
Enable Microchip XEC symmetic crypto (AES/Hash) driver.
Symmetric crypto provides a single hardware interface
to AES and hash engines.
``` | /content/code_sandbox/drivers/crypto/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```unknown
# NPCX SHA driver configuration options
config CRYPTO_NPCX_SHA
bool "NPCX SHA driver"
default y
depends on DT_HAS_NUVOTON_NPCX_SHA_ENABLED
help
Enable NPCX SHA driver.
``` | /content/code_sandbox/drivers/crypto/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_it8xxx2_sha_v2
#include <zephyr/kernel.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/sys/byteorder.h>
#include <chip_chipregs.h>
#include <errno.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(sha_it8xxx2, CONFIG_CRYPTO_LOG_LEVEL);
BUILD_ASSERT(DT_NUM_INST_STA... | /content/code_sandbox/drivers/crypto/crypto_it8xxx2_sha_v2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,121 |
```c
/*
*
*/
#include <string.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/logging/log.h>
#include <hal/nrf_ecb.h>
#define DT_DRV_COMPAT nordic_nrf_ecb
#define ECB_AES_KEY_SIZE 16
#define ECB_AES_BLOCK_SIZE 16
LOG_MODULE_REGISTER(crypto_nrf_ecb, CONFIG_CRYPTO_LOG_LEVEL);
struct ecb_data {
uint8_t key... | /content/code_sandbox/drivers/crypto/crypto_nrf_ecb.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 963 |
```objective-c
/*
*
*/
/**
* @file
* @brief tinycrypt driver context info
*
* The file defines the structure which is used to store per session context
* by the driver. Placed in common location so that crypto applications
* can allocate memory for the required number of sessions, to free driver
* from dynami... | /content/code_sandbox/drivers/crypto/crypto_tc_shim_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 150 |
```unknown
# NRF AES ECB configuration options
config CRYPTO_NRF_ECB
bool "nRF AES electronic codebook mode encryption"
default y
depends on DT_HAS_NORDIC_NRF_ECB_ENABLED
# Bluetooth controller uses the ECB peripheral directly
# (see subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ecb.c),
# hence this driver ... | /content/code_sandbox/drivers/crypto/Kconfig.nrf_ecb | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 111 |
```unknown
config CRYPTO_MCUX_DCP
bool "NXP Data Co-Processor (DCP) driver"
default y
depends on HAS_MCUX_CACHE
depends on DT_HAS_NXP_MCUX_DCP_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
select CACHE_MANAGEMENT if DCACHE
help
Enable NXP Data Co-Processor (DCP) driver.
config CRYPTO_MCUX... | /content/code_sandbox/drivers/crypto/Kconfig.mcux_dcp | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```unknown
# Crypto configuration options
#
# CRYPTO options
#
menuconfig CRYPTO
bool "Crypto drivers"
if CRYPTO
config CRYPTO_INIT_PRIORITY
int "Crypto devices init priority"
default 90
help
Crypto devices initialization priority.
module = CRYPTO
module-str = CRYPTO
source "subsys/logging/Kconfig.template.... | /content/code_sandbox/drivers/crypto/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 565 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_INTEL_SHA_REGISTERS_PRIV_H_
#define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_INTEL_SHA_REGISTERS_PRIV_H_
#include <stdio.h>
union PIBCS {
uint32_t full;
struct {
uint32_t rsvd2 : 3;
uint32_t bscie : 1;
uint32_t rsvd4 : 1;
uint32_t rsvd5 : 1;
uint32_t teie... | /content/code_sandbox/drivers/crypto/crypto_intel_sha_registers.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 836 |
```unknown
# Atmel SAM TRNG configuration
config ENTROPY_SAM_RNG
bool "Atmel SAM MCU Family True Random Number Generator (TRNG) Driver"
default y
depends on DT_HAS_ATMEL_SAM_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
Enable True Random Number Generator (TRNG) driver for Atmel SAM MCUs.
``` | /content/code_sandbox/drivers/entropy/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
# mcux entropy generator driver configuration
config ENTROPY_MCUX_RNGA
bool "MCUX RNGA driver"
default y
depends on DT_HAS_NXP_KINETIS_RNGA_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the random number generator accelerator (RNGA)
driver based on the MCUX RNGA driver.
config ENTR... | /content/code_sandbox/drivers/entropy/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 500 |
```c
/*
*
*/
#include <zephyr/drivers/entropy.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_entropy_get_entropy(const struct device *dev,
uint8_t *buffer,
uint16_t len)
{
K_OOPS(K_SYSCALL_DRIVER_ENTROPY(dev, get_entropy));
K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, len));... | /content/code_sandbox/drivers/entropy/entropy_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```c
/*
*
*
* Pseudo-random entropy generator for the ARCH_POSIX architecture:
* Following the principle of reproducibility of the native_posix board
* this entropy device will always generate the same random sequence when
* initialized with the same seed
*
* This entropy source should only be used for testing.... | /content/code_sandbox/drivers/entropy/fake_entropy_native_posix.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 750 |
```unknown
# Organisation (CSIRO) ABN 41 687 119 230.
config ENTROPY_BT_HCI
bool "Bluetooth HCI RNG driver"
default y
depends on DT_HAS_ZEPHYR_BT_HCI_ENTROPY_ENABLED
depends on BT_HCI_HOST
select ENTROPY_HAS_DRIVER
help
Enable Random Number Generator from a Bluetooth HCI device.
# Don't use use Bluetooth HCI... | /content/code_sandbox/drivers/entropy/Kconfig.bt_hci | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```unknown
# LiteX PRBS entropy generator driver configuration
config ENTROPY_LITEX_RNG
bool "PRBS RNG driver"
default y
depends on DT_HAS_LITEX_PRBS_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the RNG module, which is an entropy number
generator, based on Pseudo-Random Binary Sequences (PRB... | /content/code_sandbox/drivers/entropy/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```unknown
# gecko entropy generator driver configuration
config ENTROPY_GECKO_TRNG
bool "GECKO TRNG driver"
default y
depends on DT_HAS_SILABS_GECKO_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
select CRYPTO_ACC_GECKO_TRNG if SOC_SERIES_EFR32BG22
select CRYPTO_ACC_GECKO_TRNG if SOC_SERIES_EFR32BG27
help
This opt... | /content/code_sandbox/drivers/entropy/Kconfig.gecko | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 178 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_symcr
#include <errno.h>
#include <string.h>
#include <zephyr/kernel.h>
#include <zephyr/crypto/crypto.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/... | /content/code_sandbox/drivers/crypto/crypto_mchp_xec_symcr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,368 |
```unknown
# TI CC13xx / CC26xx entropy driver configuration
config ENTROPY_CC13XX_CC26XX_RNG
bool "TI SimpleLink CC13xx / CC26xx True Random Number Generator (TRNG)"
default y
depends on DT_HAS_TI_CC13XX_CC26XX_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
select RING_BUFFER
help
This option enables the driver for... | /content/code_sandbox/drivers/entropy/Kconfig.cc13xx_cc26xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 406 |
```unknown
# STM32 entropy generator driver configuration
menuconfig ENTROPY_STM32_RNG
bool "STM32 RNG driver"
default y
depends on DT_HAS_ST_STM32_RNG_ENABLED
select ENTROPY_HAS_DRIVER
select USE_STM32_LL_RNG
help
This option enables the RNG processor, which is a entropy number
generator, based on a cont... | /content/code_sandbox/drivers/entropy/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 559 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_caam
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/random/random.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include "fsl_caam.h"
struct mcux_entropy_config {
CAAM_Type *base;
};
static caam_job_ring_interface_t jrif0 __att... | /content/code_sandbox/drivers/entropy/entropy_mcux_caam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 661 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_trng
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/drivers/clock_control/atmel_sam_pmc.h>
#include <errno.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <string.h>
struct trng_sam_dev_cfg {
Trng *regs;... | /content/code_sandbox/drivers/entropy/entropy_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,115 |
```unknown
config ENTROPY_MAX32_TRNG
bool "ADI MAX32XXX MCU Family True Random Number Generator (TRNG) Driver"
default y
depends on DT_HAS_ADI_MAX32_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
Enable True Random Number Generator (TRNG) driver for ADI MAX32XXX MCUs.
``` | /content/code_sandbox/drivers/entropy/Kconfig.max32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```unknown
# esp32 entropy generator driver configuration
config ENTROPY_ESP32_RNG
bool "ESP32 entropy number generator driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the entropy number generator for ESP32 SoCs.
With Wi-Fi and Bluetooth ... | /content/code_sandbox/drivers/entropy/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 102 |
```objective-c
/*
*
*/
#ifndef DRIVERS_ENTROPY_FAKE_ENTROPY_NATIVE_BOTTOM_H
#define DRIVERS_ENTROPY_FAKE_ENTROPY_NATIVE_BOTTOM_H
#ifdef __cplusplus
extern "C" {
#endif
void entropy_native_seed(unsigned int seed, bool seed_random);
#ifdef __cplusplus
}
#endif
#endif /* DRIVERS_ENTROPY_FAKE_ENTROPY_NATIVE_BOTTOM_... | /content/code_sandbox/drivers/entropy/fake_entropy_native_bottom.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_drbg
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/pm/device.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(entropy_npcx_drbg, CONFIG_ENTROPY_LOG_LEVEL);
#include "soc_ncl.h"
/* Reseed after 100 number ge... | /content/code_sandbox/drivers/entropy/entropy_npcx_drbg.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,062 |
```c
/*
*
*
* Bottom/Linux side of the pseudo-random entropy generator for
* ARCH_POSIX architecture
*/
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#include <stdbool.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/random.h>
#include "nsi_tracing.h"
void entropy_native_seed(unsigne... | /content/code_sandbox/drivers/entropy/fake_entropy_native_bottom.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 206 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_rnga
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/random/random.h>
#include <zephyr/init.h>
#include "fsl_rnga.h"
static uint8_t entropy_mcux_rnga_get_uint8(void)
{
uint32_t random;
uint8_t output = 0U;
int i;
RNGA_SetMode(RNG,... | /content/code_sandbox/drivers/entropy/entropy_mcux_rnga.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 529 |
```c
/*
*
*/
#define DT_DRV_COMPAT openisa_rv32m1_trng
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/random/random.h>
#include <zephyr/init.h>
#include "fsl_trng.h"
struct rv32m1_entropy_config {
TRNG_Type *base;
};
static int entropy_rv32m1_trng_get_entropy(const struct device... | /content/code_sandbox/drivers/entropy/entropy_rv32m1_trng.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 391 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_trng
#include <string.h>
#include <soc/rtc.h>
#include <soc/wdev_reg.h>
#include <esp_system.h>
#include <soc.h>
#include <esp_cpu.h>
#include <zephyr/drivers/entropy.h>
static inline uint32_t entropy_esp32_get_u32(void)
{
/* The PRNG which implements WDEV_RANDOM... | /content/code_sandbox/drivers/entropy/entropy_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 473 |
```unknown
# PSA Crypto Random source configuration options
config ENTROPY_PSA_CRYPTO_RNG
bool "PSA Crypto Random source Entropy driver"
depends on DT_HAS_ZEPHYR_PSA_CRYPTO_RNG_ENABLED
select ENTROPY_HAS_DRIVER
default y
help
Enable the PSA Crypto source Entropy driver.
``` | /content/code_sandbox/drivers/entropy/Kconfig.psa_crypto | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
*
*/
#include <zephyr/drivers/entropy.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <zephyr/irq.h>
#include <zephyr/sys/barrier.h>
#include <DA1469xAB.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(sma... | /content/code_sandbox/drivers/entropy/entropy_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,037 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_trng
#include <zephyr/drivers/entropy.h>
#include <string.h>
#include "soc.h"
#include "em_cmu.h"
#if defined(CONFIG_CRYPTO_ACC_GECKO_TRNG)
/*
* Select the correct Crypto ACC FIFO memory base address.
*
* Problem: Gecko SDK doesn't provide macros that check i... | /content/code_sandbox/drivers/entropy/entropy_gecko_trng.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,146 |
```unknown
# nRF5 entropy generator driver configuration
config ENTROPY_NRF_FORCE_ALT
bool
depends on SOC_COMPATIBLE_NRF
help
This option can be enabled to force an alternative implementation
of the entropy driver.
menuconfig ENTROPY_NRF5_RNG
bool "nRF5 RNG driver"
default y
depends on !ENTROPY_NRF_FORCE... | /content/code_sandbox/drivers/entropy/Kconfig.nrf5 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 542 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_trng
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/random/random.h>
#include <zephyr/init.h>
#include "fsl_trng.h"
struct mcux_entropy_config {
TRNG_Type *base;
};
static int entropy_mcux_trng_get_entropy(const struct device *dev,
... | /content/code_sandbox/drivers/entropy/entropy_mcux_trng.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 332 |
```unknown
# Smartbond TRNG configuration
config ENTROPY_SMARTBOND_TRNG
bool "Renesas Smartbond MCU Family True Random Number Generator (TRNG) Driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
Enable True Random Number Generator (TRNG) driver for Renesas Smartb... | /content/code_sandbox/drivers/entropy/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 426 |
```unknown
# RV32M1 entropy generator driver configuration
config ENTROPY_RV32M1_TRNG
bool "RV32M1 TRNG driver"
default y
depends on DT_HAS_OPENISA_RV32M1_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the true random number generator (TRNG)
driver based on the RV32M1 TRNG driver.
# Don't... | /content/code_sandbox/drivers/entropy/Kconfig.rv32m1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```unknown
# NPCX DRBG driver configuration options
menuconfig ENTROPY_NPCX_DRBG
bool "NPCX DRBG driver"
default y
depends on DT_HAS_NUVOTON_NPCX_DRBG_ENABLED && SOC_NPCX9MFP
select ENTROPY_HAS_DRIVER
help
This option enables the deterministic random bit generator (DRBG)
driver for NPCX family of processor... | /content/code_sandbox/drivers/entropy/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 481 |
```c
/*
*
*/
#include <string.h>
#include <zephyr/sys/util.h>
#define DT_DRV_COMPAT adi_max32_trng
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/drivers/clock_control/adi_max32_clock_control.h>
#include <wrap_max32_trng.h>
struct max32_trng_config {
const struct device *clock;
... | /content/code_sandbox/drivers/entropy/entropy_max32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 617 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_rng
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/random/random.h>
#include <zephyr/init.h>
#include "fsl_rng.h"
struct mcux_entropy_config {
RNG_Type *base;
};
static int entropy_mcux_rng_get_entropy(const struct device *dev,
ui... | /content/code_sandbox/drivers/entropy/entropy_mcux_rng.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 277 |
```unknown
# Entropy generator driver configuration options
menuconfig ENTROPY_GENERATOR
bool "Entropy drivers"
help
Include entropy drivers in system config.
if ENTROPY_GENERATOR
module = ENTROPY
module-str = entropy
source "subsys/logging/Kconfig.template.log_config"
config ENTROPY_INIT_PRIORITY
int "Entro... | /content/code_sandbox/drivers/entropy/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 313 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_trng
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/irq.h>
#include <zephyr/pm/policy.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/ring_buffer.h>
#include <zephyr/sys/sys_io.h>
#include <driver... | /content/code_sandbox/drivers/entropy/entropy_cc13xx_cc26xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,548 |
```c
/*
*
*/
#define DT_DRV_COMPAT neorv32_trng
#include <zephyr/device.h>
#include <zephyr/drivers/syscon.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/sys_io.h>
#include <soc.h>
LOG_MODULE_REGISTER(neorv32_trng, CONFIG_ENTROPY_LOG_LEVEL... | /content/code_sandbox/drivers/entropy/entropy_neorv32_trng.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,071 |
```c
/*
*
*/
#define DT_DRV_COMPAT telink_b91_trng
#include <trng.h>
#include <zephyr/drivers/entropy.h>
#include <string.h>
/* API implementation: driver initialization */
static int entropy_b91_trng_init(const struct device *dev)
{
ARG_UNUSED(dev);
trng_init();
return 0;
}
/* API implementation: get_entro... | /content/code_sandbox/drivers/entropy/entropy_b91_trng.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 370 |
```c
/*
*
*/
#include <zephyr/drivers/entropy.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/sys/util.h>
#include <soc.h>
#include <hal/nrf_rng.h>
#include <zephyr/irq.h>
#define DT_DRV_COMPAT nordic_nrf_rng
#define IRQN DT_INST_IRQN(0)
#define IRQ_PRIO DT_INST_IRQ(0, priority)
/*
... | /content/code_sandbox/drivers/entropy/entropy_nrf5.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,560 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_psa_crypto_rng
#include <zephyr/drivers/entropy.h>
#include <psa/crypto.h>
/* API implementation: PSA Crypto initialization */
static int entropy_psa_crypto_rng_init(const struct device *dev)
{
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
ARG_UNUSED(dev);
stat... | /content/code_sandbox/drivers/entropy/entropy_psa_crypto.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 270 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_semailbox
#include <zephyr/drivers/entropy.h>
#include <soc.h>
#include "em_cmu.h"
#include "sl_se_manager.h"
#include "sl_se_manager_entropy.h"
static int entropy_gecko_se_get_entropy(const struct device *dev,
uint8_t *buffer,
uint16_t length)
{
ARG... | /content/code_sandbox/drivers/entropy/entropy_gecko_se.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 321 |
```c
/*
* Organisation (CSIRO) ABN 41 687 119 230.
*
*/
#define DT_DRV_COMPAT zephyr_bt_hci_entropy
#include <zephyr/drivers/entropy.h>
#include <zephyr/bluetooth/hci.h>
#include <string.h>
static int entropy_bt_init(const struct device *dev)
{
/* Nothing to do */
return 0;
}
static int entropy_bt_get_entropy(... | /content/code_sandbox/drivers/entropy/entropy_bt_hci.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 243 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_prbs
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <errno.h>
#include <zephyr/init.h>
#include <soc.h>
#include <string.h>
#include <zephyr/kernel.h>
#define PRBS_STATUS DT_INST_REG_ADDR(0)
#define PRBS_WIDTH DT_INST_REG_SIZE(0)
static in... | /content/code_sandbox/drivers/entropy/entropy_litex.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 242 |
```unknown
config FAKE_ENTROPY_NATIVE_POSIX
bool "Native posix entropy driver"
default y
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_RNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the test random number generator for the
native_posix board (ARCH_POSIX). This is based on the host random() API.
N... | /content/code_sandbox/drivers/entropy/Kconfig.native_posix | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 120 |
```unknown
# NEORV32 TRNG configuration
config ENTROPY_NEORV32_TRNG
bool "NEORV32 TRNG"
default y
depends on DT_HAS_NEORV32_TRNG_ENABLED
depends on SYSCON
select ENTROPY_HAS_DRIVER
help
This option enables the True Random Number Generator (TRNG) driver for
the NEORV32.
``` | /content/code_sandbox/drivers/entropy/Kconfig.neorv32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```unknown
# Telink B91 GPIO configuration options
config ENTROPY_TELINK_B91_TRNG
bool "Telink B91 Entropy driver"
default y
depends on DT_HAS_TELINK_B91_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
Enable the B91 Entropy driver.
``` | /content/code_sandbox/drivers/entropy/Kconfig.b91 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
config REGULATOR_DA1469X
bool "DA1469X regulators driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_REGULATOR_ENABLED
help
Enable support for the Smartbond DA1469x regulators.
config REGULATOR_DA1469X_INIT_PRIORITY
int "Renesas DA1469x regulators driver init priority"
default 20
depends on RE... | /content/code_sandbox/drivers/regulator/Kconfig.da1469x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 108 |
```unknown
config REGULATOR_NPM6001
bool "nPM6001 PMIC regulator driver"
default y
depends on DT_HAS_NORDIC_NPM6001_REGULATOR_ENABLED
select I2C
select MFD
help
Enable the Nordic nPM6001 PMIC regulator driver
config REGULATOR_NPM6001_INIT_PRIORITY
int "nPM6001 regulator driver init priority"
default 86
de... | /content/code_sandbox/drivers/regulator/Kconfig.npm6001 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 114 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_rng
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/entropy.h>
#include <zephyr/random/random.h>
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <errno.h>
#include <soc.h>
#include <zephyr/pm/p... | /content/code_sandbox/drivers/entropy/entropy_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,871 |
```unknown
config REGULATOR_FIXED
bool "GPIO-controlled regulators"
default y
depends on DT_HAS_REGULATOR_FIXED_ENABLED
depends on GPIO
help
Enable the driver for GPIO-controlled regulators
if REGULATOR_FIXED
config REGULATOR_FIXED_INIT_PRIORITY
int "Init priority"
default 75
help
Device driver initial... | /content/code_sandbox/drivers/regulator/Kconfig.fixed | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm1300_regulator
#include <errno.h>
#include <string.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/drivers/mfd/npm1300.h>
#include <zephyr/dt-bindings/regulator/npm1300.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/sys/... | /content/code_sandbox/drivers/regulator/regulator_npm1300.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,862 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm6001_regulator
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/dt-bindings/regulator/npm6001.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/sys/util.h>
/* nPM6001 voltage ... | /content/code_sandbox/drivers/regulator/regulator_npm6001.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,944 |
```unknown
config REGULATOR_MAX20335
bool "MAX20335 PMIC regulator driver"
default y
depends on DT_HAS_MAXIM_MAX20335_REGULATOR_ENABLED
select I2C
select MFD
help
Enable the Maxim MAX20335 PMIC regulator driver
if REGULATOR_MAX20335
config REGULATOR_MAXIM_MAX20335_COMMON_INIT_PRIORITY
int "MAX20335 regulat... | /content/code_sandbox/drivers/regulator/Kconfig.max20335 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 187 |
```unknown
config REGULATOR_GPIO
bool "GPIO-controlled regulators"
default y
depends on DT_HAS_REGULATOR_GPIO_ENABLED
select GPIO
help
Enable the driver for GPIO-controlled regulators
if REGULATOR_GPIO
config REGULATOR_GPIO_INIT_PRIORITY
int "Init priority"
default 75
help
Device driver initialization ... | /content/code_sandbox/drivers/regulator/Kconfig.gpio | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```c
/*
*/
#define DT_DRV_COMPAT nxp_pca9420
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/drivers/regulator/pca9420.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/sys/util.h>
/** Register memory map. See datasheet for... | /content/code_sandbox/drivers/regulator/regulator_pca9420.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,583 |
```c
/*
*/
#define DT_DRV_COMPAT regulator_fixed
#include <stdint.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(regulator_fixed, CONFIG_REGULATOR_LOG_LEVEL);
struct regulator_fixed_config {
struct regulator_common_config common;
str... | /content/code_sandbox/drivers/regulator/regulator_fixed.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 697 |
```c
/*
*/
#define DT_DRV_COMPAT zephyr_fake_regulator
#include <zephyr/devicetree.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/drivers/regulator/fake.h>
#include <zephyr/fff.h>
#include <zephyr/toolchain.h>
/* regulator */
struct regulator_fake_config {
struct regulator_common_config common;
bool i... | /content/code_sandbox/drivers/regulator/regulator_fake.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 891 |
```c
/*
*/
#define DT_DRV_COMPAT maxim_max20335_regulator
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/dt-bindings/regulator/max20335.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/linear_range.h>
#define MAX20335_BUCK1_CFG 0x0DU
#define MAX20335_BUCK1_VSET ... | /content/code_sandbox/drivers/regulator/regulator_max20335.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,274 |
```c
/*
*/
#define DT_DRV_COMPAT cirrus_cp9314
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/sys_clock.h>
#include <zephyr/sys... | /content/code_sandbox/drivers/regulator/regulator_cp9314.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,072 |
```c
/*
*/
#define DT_DRV_COMPAT regulator_gpio
#include <stdint.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(regulator_gpio, CONFIG_REGULATOR_LOG_LEVEL);
struct regulator_gpio_config {
struct regulator_common_config common;
const... | /content/code_sandbox/drivers/regulator/regulator_gpio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,662 |
```unknown
config REGULATOR_FAKE
bool "Fake regulator driver"
default y
depends on DT_HAS_ZEPHYR_FAKE_REGULATOR_ENABLED
help
Enable support for the FFF-based fake regulator driver.
if REGULATOR_FAKE
config REGULATOR_FAKE_COMMON_INIT_PRIORITY
int "Fake regulator driver init priority (common part)"
default 75... | /content/code_sandbox/drivers/regulator/Kconfig.fake | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 138 |
```c
/*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/regulator.h>
static void regulator_delay(uint32_t delay_us)
{
if (delay_us > 0U) {
k_sleep(K_USEC(delay_us));
}
}
void regulator_common_data_init(const struct device *dev)
{
struct regulator_common_data *data = dev->data;
#ifdef CONFIG_REGULATOR_T... | /content/code_sandbox/drivers/regulator/regulator_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,819 |
```unknown
config REGULATOR_NXP_VREF
bool "NXP VREF peripheral driver"
default y
depends on DT_HAS_NXP_VREF_ENABLED
help
Enable the NXP VREF driver
config REGULATOR_NXP_VREF_INIT_PRIORITY
int "NXP VREF peripheral driver init priority"
default 45
depends on DT_HAS_NXP_VREF_ENABLED
help
Init priority for ... | /content/code_sandbox/drivers/regulator/Kconfig.nxp_vref | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```unknown
config REGULATOR_NPM1100
bool "nPM1100 PMIC regulator driver"
default y
depends on DT_HAS_NORDIC_NPM1100_ENABLED
help
Enable the Nordic nPM1100 PMIC regulator driver
config REGULATOR_NPM1100_INIT_PRIORITY
int "nPM1100 regulator driver init priority"
default KERNEL_INIT_PRIORITY_DEVICE
depends on ... | /content/code_sandbox/drivers/regulator/Kconfig.npm1100 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 105 |
```unknown
config REGULATOR_CP9314
bool "CP9314 Switched Cap Converter regulator driver"
default y
depends on DT_HAS_CIRRUS_CP9314_ENABLED
help
Enable the Cirrus Logic CP9314 Switched Cap Converter
regulator driver
config REGULATOR_CP9314_INIT_PRIORITY
int "CP9314 regulator driver init priority"
default K... | /content/code_sandbox/drivers/regulator/Kconfig.cp9314 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```unknown
config REGULATOR_AXP192
bool "X-Power AXP192 PMIC regulator driver"
default y
depends on DT_HAS_X_POWERS_AXP192_REGULATOR_ENABLED
depends on DT_HAS_X_POWERS_AXP192_ENABLED
select I2C
select MFD
help
Enable the AXP PMIC regulator driver
if REGULATOR_AXP192
config REGULATOR_AXP192_INIT_PRIORITY
i... | /content/code_sandbox/drivers/regulator/Kconfig.axp192 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 133 |
```c
/*
*
*/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/toolchain.h>
static int strtomicro(char *inp, char units, int32_t *val)
{
size_t len, start, end;
int32_t mult, decdiv = 1;
l... | /content/code_sandbox/drivers/regulator/regulator_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,200 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm1100
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/dt-bindings/regulator/npm1100.h>
#include <zephyr/toolchain.h>
struct regulator_npm1100_pconfig {
struct gpio_dt_spec iset;
};
struct regulator_npm1100_config... | /content/code_sandbox/drivers/regulator/regulator_npm1100.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 931 |
```unknown
config REGULATOR_ADP5360
bool "ADP5360 PMIC regulator driver"
default y
depends on DT_HAS_ADI_ADP5360_REGULATOR_ENABLED
select I2C
help
Enable the Analog Devices ADP5360 PMIC regulator driver
config REGULATOR_ADP5360_INIT_PRIORITY
int "ADP5360 regulator driver init priority"
default 76
depends o... | /content/code_sandbox/drivers/regulator/Kconfig.adp5360 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 111 |
```c
/*
*/
#define DT_DRV_COMPAT x_powers_axp192_regulator
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/sys/util.h>
#include <zephyr/dt-bindings/regulator/axp192.h>
#include <zephyr/logging/l... | /content/code_sandbox/drivers/regulator/regulator_axp192.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,568 |
```c
/*
*/
#define DT_DRV_COMPAT renesas_smartbond_regulator
#include <stdint.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/pm/pm.h>
#include <zephyr/pm/device.h>
#include <DA1469xAB.h>
#include <zephyr/devicetree.h>
LOG_MODULE_REGIST... | /content/code_sandbox/drivers/regulator/regulator_da1469x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,664 |
```unknown
menuconfig REGULATOR
bool "Regulator drivers"
help
Include drivers for current/voltage regulators in system config
if REGULATOR
config REGULATOR_THREAD_SAFE_REFCNT
bool "Thread-safe reference counting"
depends on MULTITHREADING
default y
help
When enabled, regulator reference counting is threa... | /content/code_sandbox/drivers/regulator/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 290 |
```unknown
config REGULATOR_PCA9420
bool "NXP PCA9420 PMIC regulator driver"
default y
depends on DT_HAS_NXP_PCA9420_ENABLED
select I2C
help
Enable the NXP PCA9420 PMIC regulator driver
if REGULATOR_PCA9420
config REGULATOR_PCA9420_COMMON_INIT_PRIORITY
int "NXP PCA9420 regulator driver init priority (common... | /content/code_sandbox/drivers/regulator/Kconfig.pca9420 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 187 |
```c
/*
*/
#define DT_DRV_COMPAT raspberrypi_core_supply_regulator
#include <zephyr/devicetree.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/dt-bindings/regulator/rpi_pico.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/toolchain.h>
#include <hardware/regs/vreg_and_chip_reset.h>
#include <hardwa... | /content/code_sandbox/drivers/regulator/regulator_rpi_pico.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.