arm: sam70: refactor clearing of exception faults to common code

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Change-Id: I8a9045eb46d5a23cbbd9a6bce75a0f1e78171eeb
This commit is contained in:
Anas Nashif 2017-02-11 09:42:35 +05:30 committed by Anas Nashif
commit 81f61f9cdc

View file

@ -14,7 +14,7 @@
#include <device.h>
#include <init.h>
#include <soc.h>
#include <arch/cpu.h>
#include <cortex_m/exc.h>
/* Power Manager Controller */
@ -224,10 +224,7 @@ static int atmel_same70_init(struct device *arg)
key = irq_lock();
/* Clear all faults */
_ScbMemFaultAllFaultsReset();
_ScbBusFaultAllFaultsReset();
_ScbUsageFaultAllFaultsReset();
_ScbHardFaultAllFaultsReset();
_ClearFaults();
/*
* Set FWS (Flash Wait State) value before increasing Master Clock