#include <ADuCM360.h>

using namespace std;

#ifdef __cplusplus
extern "C"
{
#endif

	void HardFault_Handler(void)
	{
		int CFSR = SCB->CFSR;
		int HFSR = SCB->HFSR;
		int DFSR = SCB->DFSR;
		int MMFAR = SCB->MMFAR;
		int BFAR = SCB->BFAR;
		int AFSR = SCB->AFSR;

		while (true)
			;
	}

	void MemManage_Handler(void)
	{
		int CFSR = SCB->CFSR;
		int MMFAR = SCB->MMFAR;

		while (true)
			;
	}

	void BusFault_Handler(void)
	{
		int CFSR = SCB->CFSR;
		int BFAR = SCB->BFAR;

		while (true)
			;
	}

	void UsageFault_Handler(void)
	{
		int CFSR = SCB->CFSR;

		while (true)
			;
	}

#ifdef __cplusplus
}
#endif
