|
71 | 71 |
|
72 | 72 | /* Required if struct _reent is used. */
|
73 | 73 | #if ( configUSE_NEWLIB_REENTRANT == 1 )
|
74 |
| - /* Note Newlib support has been included by popular demand, but is not |
75 |
| - * used by the FreeRTOS maintainers themselves. FreeRTOS is not |
76 |
| - * responsible for resulting newlib operation. User must be familiar with |
77 |
| - * newlib and must provide system-wide implementations of the necessary |
78 |
| - * stubs. Be warned that (at the time of writing) the current newlib design |
79 |
| - * implements a system-wide malloc() that must be provided with locks. |
80 |
| - * |
81 |
| - * See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html |
82 |
| - * for additional information. */ |
| 74 | + |
| 75 | +/* Note Newlib support has been included by popular demand, but is not |
| 76 | + * used by the FreeRTOS maintainers themselves. FreeRTOS is not |
| 77 | + * responsible for resulting newlib operation. User must be familiar with |
| 78 | + * newlib and must provide system-wide implementations of the necessary |
| 79 | + * stubs. Be warned that (at the time of writing) the current newlib design |
| 80 | + * implements a system-wide malloc() that must be provided with locks. |
| 81 | + * |
| 82 | + * See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html |
| 83 | + * for additional information. */ |
83 | 84 | #include <reent.h>
|
84 | 85 |
|
85 |
| - #define configUSE_C_RUNTIME_TLS_SUPPORT 1 |
| 86 | + #define configUSE_C_RUNTIME_TLS_SUPPORT 1 |
86 | 87 |
|
87 | 88 | #ifndef configTLS_BLOCK_TYPE
|
88 |
| - #define configTLS_BLOCK_TYPE struct _reent |
| 89 | + #define configTLS_BLOCK_TYPE struct _reent |
89 | 90 | #endif
|
90 | 91 |
|
91 | 92 | #ifndef configINIT_TLS_BLOCK
|
92 |
| - #define configINIT_TLS_BLOCK( xTLSBlock ) _REENT_INIT_PTR( &( xTLSBlock ) ) |
| 93 | + #define configINIT_TLS_BLOCK( xTLSBlock ) _REENT_INIT_PTR( &( xTLSBlock ) ) |
93 | 94 | #endif
|
94 | 95 |
|
95 | 96 | #ifndef configSET_TLS_BLOCK
|
96 | 97 | #define configSET_TLS_BLOCK( xTLSBlock ) _impure_ptr = &( xTLSBlock )
|
97 | 98 | #endif
|
98 | 99 |
|
99 | 100 | #ifndef configDEINIT_TLS_BLOCK
|
100 |
| - #define configDEINIT_TLS_BLOCK( xTLSBlock ) _reclaim_reent( &( xTLSBlock ) ) |
| 101 | + #define configDEINIT_TLS_BLOCK( xTLSBlock ) _reclaim_reent( &( xTLSBlock ) ) |
101 | 102 | #endif
|
102 |
| -#endif |
| 103 | +#endif /* if ( configUSE_NEWLIB_REENTRANT == 1 ) */ |
103 | 104 |
|
104 | 105 | #ifndef configUSE_C_RUNTIME_TLS_SUPPORT
|
105 |
| - #define configUSE_C_RUNTIME_TLS_SUPPORT 0 |
| 106 | + #define configUSE_C_RUNTIME_TLS_SUPPORT 0 |
106 | 107 | #endif
|
107 | 108 |
|
108 | 109 | #if ( ( configUSE_NEWLIB_REENTRANT == 0 ) && ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 ) )
|
|
122 | 123 | #ifndef configDEINIT_TLS_BLOCK
|
123 | 124 | #error Missing definition: configDEINIT_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
|
124 | 125 | #endif
|
125 |
| -#endif |
| 126 | +#endif /* if ( ( configUSE_NEWLIB_REENTRANT == 0 ) && ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 ) ) */ |
126 | 127 |
|
127 | 128 | /*
|
128 | 129 | * Check all the required application specific macros have been defined.
|
|
0 commit comments