1 /* -------------------------------------------------------------------------- */
2 /*                             Copyright 2023 NXP                             */
3 /*                            All rights reserved.                            */
4 /*                    SPDX-License-Identifier: BSD-3-Clause                   */
5 /* -------------------------------------------------------------------------- */
6 
7 #ifndef _FWK_PLATFORM_H_
8 #define _FWK_PLATFORM_H_
9 
10 /* -------------------------------------------------------------------------- */
11 /*                                  Includes                                  */
12 /* -------------------------------------------------------------------------- */
13 
14 #include <stdint.h>
15 
16 /* -------------------------------------------------------------------------- */
17 /*                              Public prototypes                             */
18 /* -------------------------------------------------------------------------- */
19 
20 /*!
21  * \brief Initializes timestamp module
22  *
23  */
24 void PLATFORM_InitTimeStamp(void);
25 
26 /*!
27  * \brief Returns current timestamp in us
28  *
29  * \return uint64_t timestamp in us
30  */
31 uint64_t PLATFORM_GetTimeStamp(void);
32 
33 /*!
34  * \brief Returns the max timestamp value that can be returned by PLATFORM_GetTimeStamp
35  *        Can be used by the user to handle timestamp wrapping
36  *
37  * \return uint64_t the max timestamp value
38  */
39 uint64_t PLATFORM_GetMaxTimeStamp(void);
40 
41 #endif /* _FWK_PLATFORM_H_ */
42