I am not experienced with this processor, but I am reviewing some code and this does not seem like the best way to handle these interrupts for a deployed system (no debugger connected).
Any suggestions or comments?
//============================================================================
// This is the code that gets called when the processor receives a NMI. This
// simply enters an infinite loop, preserving the system state for examination
// by a debugger.
//============================================================================
static void
NmiSR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
//============================================================================
// This is the code that gets called when the processor receives a fault
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//============================================================================
static void
FaultISR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
//============================================================================
// This is the code that gets called when the processor receives an unexpected
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//============================================================================
static void
IntDefaultHandler(void)
{
//
// Go into an infinite loop.
//
while(1)
{
}
}