/* TRNG module software instance (must not go out of scope while in use) */ staticAdd to user application initialization (typically the start of main()):struct
trng_module trng_instance;
voidconfigure_trng(
void)
{
/* Create a new configuration structure for the TRNG settings * and fill with the default module settings. */
struct
trng_config config_trng;
trng_get_config_defaults(&config_trng);
/* Alter any TRNG configuration settings here if required */
/* Initialize TRNG with the user settings */
trng_init(&trng_instance, TRNG, &config_trng);
}
system_init();
configure_trng();
trng_enable(&trng_instance);