random number generator (TRNG) API ?

Markus_L811:

cmaglie:
mantoui, thanks i tried and it works... after a little tweak:

        TRNG->TRNG_IDR = 0xFFFFFFFF;

}

Why the hole 32bit if I didn't read the spec wrong the first bit would be enough!?

defines let you do something like

     TRNG->TRNG_IDR = TRNG_IDR_DATRDY; // disable interrupts