/* Application entry point for TRNG example. 
Enable the TRNG, display the generated random value. */
int main(void)
/* Application entry point for TRNG example. 
Enable the TRNG, display the generated random value. */
int main(void)
{
	sysclk_init();
	board_init();
	configure_console();
	printf("-- TRNG Example --\n\r");
	printf("-- %s\n\r", BOARD_NAME);
	printf("-- Compiled: %s %s --\n\r", __DATE__, __TIME__);
	pmc_enable_periph_clk(ID_TRNG);
	trng_enable(TRNG);
	NVIC_DisableIRQ(TRNG_IRQn);
	NVIC_ClearPendingIRQ(TRNG_IRQn);
	NVIC_SetPriority(TRNG_IRQn, 0);
	NVIC_EnableIRQ(TRNG_IRQn);
	trng_enable_interrupt(TRNG);
	while (1) {
	}
}