From 40932b20589b66407578a84eb573dd0bfc5395cd Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 7 Oct 2018 09:22:10 +0000 Subject: Enabled TRNG on L4+. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12344 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- .../multi/SPI/cfg/stm32l4r5_nucleo144/mcuconf.h | 7 ++++- testhal/STM32/multi/TRNG/.cproject | 34 ++++++++++++++++++++++ testhal/STM32/multi/TRNG/Makefile | 6 ++++ 3 files changed, 46 insertions(+), 1 deletion(-) (limited to 'testhal/STM32') diff --git a/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/mcuconf.h b/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/mcuconf.h index edc33c54a..f0aa00c67 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/mcuconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/mcuconf.h @@ -94,7 +94,7 @@ #define STM32_I2C3SEL STM32_I2C3SEL_SYSCLK #define STM32_LPTIM1SEL STM32_LPTIM1SEL_PCLK1 #define STM32_LPTIM2SEL STM32_LPTIM2SEL_PCLK1 -#define STM32_CLK48SEL STM32_CLK48SEL_PLL +#define STM32_CLK48SEL STM32_CLK48SEL_PLLSAI1 #define STM32_ADCSEL STM32_ADCSEL_SYSCLK #define STM32_DFSDMSEL STM32_DFSDMSEL_PCLK2 #define STM32_ADFSDMSEL STM32_ADFSDMSEL_SAI1CLK @@ -271,6 +271,11 @@ #define STM32_ST_IRQ_PRIORITY 8 #define STM32_ST_USE_TIMER 2 +/* + * TRNG driver system settings. + */ +#define STM32_TRNG_USE_RNG1 FALSE + /* * UART driver system settings. */ diff --git a/testhal/STM32/multi/TRNG/.cproject b/testhal/STM32/multi/TRNG/.cproject index 14d0bd252..bcf922c70 100644 --- a/testhal/STM32/multi/TRNG/.cproject +++ b/testhal/STM32/multi/TRNG/.cproject @@ -69,6 +69,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testhal/STM32/multi/TRNG/Makefile b/testhal/STM32/multi/TRNG/Makefile index 8fed918b3..6266997ef 100644 --- a/testhal/STM32/multi/TRNG/Makefile +++ b/testhal/STM32/multi/TRNG/Makefile @@ -8,11 +8,17 @@ all: +@make --no-print-directory -f ./make/stm32l476_discovery.make all @echo ==================================================================== @echo + @echo === Building for STM32L4R5ZI-Nucleo144 ============================= + +@make --no-print-directory -f ./make/stm32l4r5zi_nucleo144.make all + @echo ==================================================================== + @echo clean: @echo +@make --no-print-directory -f ./make/stm32l476_discovery.make clean @echo + +@make --no-print-directory -f ./make/stm32l4r5zi_nucleo144.make clean + @echo # ############################################################################## -- cgit v1.2.3