Skip to content

Commit 49c410d

Browse files
authored
Merge pull request #4426 from mysterywolf/kernel
[kernel]auto formatted
2 parents db9b5fb + 678306d commit 49c410d

File tree

17 files changed

+43
-43
lines changed

17 files changed

+43
-43
lines changed

src/clock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -111,7 +111,7 @@ rt_tick_t rt_tick_from_millisecond(rt_int32_t ms)
111111
tick = RT_TICK_PER_SECOND * (ms / 1000);
112112
tick += (RT_TICK_PER_SECOND * (ms % 1000) + 999) / 1000;
113113
}
114-
114+
115115
/* return the calculated tick */
116116
return tick;
117117
}

src/components.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

src/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

src/device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

src/idle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -211,7 +211,7 @@ static void rt_thread_idle_entry(void *parameter)
211211
#endif
212212

213213
rt_thread_idle_excute();
214-
#ifdef RT_USING_PM
214+
#ifdef RT_USING_PM
215215
rt_system_power_manager();
216216
#endif
217217
}

src/ipc.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -34,7 +34,7 @@
3434
* 2013-09-14 Grissiom add an option check in rt_event_recv
3535
* 2018-10-02 Bernard add 64bit support for mailbox
3636
* 2019-09-16 tyx add send wait support for message queue
37-
* 2020-07-29 Meco Man fix thread->event_set/event_info when received an
37+
* 2020-07-29 Meco Man fix thread->event_set/event_info when received an
3838
* event without pending
3939
* 2020-10-11 Meco Man add value overflow-check code
4040
* 2021-01-03 Meco Man add rt_mb_urgent()
@@ -124,7 +124,7 @@ rt_inline rt_err_t rt_ipc_list_suspend(rt_list_t *list,
124124
break;
125125

126126
default:
127-
break;
127+
break;
128128
}
129129

130130
return RT_EOK;
@@ -959,7 +959,7 @@ rt_err_t rt_mutex_release(rt_mutex_t mutex)
959959
rt_hw_interrupt_enable(temp); /* enable interrupt */
960960
return -RT_EFULL; /* value overflowed */
961961
}
962-
962+
963963
/* clear owner */
964964
mutex->owner = RT_NULL;
965965
mutex->original_priority = 0xff;
@@ -1280,11 +1280,11 @@ rt_err_t rt_event_recv(rt_event_t event,
12801280
/* set received event */
12811281
if (recved)
12821282
*recved = (event->set & set);
1283-
1284-
/* fill thread event info */
1283+
1284+
/* fill thread event info */
12851285
thread->event_set = (event->set & set);
12861286
thread->event_info = option;
1287-
1287+
12881288
/* received event */
12891289
if (option & RT_EVENT_FLAG_CLEAR)
12901290
event->set &= ~set;
@@ -1649,7 +1649,7 @@ rt_err_t rt_mb_send_wait(rt_mailbox_t mb,
16491649
++ mb->in_offset;
16501650
if (mb->in_offset >= mb->size)
16511651
mb->in_offset = 0;
1652-
1652+
16531653
if(mb->entry < RT_MB_ENTRY_MAX)
16541654
{
16551655
/* increase message entry */
@@ -1660,7 +1660,7 @@ rt_err_t rt_mb_send_wait(rt_mailbox_t mb,
16601660
rt_hw_interrupt_enable(temp); /* enable interrupt */
16611661
return -RT_EFULL; /* value overflowed */
16621662
}
1663-
1663+
16641664
/* resume suspended thread */
16651665
if (!rt_list_isempty(&mb->parent.suspend_thread))
16661666
{
@@ -2409,7 +2409,7 @@ rt_err_t rt_mq_urgent(rt_mq_t mq, const void *buffer, rt_size_t size)
24092409
rt_hw_interrupt_enable(temp); /* enable interrupt */
24102410
return -RT_EFULL; /* value overflowed */
24112411
}
2412-
2412+
24132413
/* resume suspended thread */
24142414
if (!rt_list_isempty(&mq->parent.suspend_thread))
24152415
{

src/irq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -21,7 +21,7 @@ static void (*rt_interrupt_leave_hook)(void);
2121

2222
/**
2323
* @ingroup Hook
24-
* This function set a hook function when the system enter a interrupt
24+
* This function set a hook function when the system enter a interrupt
2525
*
2626
* @note the hook function must be simple and never be blocked or suspend.
2727
*/
@@ -31,7 +31,7 @@ void rt_interrupt_enter_sethook(void (*hook)(void))
3131
}
3232
/**
3333
* @ingroup Hook
34-
* This function set a hook function when the system exit a interrupt.
34+
* This function set a hook function when the system exit a interrupt.
3535
*
3636
* @note the hook function must be simple and never be blocked or suspend.
3737
*/

src/kservice.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -456,7 +456,7 @@ RTM_EXPORT(rt_strncmp);
456456
rt_int32_t rt_strcmp(const char *cs, const char *ct)
457457
{
458458
while (*cs && *cs == *ct)
459-
{
459+
{
460460
cs++;
461461
ct++;
462462
}
@@ -1127,10 +1127,10 @@ rt_device_t rt_console_set_device(const char *name)
11271127

11281128
/* find new console device */
11291129
new_device = rt_device_find(name);
1130-
1130+
11311131
/* check whether it's a same device */
11321132
if (new_device == old_device) return RT_NULL;
1133-
1133+
11341134
if (new_device != RT_NULL)
11351135
{
11361136
if (_console_device != RT_NULL)

src/mem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -489,7 +489,7 @@ void *rt_realloc(void *rmem, rt_size_t newsize)
489489
{
490490
((struct heap_mem *)&heap_ptr[mem2->next])->prev = ptr2;
491491
}
492-
492+
493493
if (mem2 < lfree)
494494
{
495495
/* the splited struct is now the lowest */

src/memheap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -130,7 +130,7 @@ rt_err_t rt_memheap_detach(struct rt_memheap *heap)
130130
RT_ASSERT(heap);
131131
RT_ASSERT(rt_object_get_type(&heap->parent) == RT_Object_Class_MemHeap);
132132
RT_ASSERT(rt_object_is_systemobject(&heap->parent));
133-
133+
134134
rt_sem_detach(&heap->lock);
135135
rt_object_detach(&(heap->parent));
136136

@@ -765,7 +765,7 @@ void dump_used_memheap(struct rt_memheap *mh)
765765

766766
rt_kprintf("\nmemory heap address:\n");
767767
rt_kprintf("heap_ptr: 0x%08x\n", mh->start_addr);
768-
rt_kprintf("free : 0x%08x\n", mh->available_size);
768+
rt_kprintf("free : 0x%08x\n", mh->available_size);
769769
rt_kprintf("max_used: 0x%08x\n", mh->max_used_size);
770770
rt_kprintf("size : 0x%08x\n", mh->pool_size);
771771

0 commit comments

Comments
 (0)