26.8.2.2.1 Code
Copy-paste the following code to your user application:
uint32_t random_buffer[5];
while
(
true
) {
trng_read_buffer_job(&trng_instance, random_buffer, 5);
while
(!trng_read_done) {
}
trng_read_done =
false
;
port_pin_toggle_output_level(LED_0_PIN);
/* Add a short delay to see LED toggle */
volatile
uint32_t delay = 50000;
while
(delay--) {
}
}