Skip to content

Commit a058502

Browse files
author
SummerGift
committed
optimize code format
1 parent 73b7d71 commit a058502

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

firmware/armv6/stack.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,21 @@
3939
* This function will initialize thread stack
4040
*
4141
* @param tentry the entry of thread
42-
* @param parameter the parameter of entry
42+
* @param parameter the parameter of entry
4343
* @param stack_addr the beginning stack address
4444
* @param texit the function will be called when thread exit
4545
*
4646
* @return stack address
4747
*/
4848
rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
49-
rt_uint8_t *stack_addr, void *texit)
49+
rt_uint8_t *stack_addr, void *texit)
5050
{
5151
rt_uint32_t *stk;
5252

5353
stack_addr += sizeof(rt_uint32_t);
5454
stack_addr = (rt_uint8_t *)RT_ALIGN_DOWN((rt_uint32_t)stack_addr, 8);
55-
stk = (rt_uint32_t*)stack_addr;
55+
stk = (rt_uint32_t *)stack_addr;
56+
5657
*(--stk) = (rt_uint32_t)tentry; /* entry point */
5758
*(--stk) = (rt_uint32_t)texit; /* lr */
5859
*(--stk) = 0; /* r12 */

0 commit comments

Comments
 (0)