1 /**************************************************************************/
2 /* */
3 /* Copyright (c) Microsoft Corporation. All rights reserved. */
4 /* */
5 /* This software is licensed under the Microsoft Software License */
6 /* Terms for Microsoft Azure RTOS. Full text of the license can be */
7 /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
8 /* and in the root directory of this software. */
9 /* */
10 /**************************************************************************/
11
12
13 /**************************************************************************/
14 /**************************************************************************/
15 /** */
16 /** ThreadX Component */
17 /** */
18 /** Module */
19 /** */
20 /**************************************************************************/
21 /**************************************************************************/
22
23 #define TXM_MODULE
24 #include "txm_module.h"
25 #ifndef TXM_TIME_GET_CALL_NOT_USED
26 /**************************************************************************/
27 /* */
28 /* FUNCTION RELEASE */
29 /* */
30 /* _tx_time_get PORTABLE C */
31 /* 6.1.10 */
32 /* AUTHOR */
33 /* */
34 /* Scott Larson, Microsoft Corporation */
35 /* */
36 /* DESCRIPTION */
37 /* */
38 /* This function retrieves the internal, free-running, system clock */
39 /* and returns it to the caller. */
40 /* */
41 /* INPUT */
42 /* */
43 /* None */
44 /* */
45 /* OUTPUT */
46 /* */
47 /* _tx_timer_system_clock Returns the system clock value */
48 /* */
49 /* CALLS */
50 /* */
51 /* _txm_module_kernel_call_dispatcher */
52 /* */
53 /* CALLED BY */
54 /* */
55 /* Module application code */
56 /* */
57 /* RELEASE HISTORY */
58 /* */
59 /* DATE NAME DESCRIPTION */
60 /* */
61 /* 09-30-2020 Scott Larson Initial Version 6.1 */
62 /* 01-31-2022 Scott Larson Modified comments and added */
63 /* CALL_NOT_USED option, */
64 /* resulting in version 6.1.10 */
65 /* */
66 /**************************************************************************/
_tx_time_get(VOID)67 ULONG _tx_time_get(VOID)
68 {
69
70 ULONG return_value;
71
72 /* Call module manager dispatcher. */
73 return_value = (ULONG) (_txm_module_kernel_call_dispatcher)(TXM_TIME_GET_CALL, 0, 0, 0);
74
75 /* Return value to the caller. */
76 return(return_value);
77 }
78 #endif
79