forked from M-Labs/artiq
1
0
Fork 0

runtime: more explicit message about startup clock failure

This commit is contained in:
Sebastien Bourdeauducq 2015-07-28 00:38:38 +08:00
parent 228f7c3d61
commit 0cd74533ca
1 changed files with 4 additions and 1 deletions

View File

@ -24,8 +24,11 @@ void rtiocrg_init(void)
} else
printf("WARNING: unknown startup_clock entry in flash storage\n");
if(!rtiocrg_switch_clock(clk))
if(!rtiocrg_switch_clock(clk)) {
printf("WARNING: startup RTIO clock failed\n");
printf("WARNING: this may cause the system initialization to fail\n");
printf("WARNING: fix clocking and reset the device\n");
}
}
int rtiocrg_check(void)