add hard fault handlers for MultiTech mDot and Dragonfly platforms

pull/1615/head
Mike Fiore 2016-03-16 12:55:50 -05:00
parent 6bd3caa968
commit ba2a974fd1
2 changed files with 18 additions and 0 deletions

View File

@ -693,6 +693,15 @@ uint8_t SetSysClock_PLL_HSI(void)
return 1; // OK
}
/******************************************************************************/
/* Hard Fault Handler */
/******************************************************************************/
void HardFault_Handler(void)
{
printf("Hard Fault\n");
NVIC_SystemReset();
}
/**
* @}
*/

View File

@ -694,6 +694,15 @@ uint8_t SetSysClock_PLL_HSI(void)
return 1; // OK
}
/******************************************************************************/
/* Hard Fault Handler */
/******************************************************************************/
void HardFault_Handler(void)
{
printf("Hard Fault\n");
NVIC_SystemReset();
}
/**
* @}
*/