Skip to content

Commit

Permalink
Merge branch 'main' into update-end-scheduler-free-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot authored Jan 29, 2024
2 parents 4bf5a31 + 1860c9a commit 05bb013
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions portable/GCC/MSP430F449/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,23 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0xbbbb;
pxTopOfStack--;
#ifdef __MSPGCC__
*pxTopOfStack = ( StackType_t ) 0xcccc;
#else
/* The MSP430 EABI expects the function parameter in R12. */
*pxTopOfStack = ( StackType_t ) pvParameters;
#endif
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0xdddd;
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0xeeee;
pxTopOfStack--;

/* When the task starts is will expect to find the function parameter in
* R15. */
#ifdef __MSPGCC__
/* The mspgcc ABI expects the function parameter in R15. */
*pxTopOfStack = ( StackType_t ) pvParameters;
#else
*pxTopOfStack = ( StackType_t ) 0xffff;
#endif
pxTopOfStack--;

/* The code generated by the mspgcc compiler does not maintain separate
Expand Down

0 comments on commit 05bb013

Please sign in to comment.