Skip to content

Commit d877074

Browse files
[kernel & MemMang] use space to replace tab and remove meaningless space in the end of each line (#314)
Signed-off-by: Meco Man <920369182@qq.com> Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
1 parent 46f7feb commit d877074

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

include/croutine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef struct corCoRoutineControlBlock
6565
* crCOROUTINE_CODE pxCoRoutineCode,
6666
* UBaseType_t uxPriority,
6767
* UBaseType_t uxIndex
68-
* );
68+
* );
6969
* </pre>
7070
*
7171
* Create a new co-routine and add it to the list of co-routines that are

include/timers.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,10 +1329,10 @@ BaseType_t xTimerGenericCommand( TimerHandle_t xTimer,
13291329
/**
13301330
* task.h
13311331
* <pre>void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer, StackType_t ** ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ) </pre>
1332-
*
1333-
* This function is used to provide a statically allocated block of memory to FreeRTOS to hold the Timer Task TCB. This function is required when
1332+
*
1333+
* This function is used to provide a statically allocated block of memory to FreeRTOS to hold the Timer Task TCB. This function is required when
13341334
* configSUPPORT_STATIC_ALLOCATION is set. For more information see this URI: https://www.FreeRTOS.org/a00110.html#configSUPPORT_STATIC_ALLOCATION
1335-
*
1335+
*
13361336
* @param ppxTimerTaskTCBBuffer A handle to a statically allocated TCB buffer
13371337
* @param ppxTimerTaskStackBuffer A handle to a statically allocated Stack buffer for thie idle task
13381338
* @param pulTimerTaskStackSize A pointer to the number of elements that will fit in the allocated stack buffer

portable/MemMang/heap_1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ void * pvPortMalloc( size_t xWantedSize )
8080
if ( (xWantedSize + ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) )) > xWantedSize )
8181
{
8282
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
83-
}
84-
else
83+
}
84+
else
8585
{
8686
xWantedSize = 0;
8787
}

portable/MemMang/heap_2.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ void * pvPortMalloc( size_t xWantedSize )
133133

134134
/* The wanted size must be increased so it can contain a BlockLink_t
135135
* structure in addition to the requested amount of bytes. */
136-
if( ( xWantedSize > 0 ) &&
136+
if( ( xWantedSize > 0 ) &&
137137
( ( xWantedSize + heapSTRUCT_SIZE ) > xWantedSize ) ) /* Overflow check */
138138
{
139139
xWantedSize += heapSTRUCT_SIZE;
140140

141141
/* Byte alignment required. Check for overflow. */
142-
if( ( xWantedSize + ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ) )
142+
if( ( xWantedSize + ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ) )
143143
> xWantedSize )
144144
{
145145
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
@@ -148,11 +148,11 @@ void * pvPortMalloc( size_t xWantedSize )
148148
else
149149
{
150150
xWantedSize = 0;
151-
}
151+
}
152152
}
153-
else
153+
else
154154
{
155-
xWantedSize = 0;
155+
xWantedSize = 0;
156156
}
157157

158158

portable/MemMang/heap_4.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void * pvPortMalloc( size_t xWantedSize )
138138
{
139139
/* The wanted size must be increased so it can contain a BlockLink_t
140140
* structure in addition to the requested amount of bytes. */
141-
if( ( xWantedSize > 0 ) &&
141+
if( ( xWantedSize > 0 ) &&
142142
( ( xWantedSize + xHeapStructSize ) > xWantedSize ) ) /* Overflow check */
143143
{
144144
xWantedSize += xHeapStructSize;
@@ -147,7 +147,7 @@ void * pvPortMalloc( size_t xWantedSize )
147147
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
148148
{
149149
/* Byte alignment required. Check for overflow. */
150-
if( ( xWantedSize + ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ) )
150+
if( ( xWantedSize + ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ) )
151151
> xWantedSize )
152152
{
153153
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
@@ -156,21 +156,21 @@ void * pvPortMalloc( size_t xWantedSize )
156156
else
157157
{
158158
xWantedSize = 0;
159-
}
159+
}
160160
}
161161
else
162162
{
163163
mtCOVERAGE_TEST_MARKER();
164164
}
165-
}
166-
else
165+
}
166+
else
167167
{
168168
xWantedSize = 0;
169169
}
170170

171171
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
172172
{
173-
/* Traverse the list from the start (lowest address) block until
173+
/* Traverse the list from the start (lowest address) block until
174174
* one of adequate size is found. */
175175
pxPreviousBlock = &xStart;
176176
pxBlock = xStart.pxNextFreeBlock;

portable/MemMang/heap_5.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
*
4646
* typedef struct HeapRegion
4747
* {
48-
* uint8_t *pucStartAddress; << Start address of a block of memory that will be part of the heap.
49-
* size_t xSizeInBytes; << Size of the block of memory.
48+
* uint8_t *pucStartAddress; << Start address of a block of memory that will be part of the heap.
49+
* size_t xSizeInBytes; << Size of the block of memory.
5050
* } HeapRegion_t;
5151
*
5252
* The array is terminated using a NULL zero sized region definition, and the
@@ -149,7 +149,7 @@ void * pvPortMalloc( size_t xWantedSize )
149149
{
150150
/* The wanted size is increased so it can contain a BlockLink_t
151151
* structure in addition to the requested amount of bytes. */
152-
if( ( xWantedSize > 0 ) &&
152+
if( ( xWantedSize > 0 ) &&
153153
( ( xWantedSize + xHeapStructSize ) > xWantedSize ) ) /* Overflow check */
154154
{
155155
xWantedSize += xHeapStructSize;
@@ -162,8 +162,8 @@ void * pvPortMalloc( size_t xWantedSize )
162162
xWantedSize )
163163
{
164164
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
165-
}
166-
else
165+
}
166+
else
167167
{
168168
xWantedSize = 0;
169169
}
@@ -180,7 +180,7 @@ void * pvPortMalloc( size_t xWantedSize )
180180

181181
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
182182
{
183-
/* Traverse the list from the start (lowest address) block until
183+
/* Traverse the list from the start (lowest address) block until
184184
* one of adequate size is found. */
185185
pxPreviousBlock = &xStart;
186186
pxBlock = xStart.pxNextFreeBlock;

timers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@
523523
{
524524
/* Advance the expiry time. */
525525
xExpiredTime += pxTimer->xTimerPeriodInTicks;
526-
526+
527527
/* Call the timer callback. */
528528
traceTIMER_EXPIRED( pxTimer );
529529
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );

0 commit comments

Comments
 (0)