comparison Lib/mk20dx.c @ 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 e8841d3c6db5
children 06a54d582bf8
comparison
equal deleted inserted replaced
344:f04450004adf 345:2bcf6800b851
68 // ----- Interrupts ----- 68 // ----- Interrupts -----
69 69
70 // NVIC - Default ISR 70 // NVIC - Default ISR
71 void fault_isr() 71 void fault_isr()
72 { 72 {
73 print("Fault!"); 73 print("Fault!" NL );
74 while ( 1 ) 74 while ( 1 )
75 { 75 {
76 // keep polling some communication while in fault 76 // keep polling some communication while in fault
77 // mode, so we don't completely die. 77 // mode, so we don't completely die.
78 if ( SIM_SCGC4 & SIM_SCGC4_USBOTG ) usb_isr(); 78 if ( SIM_SCGC4 & SIM_SCGC4_USBOTG ) usb_isr();
97 97
98 98
99 // NVIC - Non-Maskable Interrupt ISR 99 // NVIC - Non-Maskable Interrupt ISR
100 void nmi_default_isr() 100 void nmi_default_isr()
101 { 101 {
102 print("NMI!"); 102 print("NMI!" NL );
103 } 103 }
104 104
105 105
106 // NVIC - Hard Fault ISR 106 // NVIC - Hard Fault ISR
107 void hard_fault_default_isr() 107 void hard_fault_default_isr()
108 { 108 {
109 print("Hard Fault!"); 109 print("Hard Fault!" NL );
110 } 110 }
111 111
112 112
113 // NVIC - Memory Manager Fault ISR 113 // NVIC - Memory Manager Fault ISR
114 void memmanage_fault_default_isr() 114 void memmanage_fault_default_isr()
115 { 115 {
116 print("Memory Manager Fault!"); 116 print("Memory Manager Fault!" NL );
117 } 117 }
118 118
119 119
120 // NVIC - Bus Fault ISR 120 // NVIC - Bus Fault ISR
121 void bus_fault_default_isr() 121 void bus_fault_default_isr()
122 { 122 {
123 print("Bus Fault!"); 123 print("Bus Fault!" NL );
124 } 124 }
125 125
126 126
127 // NVIC - Usage Fault ISR 127 // NVIC - Usage Fault ISR
128 void usage_fault_default_isr() 128 void usage_fault_default_isr()
129 { 129 {
130 print("Usage Fault!"); 130 print("Usage Fault!" NL );
131 } 131 }
132 132
133 133
134 // NVIC - Default ISR/Vector Linking 134 // NVIC - Default ISR/Vector Linking
135 void nmi_isr() __attribute__ ((weak, alias("nmi_default_isr"))); 135 void nmi_isr() __attribute__ ((weak, alias("nmi_default_isr")));