summaryrefslogtreecommitdiff
path: root/common_smp/src/tx_timer_delete.c
diff options
context:
space:
mode:
authorYuxin Zhou <[email protected]>2021-10-14 00:51:26 +0000
committerYuxin Zhou <[email protected]>2021-10-14 00:51:26 +0000
commit1af8404c54f9c8d3caa2ac3523c2a5f014aecb1c (patch)
tree93e4f4d64ec8c21c01b77f19b8e7326e85227e3d /common_smp/src/tx_timer_delete.c
parent215df45d4b59d4ce8606a88f566d1d426e64a84c (diff)
Release 6.1.9
Diffstat (limited to 'common_smp/src/tx_timer_delete.c')
-rw-r--r--common_smp/src/tx_timer_delete.c66
1 files changed, 34 insertions, 32 deletions
diff --git a/common_smp/src/tx_timer_delete.c b/common_smp/src/tx_timer_delete.c
index c2f11260..ba9d9417 100644
--- a/common_smp/src/tx_timer_delete.c
+++ b/common_smp/src/tx_timer_delete.c
@@ -12,8 +12,8 @@
/**************************************************************************/
/**************************************************************************/
-/** */
-/** ThreadX Component */
+/** */
+/** ThreadX Component */
/** */
/** Timer */
/** */
@@ -30,41 +30,43 @@
#include "tx_timer.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_timer_delete PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_timer_delete PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This function deletes the specified application timer. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_SUCCESS Successful completion status */
-/* */
-/* CALLS */
-/* */
-/* _tx_timer_system_deactivate Timer deactivation function */
-/* */
-/* CALLED BY */
-/* */
-/* Application Code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* This function deletes the specified application timer. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_SUCCESS Successful completion status */
+/* */
+/* CALLS */
+/* */
+/* _tx_timer_system_deactivate Timer deactivation function */
+/* */
+/* CALLED BY */
+/* */
+/* Application Code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 William E. Lamie Initial Version 6.1 */
+/* 05-19-2020 William E. Lamie Initial Version 6.0 */
+/* 09-30-2020 Yuxin Zhou Modified comment(s), */
+/* resulting in version 6.1 */
/* */
/**************************************************************************/
UINT _tx_timer_delete(TX_TIMER *timer_ptr)
@@ -104,7 +106,7 @@ TX_TIMER *previous_timer;
/* Decrement the number of created timers. */
_tx_timer_created_count--;
-
+
/* See if the timer is the only one on the list. */
if (_tx_timer_created_count == TX_EMPTY)
{
@@ -124,9 +126,9 @@ TX_TIMER *previous_timer;
/* See if we have to update the created list head pointer. */
if (_tx_timer_created_ptr == timer_ptr)
{
-
+
/* Yes, move the head pointer to the next link. */
- _tx_timer_created_ptr = next_timer;
+ _tx_timer_created_ptr = next_timer;
}
}