Skip to content

Commit 12f6373

Browse files
committed
Add configUSE_NEWLIB_REENTRANT
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 38eefa3 commit 12f6373

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/FreeRTOSConfig_Default.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ extern char _Min_Stack_Size; /* Defined in the linker script */
126126
#define configUSE_APPLICATION_TASK_TAG 0
127127
#define configUSE_COUNTING_SEMAPHORES 1
128128
#define configGENERATE_RUN_TIME_STATS 0
129+
/*
130+
* If configUSE_NEWLIB_REENTRANT is set to 1 then a newlib reent structure
131+
* will be allocated for each created task.
132+
*
133+
* Note Newlib support has been included by popular demand, but is not used
134+
* by the FreeRTOS maintainers themselves. FreeRTOS is not responsible for
135+
* resulting newlib operation. User must be familiar with newlib and must
136+
* provide system-wide implementations of the necessary stubs.
137+
* Be warned that (at the time of writing) the current newlib design implements
138+
* a system-wide malloc() that must be provided with locks.
139+
*/
140+
#define configUSE_NEWLIB_REENTRANT 1
129141

130142
/* Co-routine definitions. */
131143
#define configUSE_CO_ROUTINES 0

0 commit comments

Comments
 (0)