diff --git a/boards/airfy-beacon/Makefile.features b/boards/airfy-beacon/Makefile.features index badcfdd52d..1437a6005d 100644 --- a/boards/airfy-beacon/Makefile.features +++ b/boards/airfy-beacon/Makefile.features @@ -2,7 +2,7 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/airfy-beacon/include/periph_conf.h b/boards/airfy-beacon/include/periph_conf.h index aa12c7bf8c..479cd69ee1 100644 --- a/boards/airfy-beacon/include/periph_conf.h +++ b/boards/airfy-beacon/include/periph_conf.h @@ -98,13 +98,6 @@ #define RTT_PRESCALER (3275U) /* run with 10 Hz */ /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name SPI configuration * @{ diff --git a/boards/arduino-due/Makefile.features b/boards/arduino-due/Makefile.features index 9d14e25013..1cfb851304 100644 --- a/boards/arduino-due/Makefile.features +++ b/boards/arduino-due/Makefile.features @@ -1,8 +1,8 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_pwm -FEATURES_PROVIDED += periph_random FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/arduino-due/include/periph_conf.h b/boards/arduino-due/include/periph_conf.h index ccc6594591..9fedd9275a 100644 --- a/boards/arduino-due/include/periph_conf.h +++ b/boards/arduino-due/include/periph_conf.h @@ -86,13 +86,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0])) /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name SPI configuration * @{ diff --git a/boards/cc2538dk/Makefile.features b/boards/cc2538dk/Makefile.features index da753d5f62..2e1ecb1459 100644 --- a/boards/cc2538dk/Makefile.features +++ b/boards/cc2538dk/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/cc2538dk/include/periph_conf.h b/boards/cc2538dk/include/periph_conf.h index 6443d6393b..92410436b9 100644 --- a/boards/cc2538dk/include/periph_conf.h +++ b/boards/cc2538dk/include/periph_conf.h @@ -105,13 +105,6 @@ extern "C" { #define UART_1_CTS_PIN GPIO_PB0 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF 1 -/** @} */ - /** * @name GPIO configuration * @{ diff --git a/boards/frdm-k64f/Makefile.features b/boards/frdm-k64f/Makefile.features index 5af6731c7d..f5ed3b3ea7 100644 --- a/boards/frdm-k64f/Makefile.features +++ b/boards/frdm-k64f/Makefile.features @@ -2,9 +2,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm -FEATURES_PROVIDED += periph_random FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi diff --git a/boards/frdm-k64f/include/periph_conf.h b/boards/frdm-k64f/include/periph_conf.h index ea4ee444c2..10269e0053 100644 --- a/boards/frdm-k64f/include/periph_conf.h +++ b/boards/frdm-k64f/include/periph_conf.h @@ -280,10 +280,9 @@ extern "C" * @name Random Number Generator configuration * @{ */ -#define RANDOM_NUMOF (1U) -#define KINETIS_RNGA RNG -#define RANDOM_CLKEN() (SIM->SCGC6 |= (1 << 9)) -#define RANDOM_CLKDIS() (SIM->SCGC6 &= ~(1 << 9)) +#define KINETIS_RNGA RNG +#define HWRNG_CLKEN() (SIM->SCGC6 |= (1 << 9)) +#define HWRNG_CLKDIS() (SIM->SCGC6 &= ~(1 << 9)) /** @} */ #ifdef __cplusplus diff --git a/boards/msbiot/Makefile.features b/boards/msbiot/Makefile.features index 5eed74d7db..b94933ef52 100644 --- a/boards/msbiot/Makefile.features +++ b/boards/msbiot/Makefile.features @@ -2,9 +2,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_dac FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm -FEATURES_PROVIDED += periph_random FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/msbiot/include/periph_conf.h b/boards/msbiot/include/periph_conf.h index dfb14c7bae..ff58f214ad 100644 --- a/boards/msbiot/include/periph_conf.h +++ b/boards/msbiot/include/periph_conf.h @@ -141,13 +141,6 @@ extern "C" { #define DAC_0_CH1_PIN 5 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name UART configuration * @{ diff --git a/boards/mulle/Makefile.features b/boards/mulle/Makefile.features index 3b88dfa032..b02397ab89 100644 --- a/boards/mulle/Makefile.features +++ b/boards/mulle/Makefile.features @@ -2,9 +2,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm -FEATURES_PROVIDED += periph_random FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi diff --git a/boards/mulle/include/periph_conf.h b/boards/mulle/include/periph_conf.h index 09628b626d..4f11c05e1a 100644 --- a/boards/mulle/include/periph_conf.h +++ b/boards/mulle/include/periph_conf.h @@ -505,9 +505,8 @@ extern "C" * @name Random Number Generator configuration * @{ */ -#define RANDOM_NUMOF (1U) -#define RANDOM_CLKEN() (BITBAND_REG32(SIM->SCGC3, SIM_SCGC3_RNGA_SHIFT) = 1) -#define RANDOM_CLKDIS() (BITBAND_REG32(SIM->SCGC3, SIM_SCGC3_RNGA_SHIFT) = 0) +#define HWRNG_CLKEN() (BITBAND_REG32(SIM->SCGC3, SIM_SCGC3_RNGA_SHIFT) = 1) +#define HWRNG_CLKDIS() (BITBAND_REG32(SIM->SCGC3, SIM_SCGC3_RNGA_SHIFT) = 0) /** @} */ #ifdef __cplusplus diff --git a/boards/native/Makefile.features b/boards/native/Makefile.features index 3779afa382..49cf688d30 100644 --- a/boards/native/Makefile.features +++ b/boards/native/Makefile.features @@ -1,6 +1,6 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_timer diff --git a/boards/nrf51dongle/Makefile.features b/boards/nrf51dongle/Makefile.features index 7a11395375..5915575f81 100644 --- a/boards/nrf51dongle/Makefile.features +++ b/boards/nrf51dongle/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/nrf51dongle/include/periph_conf.h b/boards/nrf51dongle/include/periph_conf.h index 8ea27056a0..a17159b782 100644 --- a/boards/nrf51dongle/include/periph_conf.h +++ b/boards/nrf51dongle/include/periph_conf.h @@ -99,13 +99,6 @@ extern "C" { #define UART_PIN_CTS 10 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name Radio device configuration * diff --git a/boards/nrf52dk/Makefile.features b/boards/nrf52dk/Makefile.features index b36e90cbc2..5939ff5f80 100644 --- a/boards/nrf52dk/Makefile.features +++ b/boards/nrf52dk/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/nrf52dk/include/periph_conf.h b/boards/nrf52dk/include/periph_conf.h index 3ccf661087..e4382f3f58 100644 --- a/boards/nrf52dk/include/periph_conf.h +++ b/boards/nrf52dk/include/periph_conf.h @@ -74,13 +74,6 @@ extern "C" { #define UART_PIN_TX 6 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nrf6310/Makefile.features b/boards/nrf6310/Makefile.features index 654dd547c2..581bb716ea 100644 --- a/boards/nrf6310/Makefile.features +++ b/boards/nrf6310/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/nrf6310/include/periph_conf.h b/boards/nrf6310/include/periph_conf.h index 4027e15744..df2242b236 100644 --- a/boards/nrf6310/include/periph_conf.h +++ b/boards/nrf6310/include/periph_conf.h @@ -105,13 +105,6 @@ extern "C" { #define UART_PIN_CTS 18 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name Radio device configuration * diff --git a/boards/openmote-cc2538/Makefile.features b/boards/openmote-cc2538/Makefile.features index a2ea2f2af4..5410d183d0 100644 --- a/boards/openmote-cc2538/Makefile.features +++ b/boards/openmote-cc2538/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/openmote-cc2538/include/periph_conf.h b/boards/openmote-cc2538/include/periph_conf.h index afb097a9e2..53394bd075 100644 --- a/boards/openmote-cc2538/include/periph_conf.h +++ b/boards/openmote-cc2538/include/periph_conf.h @@ -95,13 +95,6 @@ #define UART_0_RX_PIN GPIO_PA0 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF 1 -/** @} */ - /** * @name GPIO configuration * @{ diff --git a/boards/pba-d-01-kw2x/Makefile.features b/boards/pba-d-01-kw2x/Makefile.features index 9986b3a362..f27e7c2889 100644 --- a/boards/pba-d-01-kw2x/Makefile.features +++ b/boards/pba-d-01-kw2x/Makefile.features @@ -2,9 +2,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm -FEATURES_PROVIDED += periph_random FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi diff --git a/boards/pba-d-01-kw2x/include/periph_conf.h b/boards/pba-d-01-kw2x/include/periph_conf.h index c52c253f59..0ba5cef4be 100644 --- a/boards/pba-d-01-kw2x/include/periph_conf.h +++ b/boards/pba-d-01-kw2x/include/periph_conf.h @@ -325,10 +325,9 @@ extern "C" * @name Random Number Generator configuration * @{ */ -#define RANDOM_NUMOF (1U) -#define KINETIS_RNGA RNG -#define RANDOM_CLKEN() (SIM->SCGC6 |= (1 << 9)) -#define RANDOM_CLKDIS() (SIM->SCGC6 &= ~(1 << 9)) +#define KINETIS_RNGA RNG +#define HWRNG_CLKEN() (SIM->SCGC6 |= (1 << 9)) +#define HWRNG_CLKDIS() (SIM->SCGC6 &= ~(1 << 9)) /** @} */ diff --git a/boards/pca10000/Makefile.features b/boards/pca10000/Makefile.features index 679b12a7c9..180a48cb91 100644 --- a/boards/pca10000/Makefile.features +++ b/boards/pca10000/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/pca10000/include/periph_conf.h b/boards/pca10000/include/periph_conf.h index 55346679bb..3a8900cfdb 100644 --- a/boards/pca10000/include/periph_conf.h +++ b/boards/pca10000/include/periph_conf.h @@ -101,13 +101,6 @@ extern "C" { #define UART_PIN_CTS 10 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name Radio device configuration * diff --git a/boards/pca10005/Makefile.features b/boards/pca10005/Makefile.features index 15d011d617..ddafde2ae2 100644 --- a/boards/pca10005/Makefile.features +++ b/boards/pca10005/Makefile.features @@ -2,7 +2,7 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/pca10005/include/periph_conf.h b/boards/pca10005/include/periph_conf.h index 3547733357..6fa476e157 100644 --- a/boards/pca10005/include/periph_conf.h +++ b/boards/pca10005/include/periph_conf.h @@ -98,13 +98,6 @@ extern "C" { #define RTT_PRESCALER (3275U) /* run with 10 Hz */ /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name SPI configuration * @{ diff --git a/boards/remote/Makefile.features b/boards/remote/Makefile.features index a2ea2f2af4..5410d183d0 100644 --- a/boards/remote/Makefile.features +++ b/boards/remote/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/remote/include/periph_conf.h b/boards/remote/include/periph_conf.h index 04d0baf32f..b0c17eaeb9 100644 --- a/boards/remote/include/periph_conf.h +++ b/boards/remote/include/periph_conf.h @@ -98,13 +98,6 @@ #define UART_0_RX_PIN GPIO_PA0 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF 1 -/** @} */ - /** * @name GPIO configuration * @{ diff --git a/boards/saml21-xpro/include/periph_conf.h b/boards/saml21-xpro/include/periph_conf.h index 0f94f00091..f95d071d47 100644 --- a/boards/saml21-xpro/include/periph_conf.h +++ b/boards/saml21-xpro/include/periph_conf.h @@ -82,13 +82,6 @@ extern "C" { #define I2C_NUMOF (0) /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (0U) -/** @} */ - /** * @name RTC configuration * @{ diff --git a/boards/samr21-xpro/include/periph_conf.h b/boards/samr21-xpro/include/periph_conf.h index 992baa0236..79a9c30ae7 100644 --- a/boards/samr21-xpro/include/periph_conf.h +++ b/boards/samr21-xpro/include/periph_conf.h @@ -208,13 +208,6 @@ static const pwm_conf_t pwm_config[] = { #define I2C_SCL PIN_PA17 #define I2C_0_PINS (PORT_PA16 | PORT_PA17) -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (0U) -/** @} */ - /** * @name RTC configuration * @{ diff --git a/boards/stm32f4discovery/Makefile.features b/boards/stm32f4discovery/Makefile.features index 5c129e58d9..3e61a23f92 100644 --- a/boards/stm32f4discovery/Makefile.features +++ b/boards/stm32f4discovery/Makefile.features @@ -3,9 +3,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_dac FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm -FEATURES_PROVIDED += periph_random FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/stm32f4discovery/include/periph_conf.h b/boards/stm32f4discovery/include/periph_conf.h index aa1a327cbb..3699a13d13 100644 --- a/boards/stm32f4discovery/include/periph_conf.h +++ b/boards/stm32f4discovery/include/periph_conf.h @@ -213,13 +213,6 @@ static const uart_conf_t uart_config[] = { #define PWM_1_PIN_AF 2 /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name SPI configuration * @{ diff --git a/boards/udoo/Makefile.features b/boards/udoo/Makefile.features index d3484cc750..57cf0b41a8 100644 --- a/boards/udoo/Makefile.features +++ b/boards/udoo/Makefile.features @@ -1,7 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/udoo/include/periph_conf.h b/boards/udoo/include/periph_conf.h index bf88862c35..ed02fd01a7 100644 --- a/boards/udoo/include/periph_conf.h +++ b/boards/udoo/include/periph_conf.h @@ -84,13 +84,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0])) /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name SPI configuration * @{ diff --git a/boards/yunjia-nrf51822/Makefile.features b/boards/yunjia-nrf51822/Makefile.features index 558d62e846..344ac51095 100644 --- a/boards/yunjia-nrf51822/Makefile.features +++ b/boards/yunjia-nrf51822/Makefile.features @@ -2,7 +2,7 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_gpio -FEATURES_PROVIDED += periph_random +FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/yunjia-nrf51822/include/periph_conf.h b/boards/yunjia-nrf51822/include/periph_conf.h index f303eb6809..46150300ab 100644 --- a/boards/yunjia-nrf51822/include/periph_conf.h +++ b/boards/yunjia-nrf51822/include/periph_conf.h @@ -96,13 +96,6 @@ extern "C" { #define RTT_PRESCALER (3275U) /* run with 10 Hz */ /** @} */ -/** - * @name Random Number Generator configuration - * @{ - */ -#define RANDOM_NUMOF (1U) -/** @} */ - /** * @name SPI configuration * @{