MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
RNGA Example

This example shows typical use of the Random Number Generator Accelerator (RNGA) Driver.

Source code:
/******************************************************************************
* (c) Copyright 2010-2015, Freescale Semiconductor Inc.
* ALL RIGHTS RESERVED.
******************************************************************************
* rmga_test.c
******************************************************************************/
#include "drivers.h"
static volatile uint32 random_value;
#if defined(__ICCARM__)
#pragma required=random_value
#endif
void main (void)
{
while (1)
{
RNGA_WaitAndGetVal (&random_value);
}
}
Toolchain support:
IAR EWARM 7.40.7KEIL uVision 5.15CrossWorks 3.6ATOLLIC TrueStudio 5.3.0Kinetis Design Studio 3.0.0