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:
parent
f399d5a24a
commit
81f61f9cdc
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue