[Stylecheck] Correct style in the CM3 addition
This commit is contained in:
parent
8e96592f55
commit
aa9b94ee1d
@ -85,7 +85,7 @@ static inline bool cm_is_masked_interrupts(void)
|
|||||||
{
|
{
|
||||||
register uint32_t result;
|
register uint32_t result;
|
||||||
__asm__ ("MRS %0, PRIMASK" : "=r" (result));
|
__asm__ ("MRS %0, PRIMASK" : "=r" (result));
|
||||||
return (result);
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
@ -100,7 +100,7 @@ static inline bool cm_is_masked_faults(void)
|
|||||||
{
|
{
|
||||||
register uint32_t result;
|
register uint32_t result;
|
||||||
__asm__ ("MRS %0, FAULTMASK" : "=r" (result));
|
__asm__ ("MRS %0, FAULTMASK" : "=r" (result));
|
||||||
return (result);
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
@ -214,7 +214,7 @@ static inline bool __cm_atomic_set(bool* val)
|
|||||||
#define CM_ATOMIC_BLOCK()
|
#define CM_ATOMIC_BLOCK()
|
||||||
#else /* defined(__DOXYGEN__) */
|
#else /* defined(__DOXYGEN__) */
|
||||||
#define CM_ATOMIC_BLOCK() \
|
#define CM_ATOMIC_BLOCK() \
|
||||||
for (bool ___CM_SAVER(true), __My = true; __My; __My = false)
|
for (bool ___CM_SAVER(true), __my = true; __my; __my = false)
|
||||||
#endif /* defined(__DOXYGEN__) */
|
#endif /* defined(__DOXYGEN__) */
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user