Removed unused function from IAR CM4F port.c.

Modified the stack alignment when a task first starts in the IAR CM4F port.
This commit is contained in:
Richard Barry 2012-04-16 17:04:42 +00:00
parent 6360632cca
commit 7a0996f246
3 changed files with 9 additions and 12 deletions

View file

@ -56,11 +56,9 @@
RSEG CODE:CODE(2)
thumb
EXTERN vPortYieldFromISR
EXTERN pxCurrentTCB
EXTERN vTaskSwitchContext
PUBLIC vSetMSP
PUBLIC xPortPendSVHandler
PUBLIC vPortSetInterruptMask
PUBLIC vPortClearInterruptMask
@ -68,12 +66,7 @@
PUBLIC vPortStartFirstTask
PUBLIC vPortEnableVFP
/*-----------------------------------------------------------*/
vSetMSP
msr msp, r0
bx lr
/*-----------------------------------------------------------*/
xPortPendSVHandler:
@ -137,7 +130,7 @@ vPortClearInterruptMask:
/*-----------------------------------------------------------*/
vPortSVCHandler;
vPortSVCHandler:
/* Get the location of the current TCB. */
ldr r3, =pxCurrentTCB
ldr r1, [r3]
@ -151,7 +144,7 @@ vPortSVCHandler;
/*-----------------------------------------------------------*/
vPortStartFirstTask
vPortStartFirstTask:
/* Use the NVIC offset register to locate the stack. */
ldr r0, =0xE000ED08
ldr r0, [r0]
@ -164,7 +157,7 @@ vPortStartFirstTask
/*-----------------------------------------------------------*/
vPortEnableVFP
vPortEnableVFP:
/* The FPU enable bits are in the CPACR. */
ldr.w r0, =0xE000ED88
ldr r1, [r0]