TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
tm_stm32f4_rng.h
1 
30 #ifndef TM_RNG_H
31 #define TM_RNG_H 110
32 
60 #include "stm32f4xx.h"
61 #include "defines.h"
62 
63 #ifndef RNG_NVIC_PREEMPTION_PRIORITY
64 #define RNG_NVIC_PREEMPTION_PRIORITY 0x02
65 #endif
66 
67 #ifndef RNG_NVIC_SUBPRIORITY
68 #define RNG_NVIC_SUBPRIORITY 0x00
69 #endif
70 
82 void TM_RNG_Init(void);
83 
89 void TM_RNG_DeInit(void);
90 
96 uint32_t TM_RNG_Get(void);
97 
110 #endif
111 
void TM_RNG_DeInit(void)
De initializes RNG peripheral and disables clock.
uint32_t TM_RNG_Get(void)
Gets 32-bit random number.
void TM_RNG_Init(void)
Initializes RNG peripheral and enables clock.