*pxTopOfStack=(portSTACK_TYPE)0x00;/* R0 is always zero. */
*pxTopOfStack=(portSTACK_TYPE)0x00;
/* R0 is always zero. */
/* R1 is the SP. */
/* R1 is the SP. */
/* Place an initial value for all the general purpose registers. */
/* Place an initial value for all the general purpose registers. */
@ -159,7 +168,7 @@ const unsigned long ulR13 = ( unsigned long ) &_SDA_BASE_;
pxTopOfStack--;
pxTopOfStack--;
*pxTopOfStack=(portSTACK_TYPE)pvParameters;/* R5 contains the function call parameters. */
*pxTopOfStack=(portSTACK_TYPE)pvParameters;/* R5 contains the function call parameters. */
pxTopOfStack--;
pxTopOfStack--;
*pxTopOfStack=(portSTACK_TYPE)0x06;/* R6 - other parameters and temporaries. */
*pxTopOfStack=(portSTACK_TYPE)0x06;/* R6 - other parameters and temporaries. Used as the return address from vPortTaskEntryPoint. */
pxTopOfStack--;
pxTopOfStack--;
*pxTopOfStack=(portSTACK_TYPE)0x07;/* R7 - other parameters and temporaries. */
*pxTopOfStack=(portSTACK_TYPE)0x07;/* R7 - other parameters and temporaries. */
pxTopOfStack--;
pxTopOfStack--;
@ -185,7 +194,7 @@ const unsigned long ulR13 = ( unsigned long ) &_SDA_BASE_;
pxTopOfStack--;
pxTopOfStack--;
*pxTopOfStack=(portSTACK_TYPE)0x12;/* R18 - reserved for assembler and compiler temporaries. */
*pxTopOfStack=(portSTACK_TYPE)0x12;/* R18 - reserved for assembler and compiler temporaries. */
pxTopOfStack--;
pxTopOfStack--;
*pxTopOfStack=(portSTACK_TYPE)0x13;/* R19 - must be saved across function calls. Callee-save. */
*pxTopOfStack=(portSTACK_TYPE)0x00;/* R19 - must be saved across function calls. Callee-save. Seems to be interpreted as the frame pointer. */
pxTopOfStack--;
pxTopOfStack--;
*pxTopOfStack=(portSTACK_TYPE)0x14;/* R20 - reserved for storing a pointer to the Global Offset Table (GOT) in Position Independent Code (PIC). Non-volatile in non-PIC code. Must be saved across function calls. Callee-save. Not used by FreeRTOS. */
*pxTopOfStack=(portSTACK_TYPE)0x14;/* R20 - reserved for storing a pointer to the Global Offset Table (GOT) in Position Independent Code (PIC). Non-volatile in non-PIC code. Must be saved across function calls. Callee-save. Not used by FreeRTOS. */
pxTopOfStack--;
pxTopOfStack--;
@ -232,9 +241,12 @@ extern unsigned long _stack[];
thisfunctioniscalled.*/
thisfunctioniscalled.*/
vApplicationSetupTimerInterrupt();
vApplicationSetupTimerInterrupt();
/* Allocate the stack to be used by the interrupt handler. */
/* Reuse the stack from main as the stack for the interrupts/exceptions.