CC26xx Driver Library
aon_rtc.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: aon_rtc.h
3 * Revised: 2016-08-15 13:37:26 +0200 (Mon, 15 Aug 2016)
4 * Revision: 47015
5 *
6 * Description: Defines and prototypes for the AON RTC
7 *
8 * Copyright (c) 2015 - 2016, Texas Instruments Incorporated
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions are met:
13 *
14 * 1) Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 *
17 * 2) Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and/or other materials provided with the distribution.
20 *
21 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
22 * be used to endorse or promote products derived from this software without
23 * specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 ******************************************************************************/
38 
39 //*****************************************************************************
40 //
45 //
46 //*****************************************************************************
47 
48 #ifndef __AON_RTC_H__
49 #define __AON_RTC_H__
50 
51 //*****************************************************************************
52 //
53 // If building with a C++ compiler, make all of the definitions in this header
54 // have a C binding.
55 //
56 //*****************************************************************************
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 #include <stdbool.h>
63 #include <stdint.h>
64 #include <inc/hw_types.h>
65 #include <inc/hw_memmap.h>
66 #include <inc/hw_aon_rtc.h>
67 #include <driverlib/debug.h>
68 
69 //*****************************************************************************
70 //
71 // Support for DriverLib in ROM:
72 // This section renames all functions that are not "static inline", so that
73 // calling these functions will default to implementation in flash. At the end
74 // of this file a second renaming will change the defaults to implementation in
75 // ROM for available functions.
76 //
77 // To force use of the implementation in flash, e.g. for debugging:
78 // - Globally: Define DRIVERLIB_NOROM at project level
79 // - Per function: Use prefix "NOROM_" when calling the function
80 //
81 //*****************************************************************************
82 #if !defined(DOXYGEN)
83  #define AONRTCCurrentCompareValueGet NOROM_AONRTCCurrentCompareValueGet
84  #define AONRTCCurrent64BitValueGet NOROM_AONRTCCurrent64BitValueGet
85 #endif
86 
87 //*****************************************************************************
88 //
89 // Values that can be passed to most of the AON_RTC APIs as the ui32Channel
90 // parameter.
91 //
92 //*****************************************************************************
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
98 
99 //*****************************************************************************
100 //
101 // Values that can be passed to AONRTCConfigDelay as the ui32Delay parameter.
102 //
103 //*****************************************************************************
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
118 
119 //*****************************************************************************
120 //
121 // Values that can be passed to AONRTCSetModeCH1 as the ui32Mode
122 // parameter.
123 //
124 //*****************************************************************************
125 #define AON_RTC_MODE_CH1_CAPTURE 1 // Capture mode
126 #define AON_RTC_MODE_CH1_COMPARE 0 // Compare Mode
127 
128 //*****************************************************************************
129 //
130 // Values that can be passed to AONRTCSetModeCH2 as the ui32Mode
131 // parameter.
132 //
133 //*****************************************************************************
134 #define AON_RTC_MODE_CH2_CONTINUOUS 1 // Continuous mode
135 #define AON_RTC_MODE_CH2_NORMALCOMPARE 0 // Normal compare mode
136 
137 //*****************************************************************************
138 //
139 // Mutliplication factor for converting from seconds to corresponding time in
140 // the "CompareValue" format.
141 // The factor correspond to the compare value format described in the registers
142 // \ref AON_RTC_O_CH0CMP, \ref AON_RTC_O_CH1CMP and \ref AON_RTC_O_CH2CMP.
143 // Example1:
144 // 4 milliseconds in CompareValue format can be written like this:
145 // ((uint32_t)( 0.004 * FACTOR_SEC_TO_COMP_VAL_FORMAT ))
146 // Example2:
147 // 4 seconds in CompareValue format can be written like this:
148 // ( 4 * FACTOR_SEC_TO_COMP_VAL_FORMAT )
149 //
150 //*****************************************************************************
151 #define FACTOR_SEC_TO_COMP_VAL_FORMAT 0x00010000
152 
153 //*****************************************************************************
154 //
155 // API Functions and prototypes
156 //
157 //*****************************************************************************
158 
159 //*****************************************************************************
160 //
171 //
172 //*****************************************************************************
173 __STATIC_INLINE void
175 {
176  //
177  // Enable RTC.
178  //
180 }
181 
182 //*****************************************************************************
183 //
194 //
195 //*****************************************************************************
196 __STATIC_INLINE void
198 {
199  //
200  // Disable RTC
201  //
203 }
204 
205 //*****************************************************************************
206 //
212 //
213 //*****************************************************************************
214 __STATIC_INLINE void
216 {
217  //
218  // Reset RTC.
219  //
221 }
222 
223 //*****************************************************************************
224 //
230 //
231 //*****************************************************************************
232 __STATIC_INLINE bool
234 {
235  // Read if RTC is enabled
236  return(HWREGBITW(AON_RTC_BASE + AON_RTC_O_CTL, AON_RTC_CTL_EN_BITN));
237 }
238 
239 //*****************************************************************************
240 //
252 //
253 //*****************************************************************************
254 __STATIC_INLINE bool
255 AONRTCChannelActive(uint32_t ui32Channel)
256 {
257  uint32_t uint32Status = 0;
258 
259  if(ui32Channel & AON_RTC_CH0)
260  {
261  uint32Status = HWREGBITW(AON_RTC_BASE + AON_RTC_O_CHCTL, AON_RTC_CHCTL_CH0_EN_BITN);
262  }
263 
264  if(ui32Channel & AON_RTC_CH1)
265  {
266  uint32Status = HWREGBITW(AON_RTC_BASE + AON_RTC_O_CHCTL, AON_RTC_CHCTL_CH1_EN_BITN);
267  }
268 
269  if(ui32Channel & AON_RTC_CH2)
270  {
271  uint32Status = HWREGBITW(AON_RTC_BASE + AON_RTC_O_CHCTL, AON_RTC_CHCTL_CH2_EN_BITN);
272  }
273 
274  return(uint32Status);
275 }
276 
277 //*****************************************************************************
278 //
305 //
306 //*****************************************************************************
307 __STATIC_INLINE void
308 AONRTCDelayConfig(uint32_t ui32Delay)
309 {
310  uint32_t ui32Cfg;
311 
312  //
313  // Check the arguments.
314  //
315  ASSERT(ui32Delay <= AON_RTC_CONFIG_DELAY_144);
316 
317 
318  ui32Cfg = HWREG(AON_RTC_BASE + AON_RTC_O_CTL);
319  ui32Cfg &= ~(AON_RTC_CTL_EV_DELAY_M);
320  ui32Cfg |= (ui32Delay << AON_RTC_CTL_EV_DELAY_S);
321 
322  HWREG(AON_RTC_BASE + AON_RTC_O_CTL) = ui32Cfg;
323 }
324 
325 //*****************************************************************************
326 //
342 //
343 //*****************************************************************************
344 __STATIC_INLINE void
345 AONRTCCombinedEventConfig(uint32_t ui32Channels)
346 {
347  uint32_t ui32Cfg;
348 
349  //
350  // Check the arguments.
351  //
352  ASSERT( (ui32Channels & (AON_RTC_CH0 | AON_RTC_CH1 | AON_RTC_CH2)) ||
353  (ui32Channels == AON_RTC_CH_NONE) );
354 
355  ui32Cfg = HWREG(AON_RTC_BASE + AON_RTC_O_CTL);
356  ui32Cfg &= ~(AON_RTC_CTL_COMB_EV_MASK_M);
357  ui32Cfg |= (ui32Channels << AON_RTC_CTL_COMB_EV_MASK_S);
358 
359  HWREG(AON_RTC_BASE + AON_RTC_O_CTL) = ui32Cfg;
360 }
361 
362 //*****************************************************************************
363 //
375 //
376 //*****************************************************************************
377 __STATIC_INLINE void
378 AONRTCEventClear(uint32_t ui32Channel)
379 {
380  // Check the arguments.
381  ASSERT((ui32Channel == AON_RTC_CH0) ||
382  (ui32Channel == AON_RTC_CH1) ||
383  (ui32Channel == AON_RTC_CH2));
384 
385  if(ui32Channel & AON_RTC_CH0)
386  {
388  }
389 
390  if(ui32Channel & AON_RTC_CH1)
391  {
393  }
394 
395  if(ui32Channel & AON_RTC_CH2)
396  {
398  }
399 }
400 
401 //*****************************************************************************
402 //
416 //
417 //*****************************************************************************
418 __STATIC_INLINE bool
419 AONRTCEventGet(uint32_t ui32Channel)
420 {
421  uint32_t uint32Event = 0;
422 
423  // Check the arguments.
424  ASSERT((ui32Channel == AON_RTC_CH0) ||
425  (ui32Channel == AON_RTC_CH1) ||
426  (ui32Channel == AON_RTC_CH2));
427 
428  if(ui32Channel & AON_RTC_CH0)
429  {
430  uint32Event = HWREGBITW(AON_RTC_BASE + AON_RTC_O_EVFLAGS, AON_RTC_EVFLAGS_CH0_BITN);
431  }
432 
433  if(ui32Channel & AON_RTC_CH1)
434  {
435  uint32Event = HWREGBITW(AON_RTC_BASE + AON_RTC_O_EVFLAGS, AON_RTC_EVFLAGS_CH1_BITN);
436  }
437 
438  if(ui32Channel & AON_RTC_CH2)
439  {
440  uint32Event = HWREGBITW(AON_RTC_BASE + AON_RTC_O_EVFLAGS, AON_RTC_EVFLAGS_CH2_BITN);
441  }
442 
443  return(uint32Event);
444 }
445 
446 //*****************************************************************************
447 //
464 //
465 //*****************************************************************************
466 __STATIC_INLINE uint32_t
468 {
469  //
470  // The following read gets the seconds, but also latches the fractional
471  // part.
472  //
473  return(HWREG(AON_RTC_BASE + AON_RTC_O_SEC));
474 }
475 
476 //*****************************************************************************
477 //
494 //
495 //*****************************************************************************
496 __STATIC_INLINE uint32_t
498 {
499  //
500  // Note1: It is recommended to use AON RTCCurrentCompareValueGet() instead
501  // of this function if the <16.16> format is sufficient.
502  // Note2: AONRTCSecGet() must be called before this function to get a
503  // consistent reading.
504  // Note3: Interrupts must be disabled between the call to AONRTCSecGet() and this
505  // call since there are interrupt functions that reads AON_RTC_O_SEC
506  //
507  return(HWREG(AON_RTC_BASE + AON_RTC_O_SUBSEC));
508 }
509 
510 //*****************************************************************************
511 //
526 //
527 //*****************************************************************************
528 __STATIC_INLINE uint32_t
530 {
531  return(HWREG(AON_RTC_BASE + AON_RTC_O_SUBSECINC));
532 }
533 
534 //*****************************************************************************
535 //
552 //
553 //*****************************************************************************
554 __STATIC_INLINE void
555 AONRTCModeCh1Set(uint32_t ui32Mode)
556 {
557  // Check the arguments.
558  ASSERT((ui32Mode == AON_RTC_MODE_CH1_CAPTURE) ||
559  (ui32Mode == AON_RTC_MODE_CH1_COMPARE));
560 
562 }
563 
564 //*****************************************************************************
565 //
577 //
578 //*****************************************************************************
579 __STATIC_INLINE uint32_t
581 {
583 }
584 
585 //*****************************************************************************
586 //
606 //
607 //*****************************************************************************
608 __STATIC_INLINE void
609 AONRTCModeCh2Set(uint32_t ui32Mode)
610 {
611  // Check the arguments.
612  ASSERT((ui32Mode == AON_RTC_MODE_CH2_CONTINUOUS) ||
613  (ui32Mode == AON_RTC_MODE_CH2_NORMALCOMPARE));
614 
616 }
617 
618 //*****************************************************************************
619 //
634 //
635 //*****************************************************************************
636 __STATIC_INLINE uint32_t
638 {
640 }
641 
642 //*****************************************************************************
643 //
659 //
660 //*****************************************************************************
661 __STATIC_INLINE void
662 AONRTCChannelEnable(uint32_t ui32Channel)
663 {
664  // Check the arguments.
665  ASSERT((ui32Channel == AON_RTC_CH0) ||
666  (ui32Channel == AON_RTC_CH1) ||
667  (ui32Channel == AON_RTC_CH2));
668 
669  if(ui32Channel & AON_RTC_CH0)
670  {
672  }
673 
674  if(ui32Channel & AON_RTC_CH1)
675  {
677  }
678 
679  if(ui32Channel & AON_RTC_CH2)
680  {
682  }
683 }
684 
685 //*****************************************************************************
686 //
702 //
703 //*****************************************************************************
704 __STATIC_INLINE void
705 AONRTCChannelDisable(uint32_t ui32Channel)
706 {
707  // Check the arguments.
708  ASSERT((ui32Channel == AON_RTC_CH0) ||
709  (ui32Channel == AON_RTC_CH1) ||
710  (ui32Channel == AON_RTC_CH2));
711 
712  if(ui32Channel & AON_RTC_CH0)
713  {
715  }
716 
717  if(ui32Channel & AON_RTC_CH1)
718  {
720  }
721 
722  if(ui32Channel & AON_RTC_CH2)
723  {
725  }
726 }
727 
728 //*****************************************************************************
729 //
749 //
750 //*****************************************************************************
751 __STATIC_INLINE void
752 AONRTCCompareValueSet(uint32_t ui32Channel, uint32_t ui32CompValue)
753 {
754  // Check the arguments.
755  ASSERT((ui32Channel == AON_RTC_CH0) ||
756  (ui32Channel == AON_RTC_CH1) ||
757  (ui32Channel == AON_RTC_CH2));
758 
759  if(ui32Channel & AON_RTC_CH0)
760  {
761  HWREG(AON_RTC_BASE + AON_RTC_O_CH0CMP) = ui32CompValue;
762  }
763 
764  if(ui32Channel & AON_RTC_CH1)
765  {
766  HWREG(AON_RTC_BASE + AON_RTC_O_CH1CMP) = ui32CompValue;
767  }
768 
769  if(ui32Channel & AON_RTC_CH2)
770  {
771  HWREG(AON_RTC_BASE + AON_RTC_O_CH2CMP) = ui32CompValue;
772  }
773 }
774 
775 //*****************************************************************************
776 //
788 //
789 //*****************************************************************************
790 __STATIC_INLINE uint32_t
791 AONRTCCompareValueGet(uint32_t ui32Channel)
792 {
793  uint32_t ui32Value = 0;
794 
795  // Check the arguments
796  ASSERT((ui32Channel == AON_RTC_CH0) ||
797  (ui32Channel == AON_RTC_CH1) ||
798  (ui32Channel == AON_RTC_CH2));
799 
800  if(ui32Channel & AON_RTC_CH0)
801  {
802  ui32Value = HWREG(AON_RTC_BASE + AON_RTC_O_CH0CMP);
803  }
804 
805  if(ui32Channel & AON_RTC_CH1)
806  {
807  ui32Value = HWREG(AON_RTC_BASE + AON_RTC_O_CH1CMP);
808  }
809 
810  if(ui32Channel & AON_RTC_CH2)
811  {
812  ui32Value = HWREG(AON_RTC_BASE + AON_RTC_O_CH2CMP);
813  }
814 
815  return(ui32Value);
816 }
817 
818 //*****************************************************************************
819 //
835 //
836 //*****************************************************************************
837 extern uint32_t AONRTCCurrentCompareValueGet(void);
838 
839 //*****************************************************************************
840 //
849 //
850 //*****************************************************************************
851 extern uint64_t AONRTCCurrent64BitValueGet(void);
852 
853 //*****************************************************************************
854 //
867 //
868 //*****************************************************************************
869 __STATIC_INLINE void
870 AONRTCIncValueCh2Set(uint32_t ui32IncValue)
871 {
872  HWREG(AON_RTC_BASE + AON_RTC_O_CH2CMPINC) = ui32IncValue;
873 }
874 
875 //*****************************************************************************
876 //
889 //
890 //*****************************************************************************
891 __STATIC_INLINE uint32_t
893 {
894  return(HWREG(AON_RTC_BASE + AON_RTC_O_CH2CMPINC));
895 }
896 
897 //*****************************************************************************
898 //
907 //
908 //*****************************************************************************
909 __STATIC_INLINE uint32_t
911 {
912  return(HWREG(AON_RTC_BASE + AON_RTC_O_CH1CAPT));
913 }
914 
915 //*****************************************************************************
916 //
917 // Support for DriverLib in ROM:
918 // Redirect to implementation in ROM when available.
919 //
920 //*****************************************************************************
921 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
922  #include <driverlib/rom.h>
923  #ifdef ROM_AONRTCCurrentCompareValueGet
924  #undef AONRTCCurrentCompareValueGet
925  #define AONRTCCurrentCompareValueGet ROM_AONRTCCurrentCompareValueGet
926  #endif
927  #ifdef ROM_AONRTCCurrent64BitValueGet
928  #undef AONRTCCurrent64BitValueGet
929  #define AONRTCCurrent64BitValueGet ROM_AONRTCCurrent64BitValueGet
930  #endif
931 #endif
932 
933 //*****************************************************************************
934 //
935 // Mark the end of the C bindings section for C++ compilers.
936 //
937 //*****************************************************************************
938 #ifdef __cplusplus
939 }
940 #endif
941 
942 #endif // __AON_RTC_H__
943 
944 //*****************************************************************************
945 //
949 //
950 //*****************************************************************************
#define AON_RTC_CH1
Definition: aon_rtc.h:95
static uint32_t AONRTCSubSecIncrGet(void)
Get the sub second increment of the RTC.
Definition: aon_rtc.h:529
static bool AONRTCChannelActive(uint32_t ui32Channel)
Check if an RTC channel is active (enabled).
Definition: aon_rtc.h:255
static void AONRTCEventClear(uint32_t ui32Channel)
Clear event from a specified channel.
Definition: aon_rtc.h:378
static void AONRTCModeCh1Set(uint32_t ui32Mode)
Set operational mode of channel 1.
Definition: aon_rtc.h:555
static void AONRTCModeCh2Set(uint32_t ui32Mode)
Set operational mode of channel 2.
Definition: aon_rtc.h:609
#define AON_RTC_CONFIG_DELAY_144
Definition: aon_rtc.h:117
#define AON_RTC_CH_NONE
Definition: aon_rtc.h:93
uint64_t AONRTCCurrent64BitValueGet(void)
Get the current 64-bit value of the RTC counter.
Definition: aon_rtc.c:87
static void AONRTCDisable(void)
Disable the RTC.
Definition: aon_rtc.h:197
static bool AONRTCActive(void)
Check if the RTC is active (enabled).
Definition: aon_rtc.h:233
#define AON_RTC_CH2
Definition: aon_rtc.h:96
static uint32_t AONRTCCompareValueGet(uint32_t ui32Channel)
Get the compare value for the given channel.
Definition: aon_rtc.h:791
static void AONRTCChannelDisable(uint32_t ui32Channel)
Disable event operation for the specified channel.
Definition: aon_rtc.h:705
#define AON_RTC_MODE_CH1_CAPTURE
Definition: aon_rtc.h:125
static void AONRTCCombinedEventConfig(uint32_t ui32Channels)
Configure the source of the combined event.
Definition: aon_rtc.h:345
static void AONRTCIncValueCh2Set(uint32_t ui32IncValue)
Set the channel 2 increment value when operating in continuous mode.
Definition: aon_rtc.h:870
static void AONRTCReset(void)
Reset the RTC.
Definition: aon_rtc.h:215
#define AON_RTC_CH0
Definition: aon_rtc.h:94
#define AON_RTC_MODE_CH2_NORMALCOMPARE
Definition: aon_rtc.h:135
#define ASSERT(expr)
Definition: debug.h:74
#define AON_RTC_MODE_CH1_COMPARE
Definition: aon_rtc.h:126
static void AONRTCEnable(void)
Enable the RTC.
Definition: aon_rtc.h:174
static void AONRTCDelayConfig(uint32_t ui32Delay)
Configure Event Delay for the RTC.
Definition: aon_rtc.h:308
static uint32_t AONRTCModeCh1Get(void)
Get operational mode of channel 1.
Definition: aon_rtc.h:580
static void AONRTCChannelEnable(uint32_t ui32Channel)
Enable event operation for the specified channel.
Definition: aon_rtc.h:662
#define AON_RTC_MODE_CH2_CONTINUOUS
Definition: aon_rtc.h:134
static uint32_t AONRTCCaptureValueCh1Get(void)
Get the channel 1 capture value.
Definition: aon_rtc.h:910
static uint32_t AONRTCModeCh2Get(void)
Get operational mode of channel 2.
Definition: aon_rtc.h:637
uint32_t AONRTCCurrentCompareValueGet(void)
Get the current value of the RTC counter in a format that matches RTC compare values.
Definition: aon_rtc.c:62
static uint32_t AONRTCFractionGet(void)
Get fractional part (sub-seconds) of RTC free-running timer.
Definition: aon_rtc.h:497
static void AONRTCCompareValueSet(uint32_t ui32Channel, uint32_t ui32CompValue)
Set the compare value for the given channel.
Definition: aon_rtc.h:752
static uint32_t AONRTCSecGet(void)
Get integer part (seconds) of RTC free-running timer.
Definition: aon_rtc.h:467
static bool AONRTCEventGet(uint32_t ui32Channel)
Get event status for a specified channel.
Definition: aon_rtc.h:419
static uint32_t AONRTCIncValueCh2Get(void)
Get the channel2 increment value when operating in continuous mode.
Definition: aon_rtc.h:892