52#if IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_6BIT)
53#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_6BIT
54#elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_8BIT)
55#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_8BIT
56#elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_10BIT)
57#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_10BIT
58#elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_12BIT)
59#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_12BIT
60#elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_14BIT)
61#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_14BIT
62#elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_16BIT)
63#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_16BIT
65#ifndef CONFIG_ENTROPY_SOURCE_ADC_RES
66#define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_10BIT
77#ifdef CONFIG_ENTROPY_SOURCE_ADC_LINE_NUM
78#define CONFIG_ENTROPY_SOURCE_ADC_LINE ADC_LINE(CONFIG_ENTROPY_SOURCE_ADC_LINE_NUM)
80#define CONFIG_ENTROPY_SOURCE_ADC_LINE ADC_LINE(0)
96#if !defined(CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ADC_NOISE) || defined(DOXYGEN)
97#ifndef CONFIG_ENTROPY_SOURCE_ADC_HMIN
98#define CONFIG_ENTROPY_SOURCE_ADC_HMIN (0)
104#ifndef CONFIG_ENTROPY_SOURCE_ADC_HEALTH_TEST
105#define CONFIG_ENTROPY_SOURCE_ADC_HEALTH_TEST 0
109#ifndef CONFIG_ENTROPY_SOURCE_ADC_COND
110#define CONFIG_ENTROPY_SOURCE_ADC_COND 0
117#if !CONFIG_ENTROPY_SOURCE_ADC_HMIN
118#warning The min. provided entropy must be set before using this module
Low-level ADC peripheral driver interface definitions.
static uint32_t entropy_source_adc_entropy_per_sample(void)
Static entropy per sample value for this source [bit/sample * 2^16].
int entropy_source_adc_init(void)
Initialize ADC and test structures, if tests are enabled.
int entropy_source_adc_get(uint8_t *buf, size_t len)
Generates bytes from ADC noise.
#define CONFIG_ENTROPY_SOURCE_ADC_HMIN
ADC estimated entropy per sample [2^16 * bit/sample].
Adds include for missing inttype definitions.