Kinetis RNGA driver.
Kinetis RNGA driver.
RNGA generates data that looks random. Reference Manual recommends to use the RNGA as an entropy source for PRNGs.
#define RANDOM_NUMOF (1U) #define KINETIS_RNGA RNG #define RANDOM_CLKEN() (SIM->SCGC6 |= (1 << 9)) #define RANDOM_CLKDIS() (SIM->SCGC6 &= ~(1 << 9))