Skip to content

Commit

Permalink
newlib-freertos.h: Adjust include guards and formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbartell committed Apr 25, 2023
1 parent 8eeece8 commit 02718f1
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions include/newlib-freertos.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,33 @@

#ifndef configTLS_BLOCK_TYPE
#define configTLS_BLOCK_TYPE struct _reent
#endif
#endif /* configTLS_BLOCK_TYPE */

#ifndef configINIT_TLS_BLOCK
#define configINIT_TLS_BLOCK( xTLSBlock, pxTopOfStack ) _REENT_INIT_PTR( &( xTLSBlock ) )
#endif
#define configINIT_TLS_BLOCK( xTLSBlock, pxTopOfStack ) \
do \
{ \
_REENT_INIT_PTR( &( xTLSBlock ) ); \
} \
while( 0 )
#endif /* configINIT_TLS_BLOCK */

#ifndef configSET_TLS_BLOCK
#define configSET_TLS_BLOCK( xTLSBlock ) _impure_ptr = &( xTLSBlock )
#endif
#define configSET_TLS_BLOCK( xTLSBlock ) \
do \
{ \
_impure_ptr = &( xTLSBlock ); \
} \
while( 0 )
#endif /* configSET_TLS_BLOCK */

#ifndef configDEINIT_TLS_BLOCK
#define configDEINIT_TLS_BLOCK( xTLSBlock ) _reclaim_reent( &( xTLSBlock ) )
#endif
#define configDEINIT_TLS_BLOCK( xTLSBlock ) \
do \
{ \
_reclaim_reent( &( xTLSBlock ) ); \
} \
while( 0 )
#endif /* configDEINIT_TLS_BLOCK */

#endif /* INC_NEWLIB_FREERTOS_H */

0 comments on commit 02718f1

Please sign in to comment.