19 lines
334 B
C
19 lines
334 B
C
#ifndef __FAULT_H
|
|
#define __FAULT_H
|
|
|
|
#define FAULT_REASON_HARD_FAULT 1
|
|
#define FAULT_REASON_MEMMANAGE_FAULT 2
|
|
#define FAULT_REASON_BUS_FAULT 3
|
|
#define FAULT_REASON_USAGE_FAULT 4
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void app_fault_callback(uint32_t reason);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __FAULT_H */
|