Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions common/src/tx_timer_initialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,15 @@ TX_TIMER_INTERNAL *_tx_timer_expired_timer_ptr;

/* Define the timer thread's control block. */

#ifdef TX_TIMER_TCB_SECTION_NAME

TX_THREAD _tx_timer_thread __attribute__((section(TX_TIMER_TCB_SECTION_NAME)));

#else

TX_THREAD _tx_timer_thread;

#endif

/* Define the variable that holds the timer thread's starting stack address. */

Expand All @@ -112,8 +119,17 @@ UINT _tx_timer_priority;
/* Define the system timer thread's stack. The default size is defined
in tx_port.h. */

#ifdef TX_TIMER_STACK_SECTION_NAME

ULONG _tx_timer_thread_stack_area[(((UINT) TX_TIMER_THREAD_STACK_SIZE)+((sizeof(ULONG))- ((UINT) 1)))/(sizeof(ULONG))] __attribute__((section(TX_TIMER_STACK_SECTION_NAME)));

#else

ULONG _tx_timer_thread_stack_area[(((UINT) TX_TIMER_THREAD_STACK_SIZE)+((sizeof(ULONG))- ((UINT) 1)))/(sizeof(ULONG))];

#endif


#else


Expand Down