arm: cmsis: Convert _ScbHardFaultIsForced to use direct CMSIS register access
Jira: ZEP-1568 Change-Id: I9bf2ec4c84f87c8e9d72dc41324d7ee627d2dc2e Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
a033a89d76
commit
831764a898
2 changed files with 2 additions and 17 deletions
|
@ -76,21 +76,6 @@ static inline int _ScbHardFaultIsBusErrOnVectorRead(void)
|
|||
return __scs.scb.hfsr.bit.vecttbl;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Find out if a fault was escalated to hard fault
|
||||
*
|
||||
* Happens if a fault cannot be triggered because of priority or because it was
|
||||
* disabled.
|
||||
*
|
||||
* @return 1 if so, 0 otherwise
|
||||
*/
|
||||
|
||||
static inline int _ScbHardFaultIsForced(void)
|
||||
{
|
||||
return __scs.scb.hfsr.bit.forced;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Clear all hard faults (HFSR register)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue