37 #ifndef ti_spe_SecureTS__include 38 #define ti_spe_SecureTS__include 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) 56 (*((volatile unsigned long *)(x))) 58 #define AON_RTC_BASE 0x40092000 // AON_RTC 61 #define AON_RTC_O_SEC 0x00000008 64 #define AON_RTC_O_SUBSEC 0x0000000C 73 __STATIC_INLINE uint64_t
77 uint64_t returnValue ;
78 uint32_t secAndSubSec[ 2 ] ;
80 uint32_t ui32SecondSecRead ;
88 }
while ( currentRtc.secAndSubSec[ 1 ] != ui32SecondSecRead );
90 return ( currentRtc.returnValue );
100 uint32_t SecureTS_get32()
113 uint64_t SecureTS_get()
118 #if defined (__cplusplus) #define AON_RTC_O_SEC
Definition: SecureTS.h:61
__attribute__((always_inline)) __STATIC_INLINE uint32_t SecureTS_get32()
Definition: SecureTS.h:99
#define AON_RTC_BASE
Definition: SecureTS.h:58
__STATIC_INLINE uint64_t AONRTCCurrent64BitValueGet(void)
Definition: SecureTS.h:74
#define HWREG(x)
Definition: SecureTS.h:55
#define AON_RTC_O_SUBSEC
Definition: SecureTS.h:64