File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
platform/source/TARGET_CORTEX_M Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ void print_context_info(void);
36
36
mbed_fault_context_t * const mbed_fault_context = (mbed_fault_context_t * )(FAULT_CONTEXT_LOCATION );
37
37
#else
38
38
mbed_fault_context_t fault_context ;
39
- mbed_fault_context_t * const mbed_fault_context = ( mbed_fault_context_t * ) & fault_context ;
39
+ mbed_fault_context_t * const mbed_fault_context = & fault_context ;
40
40
#endif
41
41
42
42
//This is a handler function called from Fault handler to print the error information out.
43
43
//This runs in fault context and uses special functions(defined in mbed_rtx_fault_handler.c) to print the information without using C-lib support.
44
- void mbed_fault_handler (uint32_t fault_type , void * mbed_fault_context_in )
44
+ void mbed_fault_handler (uint32_t fault_type , const mbed_fault_context_t * mbed_fault_context_in )
45
45
{
46
46
mbed_error_status_t faultStatus = MBED_SUCCESS ;
47
47
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ typedef struct {
57
57
58
58
//This is a handler function called from Fault handler to print the error information out.
59
59
//This runs in fault context and uses special functions(defined in mbed_fault_handler.c) to print the information without using C-lib support.
60
- void mbed_fault_handler (uint32_t fault_type , void * mbed_fault_context_in );
60
+ void mbed_fault_handler (uint32_t fault_type , const mbed_fault_context_t * mbed_fault_context_in );
61
61
62
62
/**
63
63
* Call this function to retrieve the fault context after a fatal exception which triggered a system reboot. The function retrieves the fault context stored in crash-report ram area which is preserved over reboot.
You can’t perform that action at this time.
0 commit comments