mirror of https://github.com/ARMmbed/mbed-os.git
CM3: Make ACTLR bit definitions conditional
The ACTLR register itself is conditional on chip revision, but its bit definitions were always defined. Make the the bit definitions also conditional, so it is possible to produce portable code that sets DISDEFWBUF if available: #ifdef SCnSCB_ACTLR_DISDEFWBUF_Msk SCnSCB->ACTLR |= SCnSCB_ACTLR_DISDEFWBUF_Msk; #endif (cherry-picked from CMSIS b2b04dbeece0a046556bfc320bef6b20bef3f16f)pull/8655/head
parent
27e1bc30dc
commit
f04904c6e8
|
@ -668,7 +668,7 @@ typedef struct
|
|||
#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL /*<< SCnSCB_ICTR_INTLINESNUM_Pos*/) /*!< ICTR: INTLINESNUM Mask */
|
||||
|
||||
/* Auxiliary Control Register Definitions */
|
||||
|
||||
#if defined (__CM3_REV) && (__CM3_REV >= 0x200U)
|
||||
#define SCnSCB_ACTLR_DISFOLD_Pos 2U /*!< ACTLR: DISFOLD Position */
|
||||
#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */
|
||||
|
||||
|
@ -677,6 +677,7 @@ typedef struct
|
|||
|
||||
#define SCnSCB_ACTLR_DISMCYCINT_Pos 0U /*!< ACTLR: DISMCYCINT Position */
|
||||
#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL /*<< SCnSCB_ACTLR_DISMCYCINT_Pos*/) /*!< ACTLR: DISMCYCINT Mask */
|
||||
#endif
|
||||
|
||||
/*@} end of group CMSIS_SCnotSCB */
|
||||
|
||||
|
|
Loading…
Reference in New Issue