TRNG support added to STM32L0xx.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13167 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2019-11-09 09:54:38 +00:00
parent 791cc8adf9
commit ab807dd10d
6 changed files with 39 additions and 4 deletions

View File

@ -170,7 +170,7 @@
* @brief Enables the TRNG subsystem. * @brief Enables the TRNG subsystem.
*/ */
#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__) #if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
#define HAL_USE_TRNG TRUE #define HAL_USE_TRNG FALSE
#endif #endif
/** /**

View File

@ -404,7 +404,7 @@
/* /*
* TRNG driver system settings. * TRNG driver system settings.
*/ */
#define STM32_TRNG_USE_RNG1 TRUE #define STM32_TRNG_USE_RNG1 FALSE
/* /*
* UART driver system settings. * UART driver system settings.

View File

@ -1155,7 +1155,7 @@
#endif #endif
/** /**
* @brief USB/RNG frequency. * @brief USB clock point.
*/ */
#if (STM32_HSI48SEL == STM32_HSI48SEL_HSI48) || defined(__DOXYGEN__) #if (STM32_HSI48SEL == STM32_HSI48SEL_HSI48) || defined(__DOXYGEN__)
#define STM32_USBCLK STM32_HSI48CLK #define STM32_USBCLK STM32_HSI48CLK
@ -1165,6 +1165,11 @@
#error "invalid STM32_HSI48SEL value specified" #error "invalid STM32_HSI48SEL value specified"
#endif #endif
/**
* @brief RNG clock point.
*/
#define STM32_RNGCLK STM32_USBCLK
/** /**
* @brief Timers LPTIM1, TIM2, TIM6 clock. * @brief Timers LPTIM1, TIM2, TIM6 clock.
*/ */

View File

@ -32,6 +32,7 @@ include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RNGv1/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1/driver.mk include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1/driver.mk
include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk

View File

@ -410,6 +410,34 @@
#define rccResetI2C3() rccResetAPB1(RCC_APB1RSTR_I2C3RST) #define rccResetI2C3() rccResetAPB1(RCC_APB1RSTR_I2C3RST)
/** @} */ /** @} */
/**
* @name RNG peripherals specific RCC operations
* @{
*/
/**
* @brief Enables the RNG peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableRNG(lp) rccEnableAHB(RCC_AHBENR_RNGEN, lp)
/**
* @brief Disables the RNG peripheral clock.
*
* @api
*/
#define rccDisableRNG() rccDisableAHB(RCC_AHBENR_RNGEN)
/**
* @brief Resets the RNG peripheral.
*
* @api
*/
#define rccResetRNG() rccResetAHB(RCC_AHBRSTR_RNGRST)
/** @} */
/** /**
* @name SPI peripherals specific RCC operations * @name SPI peripherals specific RCC operations
* @{ * @{

View File

@ -74,7 +74,8 @@
***************************************************************************** *****************************************************************************
*** Next *** *** Next ***
- HAL: TRNG support added to STM32F7xx, STM32G0xx, STM32G4xx and STM32H7xx. - HAL: TRNG support added to STM32F7xx, STM32G0xx, STM32G4xx, STM32H7xx
and STM32L0xx.
- NEW: Added support for .cc files extensions in makefiles. - NEW: Added support for .cc files extensions in makefiles.
- HAL: New RTCv3 driver for STM32G0xx and STM32G4xx. - HAL: New RTCv3 driver for STM32G0xx and STM32G4xx.
- HAL: Added support for DAC3 and DAC4 in STM32 DACv1 driver. - HAL: Added support for DAC3 and DAC4 in STM32 DACv1 driver.