Skip to content

Commit

Permalink
[sw] update TRNG demo programs
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Jun 7, 2024
1 parent c34a3cb commit 141719e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sw/example/demo_trng/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int main(void) {
// enable TRNG
neorv32_uart0_printf("\nTRNG FIFO depth: %i\n", neorv32_trng_get_fifo_depth());
neorv32_uart0_printf("Starting TRNG...\n");
neorv32_trng_enable();
neorv32_trng_enable(0);
neorv32_cpu_delay_ms(100); // TRNG "warm up"

while(1) {
Expand Down
2 changes: 1 addition & 1 deletion sw/example/game_of_life/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int main(void) {
// check if TRNG was synthesized
if (neorv32_trng_available()) {
neorv32_uart0_printf("\nTRNG detected. Using TRNG for universe initialization.\n");
neorv32_trng_enable();
neorv32_trng_enable(0);
trng_available = 1;
}

Expand Down

0 comments on commit 141719e

Please sign in to comment.