2. Trng_poll_test

2.1. Function description:

This demo shows the TRNG whether can continuously generate random number.

  • Initialize & configure the TRNG, then enable trng.

  • Waiting initialization done.

  • Continuously to check whether a random number is avaliable and then read out up to 4096 times.

2.2. Test result:

If continuously generate random number up to 4096, then print pass, if not print fail.

2.3. IO connection:

None