37 #ifndef ti_spe_SecureTS__include 38 #define ti_spe_SecureTS__include 43 #if defined(__GNUC__) || defined(__IAR_SYSTEMS_ICC__) 44 #ifndef __STATIC_INLINE 45 #define __STATIC_INLINE static inline 47 #elif defined(__clang__) && defined(__ti__) 48 #define __STATIC_INLINE static __inline 51 #if defined (__cplusplus) 55 #define HWREG(x) (*((volatile unsigned long *)(x))) 57 #define AON_RTC_BASE 0x40092000 // AON_RTC 60 #define AON_RTC_O_SEC 0x00000008 63 #define AON_RTC_O_SUBSEC 0x0000000C 72 __STATIC_INLINE uint64_t
76 uint64_t returnValue ;
77 uint32_t secAndSubSec[ 2 ] ;
79 uint32_t ui32SecondSecRead ;
87 }
while ( currentRtc.secAndSubSec[ 1 ] != ui32SecondSecRead );
89 return ( currentRtc.returnValue );
99 uint32_t SecureTS_get32()
112 uint64_t SecureTS_get()
117 #if defined (__cplusplus) #define AON_RTC_O_SEC
Definition: SecureTS.h:60
__attribute__((always_inline)) __STATIC_INLINE uint32_t SecureTS_get32()
Definition: SecureTS.h:98
#define AON_RTC_BASE
Definition: SecureTS.h:57
__STATIC_INLINE uint64_t AONRTCCurrent64BitValueGet(void)
Definition: SecureTS.h:73
#define HWREG(x)
Definition: SecureTS.h:55
#define AON_RTC_O_SUBSEC
Definition: SecureTS.h:63