Mercurial > louis > kiibohd-controller
changeset 345:2bcf6800b851
Fixing order of layer debug stack display
- Adding NL's for fault messages
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Tue, 23 Jun 2015 07:58:31 -0700 |
parents | f04450004adf |
children | 1beec5f17e64 |
files | Lib/mk20dx.c Macro/PartialMap/macro.c |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/mk20dx.c Fri Jun 19 20:14:37 2015 -0700 +++ b/Lib/mk20dx.c Tue Jun 23 07:58:31 2015 -0700 @@ -70,7 +70,7 @@ // NVIC - Default ISR void fault_isr() { - print("Fault!"); + print("Fault!" NL ); while ( 1 ) { // keep polling some communication while in fault @@ -99,35 +99,35 @@ // NVIC - Non-Maskable Interrupt ISR void nmi_default_isr() { - print("NMI!"); + print("NMI!" NL ); } // NVIC - Hard Fault ISR void hard_fault_default_isr() { - print("Hard Fault!"); + print("Hard Fault!" NL ); } // NVIC - Memory Manager Fault ISR void memmanage_fault_default_isr() { - print("Memory Manager Fault!"); + print("Memory Manager Fault!" NL ); } // NVIC - Bus Fault ISR void bus_fault_default_isr() { - print("Bus Fault!"); + print("Bus Fault!" NL ); } // NVIC - Usage Fault ISR void usage_fault_default_isr() { - print("Usage Fault!"); + print("Usage Fault!" NL ); }
--- a/Macro/PartialMap/macro.c Fri Jun 19 20:14:37 2015 -0700 +++ b/Macro/PartialMap/macro.c Tue Jun 23 07:58:31 2015 -0700 @@ -226,10 +226,10 @@ print(" 0"); // 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(":"); - printHex_op( macroLayerIndexStack[ index ], 0 ); + printHex_op( macroLayerIndexStack[ index - 1 ], 0 ); } print( NL );