49 #if IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_6BIT)
50 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_6BIT
51 #elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_8BIT)
52 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_8BIT
53 #elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_10BIT)
54 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_10BIT
55 #elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_12BIT)
56 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_12BIT
57 #elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_14BIT)
58 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_14BIT
59 #elif IS_ACTIVE(CONFIG_ENTROPY_SOURCE_ADC_RES_16BIT)
60 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_16BIT
62 #ifndef CONFIG_ENTROPY_SOURCE_ADC_RES
63 #define CONFIG_ENTROPY_SOURCE_ADC_RES ADC_RES_10BIT
74 #ifdef CONFIG_ENTROPY_SOURCE_ADC_LINE_NUM
75 #define CONFIG_ENTROPY_SOURCE_ADC_LINE ADC_LINE(CONFIG_ENTROPY_SOURCE_ADC_LINE_NUM)
77 #define CONFIG_ENTROPY_SOURCE_ADC_LINE ADC_LINE(0)
93 #if !defined(CONFIG_KCONFIG_USEMODULE_ENTROPY_SOURCE_ADC_NOISE) || defined(DOXYGEN)
94 #ifndef CONFIG_ENTROPY_SOURCE_ADC_HMIN
95 #define CONFIG_ENTROPY_SOURCE_ADC_HMIN (0)
101 #ifndef CONFIG_ENTROPY_SOURCE_ADC_HEALTH_TEST
102 #define CONFIG_ENTROPY_SOURCE_ADC_HEALTH_TEST 0
106 #ifndef CONFIG_ENTROPY_SOURCE_ADC_COND
107 #define CONFIG_ENTROPY_SOURCE_ADC_COND 0
114 #if !CONFIG_ENTROPY_SOURCE_ADC_HMIN
115 #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.