Merge pull request #45 from richardeoin/fatal-fix

Fixed potential Hardfault in platform_init
This commit is contained in:
Gareth McMullin 2014-07-30 13:56:12 +12:00
commit cb1b1670d1
4 changed files with 20 additions and 0 deletions

View File

@ -92,6 +92,11 @@ int platform_init(void)
cdcacm_init();
// Set recovery point
if (setjmp(fatal_error_jmpbuf)) {
return 0; // Do nothing on failure
}
jtag_scan(NULL);
return 0;

View File

@ -140,6 +140,11 @@ int platform_init(void)
cdcacm_init();
usbuart_init();
// Set recovery point
if (setjmp(fatal_error_jmpbuf)) {
return 0; // Do nothing on failure
}
jtag_scan(NULL);
return 0;

View File

@ -121,6 +121,11 @@ int platform_init(void)
cdcacm_init();
// Set recovery point
if (setjmp(fatal_error_jmpbuf)) {
return 0; // Do nothing on failure
}
jtag_scan(NULL);
return 0;

View File

@ -99,6 +99,11 @@ int platform_init(void)
cdcacm_init();
// Set recovery point
if (setjmp(fatal_error_jmpbuf)) {
return 0; // Do nothing on failure
}
jtag_scan(NULL);
return 0;