mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix RNG
This commit is contained in:
parent
729fedfe6f
commit
43aa7688a6
@ -6,9 +6,8 @@ static RNG_HandleTypeDef RNGHandle;
|
||||
void rng_init()
|
||||
{
|
||||
__RNG_CLK_ENABLE();
|
||||
|
||||
RNGHandle.Instance = RNG;
|
||||
__HAL_RNG_ENABLE(&RNGHandle);
|
||||
HAL_RNG_Init(&RNGHandle);
|
||||
}
|
||||
|
||||
uint32_t rng_randint(uint32_t min, uint32_t max)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user