Browse Source

boards: adapted to HWRNG changes

pr/gpio
Hauke Petersen 7 years ago
parent
commit
fe5023b7d4
  1. 2
      boards/airfy-beacon/Makefile.features
  2. 7
      boards/airfy-beacon/include/periph_conf.h
  3. 2
      boards/arduino-due/Makefile.features
  4. 7
      boards/arduino-due/include/periph_conf.h
  5. 2
      boards/cc2538dk/Makefile.features
  6. 7
      boards/cc2538dk/include/periph_conf.h
  7. 2
      boards/frdm-k64f/Makefile.features
  8. 7
      boards/frdm-k64f/include/periph_conf.h
  9. 2
      boards/msbiot/Makefile.features
  10. 7
      boards/msbiot/include/periph_conf.h
  11. 2
      boards/mulle/Makefile.features
  12. 5
      boards/mulle/include/periph_conf.h
  13. 2
      boards/native/Makefile.features
  14. 2
      boards/nrf51dongle/Makefile.features
  15. 7
      boards/nrf51dongle/include/periph_conf.h
  16. 2
      boards/nrf52dk/Makefile.features
  17. 7
      boards/nrf52dk/include/periph_conf.h
  18. 2
      boards/nrf6310/Makefile.features
  19. 7
      boards/nrf6310/include/periph_conf.h
  20. 2
      boards/openmote-cc2538/Makefile.features
  21. 7
      boards/openmote-cc2538/include/periph_conf.h
  22. 2
      boards/pba-d-01-kw2x/Makefile.features
  23. 7
      boards/pba-d-01-kw2x/include/periph_conf.h
  24. 2
      boards/pca10000/Makefile.features
  25. 7
      boards/pca10000/include/periph_conf.h
  26. 2
      boards/pca10005/Makefile.features
  27. 7
      boards/pca10005/include/periph_conf.h
  28. 2
      boards/remote/Makefile.features
  29. 7
      boards/remote/include/periph_conf.h
  30. 7
      boards/saml21-xpro/include/periph_conf.h
  31. 7
      boards/samr21-xpro/include/periph_conf.h
  32. 2
      boards/stm32f4discovery/Makefile.features
  33. 7
      boards/stm32f4discovery/include/periph_conf.h
  34. 2
      boards/udoo/Makefile.features
  35. 7
      boards/udoo/include/periph_conf.h
  36. 2
      boards/yunjia-nrf51822/Makefile.features
  37. 7
      boards/yunjia-nrf51822/include/periph_conf.h

2
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

7
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
* @{

2
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

7
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
* @{

2
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

7
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
* @{

2
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

7
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

2
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

7
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
* @{

2
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

5
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

2
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

2
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

7
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
*

2
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

7
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

2
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

7
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
*

2
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

7
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
* @{

2
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

7
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))
/** @} */

2
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

7
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
*

2
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

7
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
* @{

2
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

7
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
* @{

7
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
* @{

7
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
* @{

2
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

7
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
* @{

2
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

7
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
* @{

2
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

7
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
* @{

Loading…
Cancel
Save