Skip to content

Commit 9b62418

Browse files
committed
Uncrustify: triggered by comment.
1 parent 92278d1 commit 9b62418

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

include/portable.h

+32-31
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@
135135
/* Only include heap related functions and structs if using dynamic allocation */
136136
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
137137

138-
/* Used by heap_5.c to define the start address and size of each memory region
139-
* that together comprise the total FreeRTOS heap space. */
138+
/* Used by heap_5.c to define the start address and size of each memory region
139+
* that together comprise the total FreeRTOS heap space. */
140140
typedef struct HeapRegion
141141
{
142142
uint8_t * pucStartAddress;
143143
size_t xSizeInBytes;
144144
} HeapRegion_t;
145145

146-
/* Used to pass information about the heap out of vPortGetHeapStats(). */
146+
/* Used to pass information about the heap out of vPortGetHeapStats(). */
147147
typedef struct xHeapStats
148148
{
149149
size_t xAvailableHeapSpaceInBytes; /* The total heap size currently available - this is the sum of all the free blocks, not the largest block that can be allocated. */
@@ -155,31 +155,31 @@
155155
size_t xNumberOfSuccessfulFrees; /* The number of calls to vPortFree() that has successfully freed a block of memory. */
156156
} HeapStats_t;
157157

158-
/*
159-
* Used to define multiple heap regions for use by heap_5.c. This function
160-
* must be called before any calls to pvPortMalloc() - not creating a task,
161-
* queue, semaphore, mutex, software timer, event group, etc. will result in
162-
* pvPortMalloc being called.
163-
*
164-
* pxHeapRegions passes in an array of HeapRegion_t structures - each of which
165-
* defines a region of memory that can be used as the heap. The array is
166-
* terminated by a HeapRegions_t structure that has a size of 0. The region
167-
* with the lowest start address must appear first in the array.
168-
*/
158+
/*
159+
* Used to define multiple heap regions for use by heap_5.c. This function
160+
* must be called before any calls to pvPortMalloc() - not creating a task,
161+
* queue, semaphore, mutex, software timer, event group, etc. will result in
162+
* pvPortMalloc being called.
163+
*
164+
* pxHeapRegions passes in an array of HeapRegion_t structures - each of which
165+
* defines a region of memory that can be used as the heap. The array is
166+
* terminated by a HeapRegions_t structure that has a size of 0. The region
167+
* with the lowest start address must appear first in the array.
168+
*/
169169
void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEGED_FUNCTION;
170170

171-
/*
172-
* Returns a HeapStats_t structure filled with information about the current
173-
* heap state.
174-
*/
171+
/*
172+
* Returns a HeapStats_t structure filled with information about the current
173+
* heap state.
174+
*/
175175
void vPortGetHeapStats( HeapStats_t * pxHeapStats );
176176

177-
/*
178-
* Map to the memory management routines required for the port.
179-
*/
177+
/*
178+
* Map to the memory management routines required for the port.
179+
*/
180180
void * pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
181181
void * pvPortCalloc( size_t xNum,
182-
size_t xSize ) PRIVILEGED_FUNCTION;
182+
size_t xSize ) PRIVILEGED_FUNCTION;
183183
void vPortFree( void * pv ) PRIVILEGED_FUNCTION;
184184
void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION;
185185
size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION;
@@ -194,15 +194,16 @@
194194
#endif
195195

196196
#if ( configUSE_MALLOC_FAILED_HOOK == 1 )
197-
/**
198-
* task.h
199-
* @code{c}
200-
* void vApplicationMallocFailedHook( void )
201-
* @endcode
202-
*
203-
* This hook function is called when allocation failed.
204-
*/
205-
void vApplicationMallocFailedHook( void ); /*lint !e526 Symbol not defined as it is an application callback. */
197+
198+
/**
199+
* task.h
200+
* @code{c}
201+
* void vApplicationMallocFailedHook( void )
202+
* @endcode
203+
*
204+
* This hook function is called when allocation failed.
205+
*/
206+
void vApplicationMallocFailedHook( void ); /*lint !e526 Symbol not defined as it is an application callback. */
206207
#endif /* ( configUSE_MALLOC_FAILED_HOOK == 1 ) */
207208

208209
#endif /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */

0 commit comments

Comments
 (0)