mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 22:27:21 -04:00
[sw\example\cpu_test] added 'compile guard'; application has to be compiled with USER_FLAGS+=-DRUN_CPUTEST to be compile actual application
This commit is contained in:
parent
8096d4cbd7
commit
2d5c474f6b
1 changed files with 11 additions and 0 deletions
|
@ -86,6 +86,17 @@ int cnt_test = 0;
|
|||
**************************************************************************/
|
||||
int main() {
|
||||
|
||||
// Disable cpu_test compilation by default
|
||||
#ifndef RUN_CPUTEST
|
||||
#warning cpu_test HAS NOT BEEN COMPILED! Use >>make USER_FLAGS+=-DRUN_CPUTEST clean_all exe<< to compile it.
|
||||
|
||||
// inform the user if you are actually executing this
|
||||
neorv32_uart_printf("ERROR! cpu_test has not been compiled. Use >>make USER_FLAGS+=-DRUN_CPUTEST clean_all exe<< to compile it.\n");
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
|
||||
register uint32_t tmp_a, tmp_b, tmp_c;
|
||||
uint32_t i, j;
|
||||
volatile uint32_t dummy_dst __attribute__((unused));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue