Fixing order of layer debug stack display
- Adding NL's for fault messages
This commit is contained in:
parent
99098fb2d6
commit
216b151302
12
Lib/mk20dx.c
12
Lib/mk20dx.c
@ -70,7 +70,7 @@ void ResetHandler();
|
|||||||
// NVIC - Default ISR
|
// NVIC - Default ISR
|
||||||
void fault_isr()
|
void fault_isr()
|
||||||
{
|
{
|
||||||
print("Fault!");
|
print("Fault!" NL );
|
||||||
while ( 1 )
|
while ( 1 )
|
||||||
{
|
{
|
||||||
// keep polling some communication while in fault
|
// keep polling some communication while in fault
|
||||||
@ -99,35 +99,35 @@ void systick_default_isr()
|
|||||||
// NVIC - Non-Maskable Interrupt ISR
|
// NVIC - Non-Maskable Interrupt ISR
|
||||||
void nmi_default_isr()
|
void nmi_default_isr()
|
||||||
{
|
{
|
||||||
print("NMI!");
|
print("NMI!" NL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// NVIC - Hard Fault ISR
|
// NVIC - Hard Fault ISR
|
||||||
void hard_fault_default_isr()
|
void hard_fault_default_isr()
|
||||||
{
|
{
|
||||||
print("Hard Fault!");
|
print("Hard Fault!" NL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// NVIC - Memory Manager Fault ISR
|
// NVIC - Memory Manager Fault ISR
|
||||||
void memmanage_fault_default_isr()
|
void memmanage_fault_default_isr()
|
||||||
{
|
{
|
||||||
print("Memory Manager Fault!");
|
print("Memory Manager Fault!" NL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// NVIC - Bus Fault ISR
|
// NVIC - Bus Fault ISR
|
||||||
void bus_fault_default_isr()
|
void bus_fault_default_isr()
|
||||||
{
|
{
|
||||||
print("Bus Fault!");
|
print("Bus Fault!" NL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// NVIC - Usage Fault ISR
|
// NVIC - Usage Fault ISR
|
||||||
void usage_fault_default_isr()
|
void usage_fault_default_isr()
|
||||||
{
|
{
|
||||||
print("Usage Fault!");
|
print("Usage Fault!" NL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -226,10 +226,10 @@ void Macro_layerState( uint8_t state, uint8_t stateType, uint16_t layer, uint8_t
|
|||||||
print(" 0");
|
print(" 0");
|
||||||
|
|
||||||
// Iterate over the layer stack starting from the bottom of the stack
|
// Iterate over the layer stack starting from the bottom of the stack
|
||||||
for ( uint16_t index = 0; index < macroLayerIndexStackSize; index++ )
|
for ( uint16_t index = macroLayerIndexStackSize; index > 0; index-- )
|
||||||
{
|
{
|
||||||
print(":");
|
print(":");
|
||||||
printHex_op( macroLayerIndexStack[ index ], 0 );
|
printHex_op( macroLayerIndexStack[ index - 1 ], 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
print( NL );
|
print( NL );
|
||||||
|
Reference in New Issue
Block a user