File tree 2 files changed +8
-2
lines changed
freertos/port/esp8266/include/freertos 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ void PortEnableInt_NoNest( void );
167
167
#define portENTER_CRITICAL () vPortEnterCritical()
168
168
#define portEXIT_CRITICAL () vPortExitCritical()
169
169
170
+ #define xPortGetCoreID () 0
171
+
170
172
// no need to disable/enable lvl1 isr again in ISR
171
173
//#define portSET_INTERRUPT_MASK_FROM_ISR() PortDisableInt_NoNest()
172
174
//#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) PortEnableInt_NoNest()
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ void _exit(int status)
135
135
136
136
void abort (void )
137
137
{
138
- ESP_LOGE ("ABORT" ,"Error found and abort!" );
139
- while (1 );
138
+ ets_printf ("abort() was called at PC %p on core %d\r\n" , __builtin_return_address (0 ) - 3 , xPortGetCoreID ());
139
+
140
+ /* cause a exception to jump into panic function */
141
+ while (1 ) {
142
+ * ((int * )NULL ) = 0 ;
143
+ }
140
144
}
You can’t perform that action at this time.
0 commit comments