64 #include <inc/hw_types.h>
65 #include <inc/hw_memmap.h>
66 #include <inc/hw_aon_rtc.h>
83 #define AONRTCCurrentCompareValueGet NOROM_AONRTCCurrentCompareValueGet
84 #define AONRTCCurrent64BitValueGet NOROM_AONRTCCurrent64BitValueGet
93 #define AON_RTC_CH_NONE 0x0 // RTC No channel
94 #define AON_RTC_CH0 0x1 // RTC Channel 0
95 #define AON_RTC_CH1 0x2 // RTC Channel 1
96 #define AON_RTC_CH2 0x4 // RTC Channel 2
97 #define AON_RTC_ACTIVE 0x8 // RTC Active
104 #define AON_RTC_CONFIG_DELAY_NODELAY 0 // NO DELAY
105 #define AON_RTC_CONFIG_DELAY_1 1 // Delay of 1 clk cycle
106 #define AON_RTC_CONFIG_DELAY_2 2 // Delay of 2 clk cycles
107 #define AON_RTC_CONFIG_DELAY_4 3 // Delay of 4 clk cycles
108 #define AON_RTC_CONFIG_DELAY_8 4 // Delay of 8 clk cycles
109 #define AON_RTC_CONFIG_DELAY_16 5 // Delay of 16 clk cycles
110 #define AON_RTC_CONFIG_DELAY_32 6 // Delay of 32 clk cycles
111 #define AON_RTC_CONFIG_DELAY_48 7 // Delay of 48 clk cycles
112 #define AON_RTC_CONFIG_DELAY_64 8 // Delay of 64 clk cycles
113 #define AON_RTC_CONFIG_DELAY_80 9 // Delay of 80 clk cycles
114 #define AON_RTC_CONFIG_DELAY_96 10 // Delay of 96 clk cycles
115 #define AON_RTC_CONFIG_DELAY_112 11 // Delay of 112 clk cycles
116 #define AON_RTC_CONFIG_DELAY_128 12 // Delay of 128 clk cycles
117 #define AON_RTC_CONFIG_DELAY_144 13 // Delay of 144 clk cycles
125 #define AON_RTC_MODE_CH1_CAPTURE 1 // Capture mode
126 #define AON_RTC_MODE_CH1_COMPARE 0 // Compare Mode
134 #define AON_RTC_MODE_CH2_CONTINUOUS 1 // Continuous mode
135 #define AON_RTC_MODE_CH2_NORMALCOMPARE 0 // Normal compare mode
241 uint32_t uint32Status = 0;
258 return(uint32Status);
405 uint32_t uint32Event = 0;
450 __STATIC_INLINE uint32_t
480 __STATIC_INLINE uint32_t
512 __STATIC_INLINE uint32_t
563 __STATIC_INLINE uint32_t
620 __STATIC_INLINE uint32_t
774 __STATIC_INLINE uint32_t
777 uint32_t ui32Value = 0;
875 __STATIC_INLINE uint32_t
893 __STATIC_INLINE uint32_t
905 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
907 #ifdef ROM_AONRTCCurrentCompareValueGet
908 #undef AONRTCCurrentCompareValueGet
909 #define AONRTCCurrentCompareValueGet ROM_AONRTCCurrentCompareValueGet
911 #ifdef ROM_AONRTCCurrent64BitValueGet
912 #undef AONRTCCurrent64BitValueGet
913 #define AONRTCCurrent64BitValueGet ROM_AONRTCCurrent64BitValueGet
926 #endif // __AON_RTC_H__
static uint32_t AONRTCSubSecIncrGet(void)
Get the sub second increment of the RTC.
static bool AONRTCChannelActive(uint32_t ui32Channel)
Check if an RTC channel is active (enabled).
static void AONRTCEventClear(uint32_t ui32Channel)
Clear event from a specified channel.
static void AONRTCModeCh1Set(uint32_t ui32Mode)
Set operational mode of channel 1.
static void AONRTCModeCh2Set(uint32_t ui32Mode)
Set operational mode of channel 2.
#define AON_RTC_CONFIG_DELAY_144
uint64_t AONRTCCurrent64BitValueGet(void)
Get the current 64-bit value of the RTC counter.
static void AONRTCDisable(void)
Disable the RTC.
static bool AONRTCActive(void)
Check if the RTC is active (enabled).
static uint32_t AONRTCCompareValueGet(uint32_t ui32Channel)
Get the compare value for the given channel.
static void AONRTCChannelDisable(uint32_t ui32Channel)
Disable event operation for the specified channel.
#define AON_RTC_MODE_CH1_CAPTURE
static void AONRTCCombinedEventConfig(uint32_t ui32Channels)
Configure the source of the combined event.
static void AONRTCIncValueCh2Set(uint32_t ui32IncValue)
Set the channel 2 increment value when operating in continuous mode.
static void AONRTCReset(void)
Reset the RTC.
#define AON_RTC_MODE_CH2_NORMALCOMPARE
#define AON_RTC_MODE_CH1_COMPARE
static void AONRTCEnable(void)
Enable the RTC.
static void AONRTCDelayConfig(uint32_t ui32Delay)
Configure Event Delay for the RTC.
static uint32_t AONRTCModeCh1Get(void)
Get operational mode of channel 1.
static void AONRTCChannelEnable(uint32_t ui32Channel)
Enable event operation for the specified channel.
#define AON_RTC_MODE_CH2_CONTINUOUS
static uint32_t AONRTCCaptureValueCh1Get(void)
Get the channel 1 capture value.
static uint32_t AONRTCModeCh2Get(void)
Get operational mode of channel 2.
uint32_t AONRTCCurrentCompareValueGet(void)
Get the current value of the RTC counter in a format that matches RTC compare values.
static uint32_t AONRTCFractionGet(void)
Get fractional part (sub-seconds) of RTC free-running timer.
static void AONRTCCompareValueSet(uint32_t ui32Channel, uint32_t ui32CompValue)
Set the compare value for the given channel.
static uint32_t AONRTCSecGet(void)
Get integer part (seconds) of RTC free-running timer.
static bool AONRTCEventGet(uint32_t ui32Channel)
Get event status for a specified channel.
static uint32_t AONRTCIncValueCh2Get(void)
Get the channel2 increment value when operating in continuous mode.