mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Update MPU wrapper for xTimerGenericCommand API (#734)
* Update xTimerGenericCommand API as per SMP branch Signed-off-by: kar-rahul-aws <karahulx@amazon.com> * Fix formatting * Code review changes Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Fix Formatting --------- Signed-off-by: kar-rahul-aws <karahulx@amazon.com> Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
0066c28cb2
commit
b51a37314c
36 changed files with 693 additions and 799 deletions
|
@ -1426,37 +1426,34 @@ MPU_xTimerGetTimerDaemonTaskHandle_Unpriv
|
|||
|
||||
#if ( configUSE_TIMERS == 1 )
|
||||
|
||||
BaseType_t MPU_xTimerGenericCommand( TimerHandle_t xTimer,
|
||||
const BaseType_t xCommandID,
|
||||
const TickType_t xOptionalValue,
|
||||
BaseType_t * const pxHigherPriorityTaskWoken,
|
||||
const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL;
|
||||
BaseType_t MPU_xTimerGenericCommandFromTask( TimerHandle_t xTimer,
|
||||
const BaseType_t xCommandID,
|
||||
const TickType_t xOptionalValue,
|
||||
BaseType_t * const pxHigherPriorityTaskWoken,
|
||||
const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL;
|
||||
|
||||
__asm BaseType_t MPU_xTimerGenericCommand( TimerHandle_t xTimer,
|
||||
const BaseType_t xCommandID,
|
||||
const TickType_t xOptionalValue,
|
||||
BaseType_t * const pxHigherPriorityTaskWoken,
|
||||
const TickType_t xTicksToWait ) /* FREERTOS_SYSTEM_CALL */
|
||||
__asm BaseType_t MPU_xTimerGenericCommandFromTask( TimerHandle_t xTimer,
|
||||
const BaseType_t xCommandID,
|
||||
const TickType_t xOptionalValue,
|
||||
BaseType_t * const pxHigherPriorityTaskWoken,
|
||||
const TickType_t xTicksToWait ) /* FREERTOS_SYSTEM_CALL */
|
||||
{
|
||||
PRESERVE8
|
||||
extern MPU_xTimerGenericCommandImpl
|
||||
extern MPU_xTimerGenericCommandFromTaskImpl
|
||||
|
||||
push {r0}
|
||||
mrs r0, ipsr
|
||||
cmp r0, #0
|
||||
bne MPU_xTimerGenericCommand_Priv
|
||||
mrs r0, control
|
||||
tst r0, #1
|
||||
beq MPU_xTimerGenericCommand_Priv
|
||||
MPU_xTimerGenericCommand_Unpriv
|
||||
bne MPU_xTimerGenericCommandFromTask_Unpriv
|
||||
MPU_xTimerGenericCommandFromTask_Priv
|
||||
pop {r0}
|
||||
b MPU_xTimerGenericCommandFromTaskImpl
|
||||
MPU_xTimerGenericCommandFromTask_Unpriv
|
||||
pop {r0}
|
||||
svc #portSVC_SYSTEM_CALL_ENTER_1
|
||||
bl MPU_xTimerGenericCommandImpl
|
||||
bl MPU_xTimerGenericCommandFromTaskImpl
|
||||
svc #portSVC_SYSTEM_CALL_EXIT
|
||||
bx lr
|
||||
MPU_xTimerGenericCommand_Priv
|
||||
pop {r0}
|
||||
b MPU_xTimerGenericCommandImpl
|
||||
}
|
||||
|
||||
#endif /* if ( configUSE_TIMERS == 1 ) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue