|
|
@@ -76,12 +76,12 @@ Defines a static function that may be inlined by the compiler. If the compiler g
|
|
|
all calls to this functions, no additional function implementation is generated which may further optimize space.
|
|
|
|
|
|
<b> Code Example:</b>
|
|
|
-\todo add example
|
|
|
-*/
|
|
|
-
|
|
|
-/**
|
|
|
-\def __STATIC_ASM
|
|
|
-\todo Daniel: Need input to this
|
|
|
+\code
|
|
|
+__STATIC_INLINE uint32_t GIC_GetPriority(IRQn_Type IRQn)
|
|
|
+{
|
|
|
+ return((uint32_t)GICDistributor->D_IPRIORITYR[((uint32_t)(int32_t)IRQn)]);
|
|
|
+}
|
|
|
+\endcode
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
@@ -113,7 +113,6 @@ __USED uint32_t const CMSIS_RTOS_RTX_Version = osCMSIS_RTX;
|
|
|
__USED uint32_t const os_clockrate = OS_TICK;
|
|
|
__USED uint32_t const os_timernum = 0;
|
|
|
\endcode
|
|
|
-\todo Daniel: verify example
|
|
|
**/
|
|
|
|
|
|
/**
|
|
|
@@ -188,12 +187,16 @@ struct foo {
|
|
|
\fn __STATIC_INLINE uint32_t __get_CPSR(void)
|
|
|
\details
|
|
|
This function returns the content of the CPSR Register.
|
|
|
+
|
|
|
+\fn __STATIC_INLINE void __set_CPSR(uint32_t cpsr)
|
|
|
+\details
|
|
|
+ This function assigns the given value to the CPSR Register.
|
|
|
|
|
|
-\fn __STATIC_INLINE void __set_SP(uint32_t stack)
|
|
|
+\fn __STATIC_INLINE __ASM void __set_SP(uint32_t stack)
|
|
|
\details
|
|
|
This function assigns the given value to the current stack pointer.
|
|
|
|
|
|
-\fn __STATIC_ASM void __set_SP_usr(uint32_t topOfProcStack)
|
|
|
+\fn __STATIC_INLINE __ASM void __set_SP_usr(uint32_t topOfProcStack)
|
|
|
\details
|
|
|
This function assigns the given value to the USR/SYS Stack Pointer (PSP).
|
|
|
|