arm: cmsis: Convert FaultEnable to use direct CMSIS register access
Jira: ZEP-1568 Change-Id: I1274ee206576babb4bc0b9308d1cc24d7092166a Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
cecdc99f38
commit
388c26574f
2 changed files with 3 additions and 48 deletions
|
@ -76,51 +76,6 @@ static inline void _ScbDivByZeroFaultEnable(void)
|
|||
__scs.scb.ccr.bit.div_0_trp = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Enable usage fault exceptions
|
||||
*
|
||||
* This routine enables usage faults.
|
||||
* By default, the CPU does not raise usage fault exceptions.
|
||||
*
|
||||
* @return N/A
|
||||
*/
|
||||
|
||||
static inline void _ScbUsageFaultEnable(void)
|
||||
{
|
||||
__scs.scb.shcsr.bit.usgfaultena = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Enable bus fault exceptions
|
||||
*
|
||||
* This routine enables bus faults.
|
||||
* By default, the CPU does not raise bus fault exceptions.
|
||||
*
|
||||
* @return N/A
|
||||
*/
|
||||
|
||||
static inline void _ScbBusFaultEnable(void)
|
||||
{
|
||||
__scs.scb.shcsr.bit.busfaultena = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Enable MPU faults exceptions
|
||||
*
|
||||
* This routine enables the MPU faults.
|
||||
* By default, the CPU does not raise MPU fault exceptions.
|
||||
*
|
||||
* @return N/A
|
||||
*/
|
||||
|
||||
static inline void _ScbMemFaultEnable(void)
|
||||
{
|
||||
__scs.scb.shcsr.bit.memfaultena = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Find out if a hard fault is caused by a bus error on vector read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue