summaryrefslogtreecommitdiff
path: root/common/src/tx_timer_initialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tx_timer_initialize.c')
-rw-r--r--common/src/tx_timer_initialize.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/common/src/tx_timer_initialize.c b/common/src/tx_timer_initialize.c
index 8532b1e6..564c005a 100644
--- a/common/src/tx_timer_initialize.c
+++ b/common/src/tx_timer_initialize.c
@@ -36,7 +36,7 @@
#ifndef TX_NO_TIMER
-/* Define the system clock value that is continually incremented by the
+/* Define the system clock value that is continually incremented by the
periodic timer interrupt processing. */
volatile ULONG _tx_timer_system_clock;
@@ -67,7 +67,7 @@ TX_TIMER_INTERNAL **_tx_timer_list_end;
TX_TIMER_INTERNAL **_tx_timer_current_ptr;
-/* Define the timer expiration flag. This is used to indicate that a timer
+/* Define the timer expiration flag. This is used to indicate that a timer
has expired. */
UINT _tx_timer_expired;
@@ -146,8 +146,8 @@ ULONG _tx_timer_performance_expiration_count;
/* Define the total number of timer expiration adjustments. These are required
- if the expiration time is greater than the size of the timer list. In such
- cases, the timer is placed at the end of the list and then reactivated
+ if the expiration time is greater than the size of the timer list. In such
+ cases, the timer is placed at the end of the list and then reactivated
as many times as necessary to finally achieve the resulting timeout. */
ULONG _tx_timer_performance__expiration_adjust_count;
@@ -241,26 +241,26 @@ UINT status;
#ifndef TX_TIMER_PROCESS_IN_ISR
- /* Setup the variables associated with the system timer thread's stack and
+ /* Setup the variables associated with the system timer thread's stack and
priority. */
_tx_timer_stack_start = (VOID *) &_tx_timer_thread_stack_area[0];
_tx_timer_stack_size = ((ULONG) TX_TIMER_THREAD_STACK_SIZE);
_tx_timer_priority = ((UINT) TX_TIMER_THREAD_PRIORITY);
- /* Create the system timer thread. This thread processes all of the timer
+ /* Create the system timer thread. This thread processes all of the timer
expirations and reschedules. Its stack and priority are defined in the
low-level initialization component. */
do
{
-
+
/* Create the system timer thread. */
- status = _tx_thread_create(&_tx_timer_thread,
- TX_CONST_CHAR_TO_CHAR_POINTER_CONVERT("System Timer Thread"),
- _tx_timer_thread_entry,
- ((ULONG) TX_TIMER_ID),
- _tx_timer_stack_start, _tx_timer_stack_size,
+ status = _tx_thread_create(&_tx_timer_thread,
+ TX_CONST_CHAR_TO_CHAR_POINTER_CONVERT("System Timer Thread"),
+ _tx_timer_thread_entry,
+ ((ULONG) TX_TIMER_ID),
+ _tx_timer_stack_start, _tx_timer_stack_size,
_tx_timer_priority, _tx_timer_priority, TX_NO_TIME_SLICE, TX_DONT_START);
-
+
#ifdef TX_SAFETY_CRITICAL
/* Check return from thread create - if an error is detected throw an exception. */
@@ -274,9 +274,9 @@ UINT status;
/* Define timer initialize extension. */
TX_TIMER_INITIALIZE_EXTENSION(status)
-
+
} while (status != TX_SUCCESS);
-
+
#else
/* Clear the timer interrupt processing active flag. */