summaryrefslogtreecommitdiff
path: root/common/src/tx_timer_thread_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tx_timer_thread_entry.c')
-rw-r--r--common/src/tx_timer_thread_entry.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/common/src/tx_timer_thread_entry.c b/common/src/tx_timer_thread_entry.c
index 8b1a262d..f08f8397 100644
--- a/common/src/tx_timer_thread_entry.c
+++ b/common/src/tx_timer_thread_entry.c
@@ -101,14 +101,14 @@ TX_TIMER *timer_ptr;
silly compiler warnings. */
if (timer_thread_input == TX_TIMER_ID)
{
-
+
/* Yes, valid thread entry, proceed... */
/* Now go into an infinite loop to process timer expirations. */
while (TX_LOOP_FOREVER)
{
- /* First, move the current list pointer and clear the timer
+ /* First, move the current list pointer and clear the timer
expired value. This allows the interrupt handling portion
to continue looking for timer expirations. */
TX_DISABLE
@@ -120,19 +120,19 @@ TX_TIMER *timer_ptr;
is one! */
if (expired_timers != TX_NULL)
{
-
+
expired_timers -> tx_timer_internal_list_head = &expired_timers;
}
/* Set the current list pointer to NULL. */
*_tx_timer_current_ptr = TX_NULL;
- /* Move the current pointer up one timer entry wrap if we get to
+ /* Move the current pointer up one timer entry wrap if we get to
the end of the list. */
_tx_timer_current_ptr = TX_TIMER_POINTER_ADD(_tx_timer_current_ptr, 1);
if (_tx_timer_current_ptr == _tx_timer_list_end)
{
-
+
_tx_timer_current_ptr = _tx_timer_list_start;
}
@@ -155,7 +155,7 @@ TX_TIMER *timer_ptr;
/* Pickup the next timer. */
next_timer = expired_timers -> tx_timer_internal_active_next;
-
+
/* Set the reactivate_timer to NULL. */
reactivate_timer = TX_NULL;
@@ -172,7 +172,7 @@ TX_TIMER *timer_ptr;
{
/* No, not the only expired timer. */
-
+
/* Remove this timer from the expired list. */
previous_timer = current_timer -> tx_timer_internal_active_previous;
next_timer -> tx_timer_internal_active_previous = previous_timer;
@@ -187,7 +187,7 @@ TX_TIMER *timer_ptr;
/* In any case, the timer is now off of the expired list. */
- /* Determine if the timer has expired or if it is just a really
+ /* Determine if the timer has expired or if it is just a really
big timer that needs to be placed in the list again. */
if (current_timer -> tx_timer_internal_remaining_ticks > TX_TIMER_ENTRIES)
{
@@ -203,25 +203,25 @@ TX_TIMER *timer_ptr;
/* Determine if this is an application timer. */
if (current_timer -> tx_timer_internal_timeout_function != &_tx_thread_timeout)
{
-
+
/* Derive the application timer pointer. */
-
+
/* Pickup the application timer pointer. */
TX_USER_TIMER_POINTER_GET(current_timer, timer_ptr)
/* Increment the number of expiration adjustments on this timer. */
if (timer_ptr -> tx_timer_id == TX_TIMER_ID)
{
-
+
timer_ptr -> tx_timer_performance__expiration_adjust_count++;
}
}
#endif
/* Decrement the remaining ticks of the timer. */
- current_timer -> tx_timer_internal_remaining_ticks =
+ current_timer -> tx_timer_internal_remaining_ticks =
current_timer -> tx_timer_internal_remaining_ticks - TX_TIMER_ENTRIES;
-
+
/* Set the timeout function to NULL in order to bypass the
expiration. */
timeout_function = TX_NULL;
@@ -248,22 +248,22 @@ TX_TIMER *timer_ptr;
/* Determine if this is an application timer. */
if (current_timer -> tx_timer_internal_timeout_function != &_tx_thread_timeout)
{
-
+
/* Derive the application timer pointer. */
-
+
/* Pickup the application timer pointer. */
TX_USER_TIMER_POINTER_GET(current_timer, timer_ptr)
/* Increment the number of expirations on this timer. */
if (timer_ptr -> tx_timer_id == TX_TIMER_ID)
{
-
+
timer_ptr -> tx_timer_performance_expiration_count++;
}
}
#endif
-
- /* Copy the calling function and ID into local variables before interrupts
+
+ /* Copy the calling function and ID into local variables before interrupts
are re-enabled. */
timeout_function = current_timer -> tx_timer_internal_timeout_function;
timeout_param = current_timer -> tx_timer_internal_timeout_param;
@@ -276,12 +276,12 @@ TX_TIMER *timer_ptr;
{
/* Make the timer appear that it is still active while processing
- the expiration routine and with interrupts enabled. This will
+ the expiration routine and with interrupts enabled. This will
permit proper processing of a timer deactivate from both the
expiration routine and an ISR. */
current_timer -> tx_timer_internal_list_head = &reactivate_timer;
current_timer -> tx_timer_internal_active_next = current_timer;
-
+
/* Setup the temporary timer list head pointer. */
reactivate_timer = current_timer;
}
@@ -303,7 +303,7 @@ TX_TIMER *timer_ptr;
/* Call the timer-expiration function, if non-NULL. */
if (timeout_function != TX_NULL)
{
-
+
(timeout_function) (timeout_param);
}
@@ -331,16 +331,16 @@ TX_TIMER *timer_ptr;
/* Determine if this is an application timer. */
if (current_timer -> tx_timer_internal_timeout_function != &_tx_thread_timeout)
{
-
+
/* Derive the application timer pointer. */
-
+
/* Pickup the application timer pointer. */
TX_USER_TIMER_POINTER_GET(current_timer, timer_ptr)
/* Increment the number of expirations on this timer. */
if (timer_ptr -> tx_timer_id == TX_TIMER_ID)
{
-
+
timer_ptr -> tx_timer_performance_reactivate_count++;
}
}
@@ -367,7 +367,7 @@ TX_TIMER *timer_ptr;
/* At this point, we are ready to put the timer back on one of
the timer lists. */
-
+
/* Calculate the proper place for the timer. */
timer_list = TX_TIMER_POINTER_ADD(_tx_timer_current_ptr, expiration_time);
if (TX_TIMER_INDIRECT_TO_VOID_POINTER_CONVERT(timer_list) >= TX_TIMER_INDIRECT_TO_VOID_POINTER_CONVERT(_tx_timer_list_end))
@@ -381,7 +381,7 @@ TX_TIMER *timer_ptr;
/* Now put the timer on this list. */
if ((*timer_list) == TX_NULL)
{
-
+
/* This list is NULL, just put the new timer on it. */
/* Setup the links in this timer. */
@@ -436,7 +436,7 @@ TX_TIMER *timer_ptr;
/* Build pointer to the timer thread. */
thread_ptr = &_tx_timer_thread;
- /* Set the status to suspending, in order to indicate the
+ /* Set the status to suspending, in order to indicate the
suspension is in progress. */
thread_ptr -> tx_thread_state = TX_SUSPENDED;