Commit Graph

3 Commits (mbed-os-5.6)

Author SHA1 Message Date
Laurent MEUNIER 9bbe822d56 STM32: RNG: Ensure that no more than 1 instance is used
There is only 1 RNG HW IP and we do not support more than one driver
user at a time, so let's ensure this is the case and raise an error if
needed.
2017-11-03 12:59:03 +00:00
Laurent MEUNIER a375ea0619 STM32: TRNG: remove call to deprecated HAL_RNG_GetRandomNumber
HAL_RNG_GetRandomNumber is a deprecated API and replaced here with
a call to HAL_RNG_GenerateRandomNumber.

Doing so, we also rework the driver to use the 4 bytes returned by a call
to HAL_RNG_GenerateRandomNumber instead of 1 byte out of 4.

HAL_RNG_GenerateRandomNumber was not returning any error code, so now
we can also check the return code.
2017-11-03 12:59:03 +00:00
adustm bda200e814 rework after directory moves 2016-10-10 10:12:39 +02:00