URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Subversion Repositories neorv32
Compare Revisions
- This comparison shows the changes necessary to convert path
/neorv32/trunk/sw/example/demo_trng
- from Rev 55 to Rev 60
- ↔ Reverse comparison
Rev 55 → Rev 60
/main.c
61,13 → 61,13
* |
* @note This program requires the UART and the TRNG to be synthesized. |
* |
* @return Irrelevant. |
* @return 0 if execution was successful |
**************************************************************************/ |
int main(void) { |
|
// check if UART unit is implemented at all |
if (neorv32_uart_available() == 0) { |
return 0; |
return 1; |
} |
|
// capture all exceptions and give debug info via UART |
87,7 → 87,7
// check if TRNG unit is implemented at all |
if (neorv32_trng_available() == 0) { |
neorv32_uart_printf("No TRNG implemented."); |
return 0; |
return 1; |
} |
|
// enable TRNG |