C++ build fixed, C dropped

This commit is contained in:
Attila Body 2020-11-28 12:18:35 +01:00
parent c34b20ad8c
commit a2f6e40abb
5 changed files with 335 additions and 1 deletions

19
inc/fault.h Normal file
View file

@ -0,0 +1,19 @@
#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 */