CC35xxDriverLibrary
hw_systim.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: hw_systim.h
3 *
4 * Description: Defines and prototypes for the SYSTIM peripheral.
5 *
6 * Copyright (c) 2023, Texas Instruments Incorporated
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 * 1) Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 *
15 * 2) Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 *
19 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
20 * be used to endorse or promote products derived from this software without
21 * specific prior written permission.
22 *
23  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************/
36 #ifndef __HW_SYSTIM_H__
37 #define __HW_SYSTIM_H__
38 /*-------------------------------------------------------------------------------
39 
40 This section defines the register offsets of the SYSTIM component
41 
42 --------------------------------------------------------------------------------- */
43 
44 //This register identifies the peripheral and its exact version
45 #define SYSTIM_O_DESC 0x00000000U
46 
47 //INTERRUPT BIT MASK
48 #define SYSTIM_O_IBM 0x00000044U
49 
50 //Raw interrupt status reflects all pending interrupts, regardless of masking
51 #define SYSTIM_O_RIS 0x00000048U
52 
53 //Masked interrupt status
54 #define SYSTIM_O_MIS 0x0000004CU
55 
56 //Interrupt set
57 #define SYSTIM_O_ISET 0x00000050U
58 
59 //Interrupt clear
60 #define SYSTIM_O_ICLR 0x00000054U
61 
62 //Interrupt mask set
63 #define SYSTIM_O_IMSET 0x00000058U
64 
65 //Interrupt mask clear
66 #define SYSTIM_O_IMCLR 0x0000005CU
67 
68 //This register can be used by the software developer to control the behavior of the peripheral relative to the CPU Halted input
69 #define SYSTIM_O_EMU 0x00000060U
70 
71 //Digital Test Bus
72 #define SYSTIM_O_DTB 0x00000064U
73 
74 //Systimer Counter Value[31:0]
75 #define SYSTIM_O_TIME250N 0x00000100U
76 
77 //Systimer Counter Value[33:2]
78 #define SYSTIM_O_TIME1U 0x00000104U
79 
80 //SYSTIMER'S Channel Output Event Values
81 #define SYSTIM_O_OUT 0x00000108U
82 
83 //SYSTIMER channel 0 configuration
84 #define SYSTIM_O_CH0CFG 0x0000010CU
85 
86 //SYSTIMER channel 1 configuration
87 #define SYSTIM_O_CH1CFG 0x00000110U
88 
89 //System Timer Channel 0 Capture/Compare Register
90 #define SYSTIM_O_CH0CC 0x00000120U
91 
92 //System Timer Channel 1 Capture/Compare Register
93 #define SYSTIM_O_CH1CC 0x00000124U
94 
95 //This Register will be used to specify which TIME bit is required by LGPT to be forwarded from SYSTIMER
96 #define SYSTIM_O_TIMEBIT 0x00000134U
97 
98 //PI filter's Proportional Gain Value
99 #define SYSTIM_O_KP 0x00000138U
100 
101 //PI filter's Accumulator's Gain Value
102 #define SYSTIM_O_KI 0x0000013CU
103 
104 //STATUS
105 #define SYSTIM_O_STA 0x00000140U
106 
107 //ARMSET on read gives out the status of the 2 channels
108 #define SYSTIM_O_ARMSET 0x00000144U
109 
110 //ARMCLR on read gives out the status of the 2 channels
111 #define SYSTIM_O_ARMCLR 0x00000148U
112 
113 //Save/restore alias registers Channel 0
114 #define SYSTIM_O_CH0CCSR 0x0000014CU
115 
116 //Save/restore alias registers Channel 1
117 #define SYSTIM_O_CH1CCSR 0x00000150U
118 
119 //CLOCK CONFIG
120 #define SYSTIM_O_CLKCFG 0x00001000U
121 
122 
123 
124 /*-----------------------------------REGISTER------------------------------------
125  Register name: DESC
126  Offset name: SYSTIM_O_DESC
127  Relative address: 0x0
128  Description: This register identifies the peripheral and its exact version.
129  Default Value: 0x94431010
130 
131  Field: MINREV
132  From..to bits: 0...3
133  DefaultValue: 0x0
134  Access type: read-only
135  Description: Minor revision of IP 0-15.
136 
137  ENUMs:
138  MINIMUM: Smallest value
139  MAXIMUM: Highest possible value
140 */
141 #define SYSTIM_DESC_MINREV_W 4U
142 #define SYSTIM_DESC_MINREV_M 0x0000000FU
143 #define SYSTIM_DESC_MINREV_S 0U
144 #define SYSTIM_DESC_MINREV_MINIMUM 0x00000000U
145 #define SYSTIM_DESC_MINREV_MAXIMUM 0x0000000FU
146 /*
147 
148  Field: MAJREV
149  From..to bits: 4...7
150  DefaultValue: 0x1
151  Access type: read-only
152  Description: Major revision of IP 0-15
153 
154  ENUMs:
155  MINIMUM: Smallest value
156  MAXIMUM: Highest possible value
157 */
158 #define SYSTIM_DESC_MAJREV_W 4U
159 #define SYSTIM_DESC_MAJREV_M 0x000000F0U
160 #define SYSTIM_DESC_MAJREV_S 4U
161 #define SYSTIM_DESC_MAJREV_MINIMUM 0x00000000U
162 #define SYSTIM_DESC_MAJREV_MAXIMUM 0x000000F0U
163 /*
164 
165  Field: INSTIDX
166  From..to bits: 8...11
167  DefaultValue: 0x0
168  Access type: read-only
169  Description: If multiple instances of IP exists in SOC, this field can identify the instance number 0-15
170 
171  ENUMs:
172  MINIMUM: Smallest value
173  MAXIMUM: Highest possible value
174 */
175 #define SYSTIM_DESC_INSTIDX_W 4U
176 #define SYSTIM_DESC_INSTIDX_M 0x00000F00U
177 #define SYSTIM_DESC_INSTIDX_S 8U
178 #define SYSTIM_DESC_INSTIDX_MINIMUM 0x00000000U
179 #define SYSTIM_DESC_INSTIDX_MAXIMUM 0x00000F00U
180 /*
181 
182  Field: STDIPOFF
183  From..to bits: 12...15
184  DefaultValue: 0x1
185  Access type: read-only
186  Description: 64 B standard IP MMR block (beginning with aggregated IRQ registers)
187 
188  0: STDIP MMRs do not exist
189  1:15: These MMRs begin at offset 64*STDIPOFF from IP base address
190 
191  ENUMs:
192  MINIMUM: Smallest value
193  MAXIMUM: Highest possible value
194 */
195 #define SYSTIM_DESC_STDIPOFF_W 4U
196 #define SYSTIM_DESC_STDIPOFF_M 0x0000F000U
197 #define SYSTIM_DESC_STDIPOFF_S 12U
198 #define SYSTIM_DESC_STDIPOFF_MINIMUM 0x00000000U
199 #define SYSTIM_DESC_STDIPOFF_MAXIMUM 0x0000F000U
200 /*
201 
202  Field: MODID
203  From..to bits: 16...31
204  DefaultValue: 0x9443
205  Access type: read-only
206  Description: Module identifier MODID[15:0]. Used to uniquely identify this IP. See comment about derivation below
207 
208  ENUMs:
209  MINIMUM: Smallest value
210  MAXIMUM: Highest possible value
211 */
212 #define SYSTIM_DESC_MODID_W 16U
213 #define SYSTIM_DESC_MODID_M 0xFFFF0000U
214 #define SYSTIM_DESC_MODID_S 16U
215 #define SYSTIM_DESC_MODID_MINIMUM 0x00000000U
216 #define SYSTIM_DESC_MODID_MAXIMUM 0xFFFF0000U
217 
218 
219 /*-----------------------------------REGISTER------------------------------------
220  Register name: IBM
221  Offset name: SYSTIM_O_IBM
222  Relative address: 0x44
223  Description: INTERRUPT BIT MASK
224 
225  Interrupt Mask. If a bit is cleared, then corresponding interrupt is masked.
226  Default Value: 0x00000000
227 
228  Field: EVT0
229  From..to bits: 0...0
230  DefaultValue: 0x0
231  Access type: read-write
232  Description: Mask EVENT0 in MIS register.
233 
234  ENUMs:
235  CLR: Clear Interrupt Mask
236  SET: Set Interrupt Mask
237 */
238 #define SYSTIM_IBM_EVT0 0x00000001U
239 #define SYSTIM_IBM_EVT0_M 0x00000001U
240 #define SYSTIM_IBM_EVT0_S 0U
241 #define SYSTIM_IBM_EVT0_CLR 0x00000000U
242 #define SYSTIM_IBM_EVT0_SET 0x00000001U
243 /*
244 
245  Field: EVT1
246  From..to bits: 1...1
247  DefaultValue: 0x0
248  Access type: read-write
249  Description: Mask EVENT1 in MIS register.
250 
251  ENUMs:
252  CLR: Clear Interrupt Mask
253  SET: Set Interrrupt Mask
254 */
255 #define SYSTIM_IBM_EVT1 0x00000002U
256 #define SYSTIM_IBM_EVT1_M 0x00000002U
257 #define SYSTIM_IBM_EVT1_S 1U
258 #define SYSTIM_IBM_EVT1_CLR 0x00000000U
259 #define SYSTIM_IBM_EVT1_SET 0x00000002U
260 /*
261 
262  Field: OVFL
263  From..to bits: 6...6
264  DefaultValue: 0x0
265  Access type: read-write
266  Description: Mask Timer Overflow Event in MIS register.
267 
268  ENUMs:
269  CLR: Clear Interrupt Mask
270  SET: Set Interrrupt Mask
271 */
272 #define SYSTIM_IBM_OVFL 0x00000040U
273 #define SYSTIM_IBM_OVFL_M 0x00000040U
274 #define SYSTIM_IBM_OVFL_S 6U
275 #define SYSTIM_IBM_OVFL_CLR 0x00000000U
276 #define SYSTIM_IBM_OVFL_SET 0x00000040U
277 
278 
279 /*-----------------------------------REGISTER------------------------------------
280  Register name: RIS
281  Offset name: SYSTIM_O_RIS
282  Relative address: 0x48
283  Description: Raw interrupt status reflects all pending interrupts, regardless of masking. The RIS register allows the user to implement a poll scheme. A flag set in this register can be cleared by writing 1 to the ICLR register bit even if the corresponding IMASK bit is not enabled.
284  Default Value: 0x00000000
285 
286  Field: EVT0
287  From..to bits: 0...0
288  DefaultValue: 0x0
289  Access type: read-only
290  Description: Raw interrupt status for EVENT0.
291 
292 
293  This bit is set to 1 when an event is received on EVENT0 channel.
294 
295  ENUMs:
296  CLR: Interrupt did not occur
297  SET: Interrupt occured
298 */
299 #define SYSTIM_RIS_EVT0 0x00000001U
300 #define SYSTIM_RIS_EVT0_M 0x00000001U
301 #define SYSTIM_RIS_EVT0_S 0U
302 #define SYSTIM_RIS_EVT0_CLR 0x00000000U
303 #define SYSTIM_RIS_EVT0_SET 0x00000001U
304 /*
305 
306  Field: EVT1
307  From..to bits: 1...1
308  DefaultValue: 0x0
309  Access type: read-only
310  Description: Raw interrupt status for EVENT1.
311 
312 
313  This bit is set to 1 when an event is received on EVENT1 channel.
314 
315  ENUMs:
316  CLR: Interrupt did not occur
317  SET: Interrupt occured
318 */
319 #define SYSTIM_RIS_EVT1 0x00000002U
320 #define SYSTIM_RIS_EVT1_M 0x00000002U
321 #define SYSTIM_RIS_EVT1_S 1U
322 #define SYSTIM_RIS_EVT1_CLR 0x00000000U
323 #define SYSTIM_RIS_EVT1_SET 0x00000002U
324 /*
325 
326  Field: OVFL
327  From..to bits: 6...6
328  DefaultValue: 0x0
329  Access type: read-only
330  Description: Raw interrupt status for Timer Overflow EVENT.
331 
332 
333  This bit is set to 1 when an event is received on Timer Ovreflow EVENT channel.
334 
335  ENUMs:
336  CLR: Interrupt did not occur
337  SET: Interrupt occured
338 */
339 #define SYSTIM_RIS_OVFL 0x00000040U
340 #define SYSTIM_RIS_OVFL_M 0x00000040U
341 #define SYSTIM_RIS_OVFL_S 6U
342 #define SYSTIM_RIS_OVFL_CLR 0x00000000U
343 #define SYSTIM_RIS_OVFL_SET 0x00000040U
344 
345 
346 /*-----------------------------------REGISTER------------------------------------
347  Register name: MIS
348  Offset name: SYSTIM_O_MIS
349  Relative address: 0x4C
350  Description: Masked interrupt status. This is an AND of the IMASK and RIS registers.
351  Default Value: 0x00000000
352 
353  Field: EVT0
354  From..to bits: 0...0
355  DefaultValue: 0x0
356  Access type: read-only
357  Description: Mask interrupt status for EVENT0
358 
359  ENUMs:
360  CLR: Interrupt did not occur
361  SET: Interrupt occured
362 */
363 #define SYSTIM_MIS_EVT0 0x00000001U
364 #define SYSTIM_MIS_EVT0_M 0x00000001U
365 #define SYSTIM_MIS_EVT0_S 0U
366 #define SYSTIM_MIS_EVT0_CLR 0x00000000U
367 #define SYSTIM_MIS_EVT0_SET 0x00000001U
368 /*
369 
370  Field: EVT1
371  From..to bits: 1...1
372  DefaultValue: 0x0
373  Access type: read-only
374  Description: Mask interrupt status for EVENT1
375 
376  ENUMs:
377  CLR: Interrupt did not occur
378  SET: Interrupt occured
379 */
380 #define SYSTIM_MIS_EVT1 0x00000002U
381 #define SYSTIM_MIS_EVT1_M 0x00000002U
382 #define SYSTIM_MIS_EVT1_S 1U
383 #define SYSTIM_MIS_EVT1_CLR 0x00000000U
384 #define SYSTIM_MIS_EVT1_SET 0x00000002U
385 /*
386 
387  Field: OVFL
388  From..to bits: 6...6
389  DefaultValue: 0x0
390  Access type: read-only
391  Description: Mask Interrupt Status Timer Overflow Event in MIS register.
392 
393  ENUMs:
394  CLR: Interrupt did not occur
395  SET: Interrupt occured
396 */
397 #define SYSTIM_MIS_OVFL 0x00000040U
398 #define SYSTIM_MIS_OVFL_M 0x00000040U
399 #define SYSTIM_MIS_OVFL_S 6U
400 #define SYSTIM_MIS_OVFL_CLR 0x00000000U
401 #define SYSTIM_MIS_OVFL_SET 0x00000040U
402 
403 
404 /*-----------------------------------REGISTER------------------------------------
405  Register name: ISET
406  Offset name: SYSTIM_O_ISET
407  Relative address: 0x50
408  Description: Interrupt set. Allows interrupts to be set by software (useful in diagnostics and safety checks). Writing a 1 to a bit in ISET will set the event and therefore the related RIS bit also gets set. If the interrupt is enabled through the mask, then the corresponding MIS bit is also set.
409  Default Value: 0x00000000
410 
411  Field: EVT0
412  From..to bits: 0...0
413  DefaultValue: 0x0
414  Access type: write-only
415  Description: Sets channel0 EVENT in RIS
416 
417 
418  ENUMs:
419  NO_EFFECT: Writing 0 has no effect
420  SET: Set Interrupt
421 */
422 #define SYSTIM_ISET_EVT0 0x00000001U
423 #define SYSTIM_ISET_EVT0_M 0x00000001U
424 #define SYSTIM_ISET_EVT0_S 0U
425 #define SYSTIM_ISET_EVT0_NO_EFFECT 0x00000000U
426 #define SYSTIM_ISET_EVT0_SET 0x00000001U
427 /*
428 
429  Field: EVT1
430  From..to bits: 1...1
431  DefaultValue: 0x0
432  Access type: write-only
433  Description: Sets channel1 EVENT in RIS
434 
435  ENUMs:
436  NO_EFFECT: Writing 0 has no effect
437  SET: Set Interrupt
438 */
439 #define SYSTIM_ISET_EVT1 0x00000002U
440 #define SYSTIM_ISET_EVT1_M 0x00000002U
441 #define SYSTIM_ISET_EVT1_S 1U
442 #define SYSTIM_ISET_EVT1_NO_EFFECT 0x00000000U
443 #define SYSTIM_ISET_EVT1_SET 0x00000002U
444 /*
445 
446  Field: OVFL
447  From..to bits: 6...6
448  DefaultValue: 0x0
449  Access type: write-only
450  Description: Sets Timer Overflow EVENT in RIS
451 
452  ENUMs:
453  NO_EFFECT: Writing 0 has no effect
454  SET: Set Interrupt
455 */
456 #define SYSTIM_ISET_OVFL 0x00000040U
457 #define SYSTIM_ISET_OVFL_M 0x00000040U
458 #define SYSTIM_ISET_OVFL_S 6U
459 #define SYSTIM_ISET_OVFL_NO_EFFECT 0x00000000U
460 #define SYSTIM_ISET_OVFL_SET 0x00000040U
461 
462 
463 /*-----------------------------------REGISTER------------------------------------
464  Register name: ICLR
465  Offset name: SYSTIM_O_ICLR
466  Relative address: 0x54
467  Description: Interrupt clear. Write a 1 to clear corresponding Interrupt.
468  Default Value: 0x00000000
469 
470  Field: EVT0
471  From..to bits: 0...0
472  DefaultValue: 0x0
473  Access type: write-only
474  Description: Clears EVENT0 in RIS
475 
476  ENUMs:
477  NO_EFFECT: Writing 0 has no effect
478  CLR: Clear Interrupt
479 */
480 #define SYSTIM_ICLR_EVT0 0x00000001U
481 #define SYSTIM_ICLR_EVT0_M 0x00000001U
482 #define SYSTIM_ICLR_EVT0_S 0U
483 #define SYSTIM_ICLR_EVT0_NO_EFFECT 0x00000000U
484 #define SYSTIM_ICLR_EVT0_CLR 0x00000001U
485 /*
486 
487  Field: EVT1
488  From..to bits: 1...1
489  DefaultValue: 0x0
490  Access type: write-only
491  Description: Clears EVENT1 in RIS
492 
493  ENUMs:
494  NO_EFFECT: Writing 0 has no effect
495  CLR: Clear Interrupt
496 */
497 #define SYSTIM_ICLR_EVT1 0x00000002U
498 #define SYSTIM_ICLR_EVT1_M 0x00000002U
499 #define SYSTIM_ICLR_EVT1_S 1U
500 #define SYSTIM_ICLR_EVT1_NO_EFFECT 0x00000000U
501 #define SYSTIM_ICLR_EVT1_CLR 0x00000002U
502 /*
503 
504  Field: OVFL
505  From..to bits: 6...6
506  DefaultValue: 0x0
507  Access type: write-only
508  Description: Overflow
509 
510  ENUMs:
511  NO_EFFECT: Writing 0 has no effect
512  CLR: Clear Interrupt
513 */
514 #define SYSTIM_ICLR_OVFL 0x00000040U
515 #define SYSTIM_ICLR_OVFL_M 0x00000040U
516 #define SYSTIM_ICLR_OVFL_S 6U
517 #define SYSTIM_ICLR_OVFL_NO_EFFECT 0x00000000U
518 #define SYSTIM_ICLR_OVFL_CLR 0x00000040U
519 
520 
521 /*-----------------------------------REGISTER------------------------------------
522  Register name: IMSET
523  Offset name: SYSTIM_O_IMSET
524  Relative address: 0x58
525  Description: Interrupt mask set. Writing a 1 to a bit in IMSET will set the related IMASK bit.
526  Default Value: 0x00000000
527 
528  Field: EVT0
529  From..to bits: 0...0
530  DefaultValue: 0x0
531  Access type: write-only
532  Description: Sets channel0 Event
533 
534  ENUMs:
535  NO_EFFECT: Writing 0 has no effect
536  SET: Set interrupt mask
537 */
538 #define SYSTIM_IMSET_EVT0 0x00000001U
539 #define SYSTIM_IMSET_EVT0_M 0x00000001U
540 #define SYSTIM_IMSET_EVT0_S 0U
541 #define SYSTIM_IMSET_EVT0_NO_EFFECT 0x00000000U
542 #define SYSTIM_IMSET_EVT0_SET 0x00000001U
543 /*
544 
545  Field: EVT1
546  From..to bits: 1...1
547  DefaultValue: 0x0
548  Access type: write-only
549  Description: Sets channel1 Event
550 
551  ENUMs:
552  NO_EFFECT: Writing 0 has no effect
553  SET: Set interrupt mask
554 */
555 #define SYSTIM_IMSET_EVT1 0x00000002U
556 #define SYSTIM_IMSET_EVT1_M 0x00000002U
557 #define SYSTIM_IMSET_EVT1_S 1U
558 #define SYSTIM_IMSET_EVT1_NO_EFFECT 0x00000000U
559 #define SYSTIM_IMSET_EVT1_SET 0x00000002U
560 /*
561 
562  Field: OVFL
563  From..to bits: 6...6
564  DefaultValue: 0x0
565  Access type: write-only
566  Description: Sets Timer Overflow Event.
567 
568  ENUMs:
569  NO_EFFECT: Writing 0 has no effect
570  SET: Set interrupt mask
571 */
572 #define SYSTIM_IMSET_OVFL 0x00000040U
573 #define SYSTIM_IMSET_OVFL_M 0x00000040U
574 #define SYSTIM_IMSET_OVFL_S 6U
575 #define SYSTIM_IMSET_OVFL_NO_EFFECT 0x00000000U
576 #define SYSTIM_IMSET_OVFL_SET 0x00000040U
577 
578 
579 /*-----------------------------------REGISTER------------------------------------
580  Register name: IMCLR
581  Offset name: SYSTIM_O_IMCLR
582  Relative address: 0x5C
583  Description: Interrupt mask clear. Writing a 1 to a bit in IMCLR will clear the related IMASK bit.
584  Default Value: 0x00000000
585 
586  Field: EVT0
587  From..to bits: 0...0
588  DefaultValue: 0x0
589  Access type: write-only
590  Description: Clears channel0 Event.
591 
592  ENUMs:
593  NO_EFFECT: Writing 0 has no effect
594  CLR: Clear interrupt mask
595 */
596 #define SYSTIM_IMCLR_EVT0 0x00000001U
597 #define SYSTIM_IMCLR_EVT0_M 0x00000001U
598 #define SYSTIM_IMCLR_EVT0_S 0U
599 #define SYSTIM_IMCLR_EVT0_NO_EFFECT 0x00000000U
600 #define SYSTIM_IMCLR_EVT0_CLR 0x00000001U
601 /*
602 
603  Field: EVT1
604  From..to bits: 1...1
605  DefaultValue: 0x0
606  Access type: write-only
607  Description: Clears channel1 Event.
608 
609  ENUMs:
610  NO_EFFECT: Writing 0 has no effect
611  CLR: Clear interrupt mask
612 */
613 #define SYSTIM_IMCLR_EVT1 0x00000002U
614 #define SYSTIM_IMCLR_EVT1_M 0x00000002U
615 #define SYSTIM_IMCLR_EVT1_S 1U
616 #define SYSTIM_IMCLR_EVT1_NO_EFFECT 0x00000000U
617 #define SYSTIM_IMCLR_EVT1_CLR 0x00000002U
618 /*
619 
620  Field: OVFL
621  From..to bits: 6...6
622  DefaultValue: 0x0
623  Access type: write-only
624  Description: Clears Timer Overflow Event.
625 
626  ENUMs:
627  NO_EFFECT: Writing 0 has no effect
628  CLR: Clear interrupt mask
629 */
630 #define SYSTIM_IMCLR_OVFL 0x00000040U
631 #define SYSTIM_IMCLR_OVFL_M 0x00000040U
632 #define SYSTIM_IMCLR_OVFL_S 6U
633 #define SYSTIM_IMCLR_OVFL_NO_EFFECT 0x00000000U
634 #define SYSTIM_IMCLR_OVFL_CLR 0x00000040U
635 
636 
637 /*-----------------------------------REGISTER------------------------------------
638  Register name: EMU
639  Offset name: SYSTIM_O_EMU
640  Relative address: 0x60
641  Description: This register can be used by the software developer to control the behavior of the peripheral relative to the CPU Halted input.
642  Default Value: 0x00000000
643 
644  Field: HALT
645  From..to bits: 0...0
646  DefaultValue: 0x0
647  Access type: read-write
648  Description: This bit controls peripheral behavior at CPU halt condition.
649 
650  ENUMs:
651  RUN: Peripheral ignores the state of the CPU Halted input
652  STOP: Peripheral freezes functionality immediately or at appropriate time when the CPU Halted input is asserted and resumes when it is deasserted
653 */
654 #define SYSTIM_EMU_HALT 0x00000001U
655 #define SYSTIM_EMU_HALT_M 0x00000001U
656 #define SYSTIM_EMU_HALT_S 0U
657 #define SYSTIM_EMU_HALT_RUN 0x00000000U
658 #define SYSTIM_EMU_HALT_STOP 0x00000001U
659 
660 
661 /*-----------------------------------REGISTER------------------------------------
662  Register name: DTB
663  Offset name: SYSTIM_O_DTB
664  Relative address: 0x64
665  Description: Digital Test Bus. This register is used to bring out some internal signals of the peripheral on digital test bus (DTB).
666  Default Value: 0x00000000
667 
668  Field: SEL
669  From..to bits: 0...3
670  DefaultValue: 0x0
671  Access type: read-write
672  Description: This bit field is used to select DTB mux digital output signals.
673 
674  ENUMs:
675  DISABLE: DTB output from peripheral is 0x0.
676  GRP1: Selects test group 1
677  GRP2: Selects test group 2
678  GRP3: Selects test group 3
679  GRP4: Selects test group 4
680  GRP5: Selects test group 5
681  GRP6: Selects test group 6
682  GRP7: Selects test group 7
683  GRP8: Selects test group 7
684  GRP9: Selects test group 7
685  GRP10: Selects test group 7
686  GRP11: Selects test group 7
687  GRP12: Selects test group 7
688  GRP13: Selects test group 7
689  GRP14: Selects test group 7
690  GRP15: Selects test group 7
691 */
692 #define SYSTIM_DTB_SEL_W 4U
693 #define SYSTIM_DTB_SEL_M 0x0000000FU
694 #define SYSTIM_DTB_SEL_S 0U
695 #define SYSTIM_DTB_SEL_DISABLE 0x00000000U
696 #define SYSTIM_DTB_SEL_GRP1 0x00000001U
697 #define SYSTIM_DTB_SEL_GRP2 0x00000002U
698 #define SYSTIM_DTB_SEL_GRP3 0x00000003U
699 #define SYSTIM_DTB_SEL_GRP4 0x00000004U
700 #define SYSTIM_DTB_SEL_GRP5 0x00000005U
701 #define SYSTIM_DTB_SEL_GRP6 0x00000006U
702 #define SYSTIM_DTB_SEL_GRP7 0x00000007U
703 #define SYSTIM_DTB_SEL_GRP8 0x00000008U
704 #define SYSTIM_DTB_SEL_GRP9 0x00000009U
705 #define SYSTIM_DTB_SEL_GRP10 0x0000000AU
706 #define SYSTIM_DTB_SEL_GRP11 0x0000000BU
707 #define SYSTIM_DTB_SEL_GRP12 0x0000000CU
708 #define SYSTIM_DTB_SEL_GRP13 0x0000000DU
709 #define SYSTIM_DTB_SEL_GRP14 0x0000000EU
710 #define SYSTIM_DTB_SEL_GRP15 0x0000000FU
711 
712 
713 /*-----------------------------------REGISTER------------------------------------
714  Register name: TIME250N
715  Offset name: SYSTIM_O_TIME250N
716  Relative address: 0x100
717  Description: Systimer Counter Value[31:0]. Time with 250ns resolution from systimer
718  Default Value: 0x00000000
719 
720  Field: VAL
721  From..to bits: 0...31
722  DefaultValue: 0x0
723  Access type: read-only
724  Description: Counter Value. This is not writable while the systimer counter is enabled
725 
726  ENUMs:
727  MINIMUM: Smallest value
728  MAXIMUM: Highest possible value
729 */
730 #define SYSTIM_TIME250N_VAL_W 32U
731 #define SYSTIM_TIME250N_VAL_M 0xFFFFFFFFU
732 #define SYSTIM_TIME250N_VAL_S 0U
733 #define SYSTIM_TIME250N_VAL_MINIMUM 0x00000000U
734 #define SYSTIM_TIME250N_VAL_MAXIMUM 0xFFFFFFFFU
735 
736 
737 /*-----------------------------------REGISTER------------------------------------
738  Register name: TIME1U
739  Offset name: SYSTIM_O_TIME1U
740  Relative address: 0x104
741  Description: Systimer Counter Value[33:2]. Time with 1us resolution from systimer
742  Default Value: 0x00000000
743 
744  Field: VAL
745  From..to bits: 0...31
746  DefaultValue: 0x0
747  Access type: read-only
748  Description: Counter Value. This is not writable while the systimer counter is enabled
749 
750  ENUMs:
751  MINIMUM: Smallest value
752  MAXIMUM: Highest possible value
753 */
754 #define SYSTIM_TIME1U_VAL_W 32U
755 #define SYSTIM_TIME1U_VAL_M 0xFFFFFFFFU
756 #define SYSTIM_TIME1U_VAL_S 0U
757 #define SYSTIM_TIME1U_VAL_MINIMUM 0x00000000U
758 #define SYSTIM_TIME1U_VAL_MAXIMUM 0xFFFFFFFFU
759 
760 
761 /*-----------------------------------REGISTER------------------------------------
762  Register name: OUT
763  Offset name: SYSTIM_O_OUT
764  Relative address: 0x108
765  Description: SYSTIMER'S Channel Output Event Values
766  Default Value: 0x00000000
767 
768  Field: OUT0
769  From..to bits: 0...0
770  DefaultValue: 0x0
771  Access type: read-only
772  Description: Output Value of channel 0.
773 
774  ENUMs:
775  CLR: Event did not occur.
776  SET: Event occured
777 */
778 #define SYSTIM_OUT_OUT0 0x00000001U
779 #define SYSTIM_OUT_OUT0_M 0x00000001U
780 #define SYSTIM_OUT_OUT0_S 0U
781 #define SYSTIM_OUT_OUT0_CLR 0x00000000U
782 #define SYSTIM_OUT_OUT0_SET 0x00000001U
783 /*
784 
785  Field: OUT1
786  From..to bits: 1...1
787  DefaultValue: 0x0
788  Access type: read-only
789  Description: Output Value of channel 1.
790 
791  ENUMs:
792  CLR: Event did not occur.
793  SET: Event occured
794 */
795 #define SYSTIM_OUT_OUT1 0x00000002U
796 #define SYSTIM_OUT_OUT1_M 0x00000002U
797 #define SYSTIM_OUT_OUT1_S 1U
798 #define SYSTIM_OUT_OUT1_CLR 0x00000000U
799 #define SYSTIM_OUT_OUT1_SET 0x00000002U
800 
801 
802 /*-----------------------------------REGISTER------------------------------------
803  Register name: CH0CFG
804  Offset name: SYSTIM_O_CH0CFG
805  Relative address: 0x10C
806  Description: SYSTIMER channel 0 configuration
807  Default Value: 0x00000000
808 
809  Field: MODE
810  From..to bits: 0...0
811  DefaultValue: 0x0
812  Access type: read-write
813  Description: Decides the channel mode.
814 
815  ENUMs:
816  DIS: Channel is disabled
817  CAPT: Channel is in capture mode
818 */
819 #define SYSTIM_CH0CFG_MODE 0x00000001U
820 #define SYSTIM_CH0CFG_MODE_M 0x00000001U
821 #define SYSTIM_CH0CFG_MODE_S 0U
822 #define SYSTIM_CH0CFG_MODE_DIS 0x00000000U
823 #define SYSTIM_CH0CFG_MODE_CAPT 0x00000001U
824 /*
825 
826  Field: INP
827  From..to bits: 1...2
828  DefaultValue: 0x0
829  Access type: read-write
830  Description: Decides the channel input signal's mode. Setting the Value as 2'b11 selects the Rise Function.
831 
832  ENUMs:
833  RISE: Capture on rising edge
834  FALL: Capture on Falling Edge
835  BOTH: Capture on both Edge
836 */
837 #define SYSTIM_CH0CFG_INP_W 2U
838 #define SYSTIM_CH0CFG_INP_M 0x00000006U
839 #define SYSTIM_CH0CFG_INP_S 1U
840 #define SYSTIM_CH0CFG_INP_RISE 0x00000000U
841 #define SYSTIM_CH0CFG_INP_FALL 0x00000002U
842 #define SYSTIM_CH0CFG_INP_BOTH 0x00000004U
843 /*
844 
845  Field: REARM
846  From..to bits: 3...3
847  DefaultValue: 0x0
848  Access type: read-write
849  Description: When Rearm is enabled the channel remains in continuous capture mode. Otherwise it'll be in One shot capture mode. Rearm is only valid for capture mode.
850 
851  ENUMs:
852  EN: Re arm is enabled
853  NS: Re Arm is disabled
854 */
855 #define SYSTIM_CH0CFG_REARM 0x00000008U
856 #define SYSTIM_CH0CFG_REARM_M 0x00000008U
857 #define SYSTIM_CH0CFG_REARM_S 3U
858 #define SYSTIM_CH0CFG_REARM_EN 0x00000008U
859 #define SYSTIM_CH0CFG_REARM_NS 0x00000000U
860 /*
861 
862  Field: RES
863  From..to bits: 4...4
864  DefaultValue: 0x0
865  Access type: read-write
866  Description: This bit decides the RESOLUTION of the channel that will be used.
867 
868  ENUMs:
869  US: Channel Works in Timer's 1us Resolution.
870  NS: Channel Works in Timer's 250ns resolution
871 */
872 #define SYSTIM_CH0CFG_RES 0x00000010U
873 #define SYSTIM_CH0CFG_RES_M 0x00000010U
874 #define SYSTIM_CH0CFG_RES_S 4U
875 #define SYSTIM_CH0CFG_RES_US 0x00000000U
876 #define SYSTIM_CH0CFG_RES_NS 0x00000010U
877 
878 
879 /*-----------------------------------REGISTER------------------------------------
880  Register name: CH1CFG
881  Offset name: SYSTIM_O_CH1CFG
882  Relative address: 0x110
883  Description: SYSTIMER channel 1 configuration
884  Default Value: 0x00000000
885 
886  Field: MODE
887  From..to bits: 0...0
888  DefaultValue: 0x0
889  Access type: read-write
890  Description: Decides the channel mode.
891 
892  ENUMs:
893  DIS: Channel is disabled
894 
895  CAPT: Channel is in capture mode
896 
897 */
898 #define SYSTIM_CH1CFG_MODE 0x00000001U
899 #define SYSTIM_CH1CFG_MODE_M 0x00000001U
900 #define SYSTIM_CH1CFG_MODE_S 0U
901 #define SYSTIM_CH1CFG_MODE_DIS 0x00000000U
902 #define SYSTIM_CH1CFG_MODE_CAPT 0x00000001U
903 /*
904 
905  Field: INP
906  From..to bits: 1...2
907  DefaultValue: 0x0
908  Access type: read-write
909  Description: Decides the channel input signal's mode. Setting the Value as 2'b11 selects the Rise Function
910 
911  ENUMs:
912  RISE: Capture on rising edge
913 
914  FALL: Capture on Falling Edge
915 
916  BOTH: Capture on both Edge
917 
918 */
919 #define SYSTIM_CH1CFG_INP_W 2U
920 #define SYSTIM_CH1CFG_INP_M 0x00000006U
921 #define SYSTIM_CH1CFG_INP_S 1U
922 #define SYSTIM_CH1CFG_INP_RISE 0x00000000U
923 #define SYSTIM_CH1CFG_INP_FALL 0x00000002U
924 #define SYSTIM_CH1CFG_INP_BOTH 0x00000004U
925 /*
926 
927  Field: REARM
928  From..to bits: 3...3
929  DefaultValue: 0x0
930  Access type: read-write
931  Description: When Rearm is enabled the channel remains in continous capture mode. Otherwise it'll be in One shot capture mode. Rearm is only valid for capture mode.
932 
933  ENUMs:
934  EN: Re arm is enabled
935  NS: Re Arm is disabled
936 */
937 #define SYSTIM_CH1CFG_REARM 0x00000008U
938 #define SYSTIM_CH1CFG_REARM_M 0x00000008U
939 #define SYSTIM_CH1CFG_REARM_S 3U
940 #define SYSTIM_CH1CFG_REARM_EN 0x00000008U
941 #define SYSTIM_CH1CFG_REARM_NS 0x00000000U
942 
943 
944 /*-----------------------------------REGISTER------------------------------------
945  Register name: CH0CC
946  Offset name: SYSTIM_O_CH0CC
947  Relative address: 0x120
948  Description: System Timer Channel 0 Capture/Compare Register. This Register when written with any compare value will arm the channel to work in compare mode.
949  Default Value: 0x00000000
950 
951  Field: VAL
952  From..to bits: 0...31
953  DefaultValue: 0x0
954  Access type: read-write
955  Description: Capture/compare value
956 
957  ENUMs:
958  MINIMUM: Smallest value
959  MAXIMUM: Highest possible value
960 */
961 #define SYSTIM_CH0CC_VAL_W 32U
962 #define SYSTIM_CH0CC_VAL_M 0xFFFFFFFFU
963 #define SYSTIM_CH0CC_VAL_S 0U
964 #define SYSTIM_CH0CC_VAL_MINIMUM 0x00000000U
965 #define SYSTIM_CH0CC_VAL_MAXIMUM 0xFFFFFFFFU
966 
967 
968 /*-----------------------------------REGISTER------------------------------------
969  Register name: CH1CC
970  Offset name: SYSTIM_O_CH1CC
971  Relative address: 0x124
972  Description: System Timer Channel 1 Capture/Compare Register. This Register when written with any compare value will arm the channel to work in compare mode.
973  Default Value: 0x00000000
974 
975  Field: VAL
976  From..to bits: 0...31
977  DefaultValue: 0x0
978  Access type: read-write
979  Description: Capture/compare value
980 
981  ENUMs:
982  MINIMUM: Smallest value
983  MAXIMUM: Highest possible value
984 */
985 #define SYSTIM_CH1CC_VAL_W 32U
986 #define SYSTIM_CH1CC_VAL_M 0xFFFFFFFFU
987 #define SYSTIM_CH1CC_VAL_S 0U
988 #define SYSTIM_CH1CC_VAL_MINIMUM 0x00000000U
989 #define SYSTIM_CH1CC_VAL_MAXIMUM 0xFFFFFFFFU
990 
991 
992 /*-----------------------------------REGISTER------------------------------------
993  Register name: TIMEBIT
994  Offset name: SYSTIM_O_TIMEBIT
995  Relative address: 0x134
996  Description: This Register will be used to specify which TIME bit is required by LGPT to be forwarded from SYSTIMER.
997  Default Value: 0x00000000
998 
999  Field: VAL
1000  From..to bits: 0...15
1001  DefaultValue: 0x0
1002  Access type: read-write
1003  Description: The corresponding bit will have value '1' rest should be '0'. If more than one bit is asserted, output is "or" of all the bits.
1004 
1005  ENUMs:
1006  NOBIT: No bit is forwarded to the event fabric.
1007  BIT3: Bit3 is forwarded to the event fabric.
1008  BIT4: Bit4 is forwarded to the event fabric.
1009  BIT5: Bit5 is forwarded to the event fabric.
1010  BIT6: Bit6 is forwarded to the event fabric.
1011  BIT7: Bit7 is forwarded to the event fabric.
1012  BIT8: Bit8 is forwarded to the event fabric.
1013  BIT9: Bit9 is forwarded to the event fabric.
1014  BIT10: Bit10 is forwarded to the event fabric.
1015  BIT11: Bit11 is forwarded to the event fabric.
1016  BIT12: Bit12 is forwarded to the event fabric.
1017  BIT13: Bit13 is forwarded to the event fabric.
1018  BIT14: Bit14 is forwarded to the event fabric.
1019  BIT15: Bit15 is forwarded to the event fabric.
1020  BIT16: Bit16 is forwarded to the event fabric.
1021  BIT17: Bit17 is forwarded to the event fabric.
1022  BIT2: Bit2 is forwarded to the event fabric.
1023 */
1024 #define SYSTIM_TIMEBIT_VAL_W 16U
1025 #define SYSTIM_TIMEBIT_VAL_M 0x0000FFFFU
1026 #define SYSTIM_TIMEBIT_VAL_S 0U
1027 #define SYSTIM_TIMEBIT_VAL_NOBIT 0x00000000U
1028 #define SYSTIM_TIMEBIT_VAL_BIT3 0x00000002U
1029 #define SYSTIM_TIMEBIT_VAL_BIT4 0x00000004U
1030 #define SYSTIM_TIMEBIT_VAL_BIT5 0x00000008U
1031 #define SYSTIM_TIMEBIT_VAL_BIT6 0x00000010U
1032 #define SYSTIM_TIMEBIT_VAL_BIT7 0x00000020U
1033 #define SYSTIM_TIMEBIT_VAL_BIT8 0x00000040U
1034 #define SYSTIM_TIMEBIT_VAL_BIT9 0x00000080U
1035 #define SYSTIM_TIMEBIT_VAL_BIT10 0x00000100U
1036 #define SYSTIM_TIMEBIT_VAL_BIT11 0x00000200U
1037 #define SYSTIM_TIMEBIT_VAL_BIT12 0x00000400U
1038 #define SYSTIM_TIMEBIT_VAL_BIT13 0x00000800U
1039 #define SYSTIM_TIMEBIT_VAL_BIT14 0x00001000U
1040 #define SYSTIM_TIMEBIT_VAL_BIT15 0x00002000U
1041 #define SYSTIM_TIMEBIT_VAL_BIT16 0x00004000U
1042 #define SYSTIM_TIMEBIT_VAL_BIT17 0x00008000U
1043 #define SYSTIM_TIMEBIT_VAL_BIT2 0x00000001U
1044 
1045 
1046 /*-----------------------------------REGISTER------------------------------------
1047  Register name: KP
1048  Offset name: SYSTIM_O_KP
1049  Relative address: 0x138
1050  Description: PI filter's Proportional Gain Value
1051  Default Value: 0x00000004
1052 
1053  Field: VAL
1054  From..to bits: 0...3
1055  DefaultValue: 0x4
1056  Access type: read-write
1057  Description: Proportional Error is left shifted by this value.
1058 
1059  ENUMs:
1060  MINIMUM: Smallest value
1061  MAXIMUM: Highest possible value
1062 */
1063 #define SYSTIM_KP_VAL_W 4U
1064 #define SYSTIM_KP_VAL_M 0x0000000FU
1065 #define SYSTIM_KP_VAL_S 0U
1066 #define SYSTIM_KP_VAL_MINIMUM 0x00000000U
1067 #define SYSTIM_KP_VAL_MAXIMUM 0x0000000FU
1068 
1069 
1070 /*-----------------------------------REGISTER------------------------------------
1071  Register name: KI
1072  Offset name: SYSTIM_O_KI
1073  Relative address: 0x13C
1074  Description: PI filter's Accumulator's Gain Value
1075  Default Value: 0x00000001
1076 
1077  Field: VAL
1078  From..to bits: 0...3
1079  DefaultValue: 0x1
1080  Access type: read-write
1081  Description: Accumulated Error is left shifted by this value.
1082 
1083  ENUMs:
1084  MINIMUM: Smallest value
1085  MAXIMUM: Highest possible value
1086 */
1087 #define SYSTIM_KI_VAL_W 4U
1088 #define SYSTIM_KI_VAL_M 0x0000000FU
1089 #define SYSTIM_KI_VAL_S 0U
1090 #define SYSTIM_KI_VAL_MINIMUM 0x00000000U
1091 #define SYSTIM_KI_VAL_MAXIMUM 0x0000000FU
1092 
1093 
1094 /*-----------------------------------REGISTER------------------------------------
1095  Register name: STA
1096  Offset name: SYSTIM_O_STA
1097  Relative address: 0x140
1098  Description: STATUS
1099 
1100  This is the system timer status register.
1101  Default Value: 0x00000010
1102 
1103  Field: VAL
1104  From..to bits: 0...0
1105  DefaultValue: 0x0
1106  Access type: read-only
1107  Description: This bit indicates if the system time is initialized and running.
1108 
1109  ENUMs:
1110  STOP: system timer is not running.
1111  RUN: system timer is running
1112 */
1113 #define SYSTIM_STA_VAL 0x00000001U
1114 #define SYSTIM_STA_VAL_M 0x00000001U
1115 #define SYSTIM_STA_VAL_S 0U
1116 #define SYSTIM_STA_VAL_STOP 0x00000000U
1117 #define SYSTIM_STA_VAL_RUN 0x00000001U
1118 /*
1119 
1120  Field: SYNCUP
1121  From..to bits: 4...4
1122  DefaultValue: 0x1
1123  Access type: read-only
1124  Description: This bit indicates the status of resyncup of systimer with RTC. The bitfield has a reset value of '1' , as out of reset the systimer syncs up with RTC, after the first_synced_lftick occurs the SYNCUP bit goes to zero.
1125 
1126  ENUMs:
1127  CLR: SYNC UP with RTC is not happening
1128  SET: Any write to STATUS register, triggers the SYNCUP with RTC and this bit is set.
1129 */
1130 #define SYSTIM_STA_SYNCUP 0x00000010U
1131 #define SYSTIM_STA_SYNCUP_M 0x00000010U
1132 #define SYSTIM_STA_SYNCUP_S 4U
1133 #define SYSTIM_STA_SYNCUP_CLR 0x00000000U
1134 #define SYSTIM_STA_SYNCUP_SET 0x00000010U
1135 
1136 
1137 /*-----------------------------------REGISTER------------------------------------
1138  Register name: ARMSET
1139  Offset name: SYSTIM_O_ARMSET
1140  Relative address: 0x144
1141  Description: ARMSET on read gives out the status of the 2 channels
1142  1. Channel state UNARMED returns 0
1143  2. Channel state CAPTURE or COMPARE returns 1
1144  A write to ARMSET has for each channel the following effect:
1145  1. If ARMSTA[x]==0 -> no effect
1146  2. If ARMSTA[x]==1 and channel x is in CAPTURE state then no effect on the channel
1147  3. Else Set channel in COMPARE mode using existing CHxVAL value
1148  Default Value: 0x00000000
1149 
1150  Field: CH0
1151  From..to bits: 0...0
1152  DefaultValue: 0x0
1153  Access type: read-write
1154  Description: Arming Channel 0 for either compare or capture operation.
1155 
1156  ENUMs:
1157  NOEFFECT: No effect on the channel
1158  SET: if channel 0 is in CAPTURE state then no effect on the channel
1159  3. Else ; Set channel in COMPARE mode using existing CH0VAL value
1160 */
1161 #define SYSTIM_ARMSET_CH0 0x00000001U
1162 #define SYSTIM_ARMSET_CH0_M 0x00000001U
1163 #define SYSTIM_ARMSET_CH0_S 0U
1164 #define SYSTIM_ARMSET_CH0_NOEFFECT 0x00000000U
1165 #define SYSTIM_ARMSET_CH0_SET 0x00000001U
1166 /*
1167 
1168  Field: CH1
1169  From..to bits: 1...1
1170  DefaultValue: 0x0
1171  Access type: read-write
1172  Description: Arming Channel 1 for either compare or capture operation.
1173 
1174  ENUMs:
1175  NOEFFECT: No effect on the channel
1176  SET: if channel 1 is in CAPTURE state then no effect on the channel Else ; Set channel in COMPARE mode using existing CH1VAL value
1177 */
1178 #define SYSTIM_ARMSET_CH1 0x00000002U
1179 #define SYSTIM_ARMSET_CH1_M 0x00000002U
1180 #define SYSTIM_ARMSET_CH1_S 1U
1181 #define SYSTIM_ARMSET_CH1_NOEFFECT 0x00000000U
1182 #define SYSTIM_ARMSET_CH1_SET 0x00000002U
1183 
1184 
1185 /*-----------------------------------REGISTER------------------------------------
1186  Register name: ARMCLR
1187  Offset name: SYSTIM_O_ARMCLR
1188  Relative address: 0x148
1189  Description: ARMCLR on read gives out the status of the 2 channels
1190  1. Channel state UNARMED returns 0
1191  2. Channel state CAPTURE or COMPARE returns 1
1192  A write to ARMCLR has for each channel the following effect:
1193  1. If ARMCLR[x]==0 no effect
1194  2. Else Set channel in UNARMED state without triggering event unless a compare/capture event happens in the same cycle
1195  Default Value: 0x00000000
1196 
1197  Field: CH0
1198  From..to bits: 0...0
1199  DefaultValue: 0x0
1200  Access type: read-write
1201  Description: Disarming Channel 0
1202 
1203  ENUMs:
1204  NOEFFECT: No effect on the channel
1205  CLR: Set channel in UNARMED state without triggering event unless a compare/capture event happens in the same cycle
1206 */
1207 #define SYSTIM_ARMCLR_CH0 0x00000001U
1208 #define SYSTIM_ARMCLR_CH0_M 0x00000001U
1209 #define SYSTIM_ARMCLR_CH0_S 0U
1210 #define SYSTIM_ARMCLR_CH0_NOEFFECT 0x00000000U
1211 #define SYSTIM_ARMCLR_CH0_CLR 0x00000001U
1212 /*
1213 
1214  Field: CH1
1215  From..to bits: 1...1
1216  DefaultValue: 0x0
1217  Access type: read-write
1218  Description: Disarming Channel 1
1219 
1220  ENUMs:
1221  NOEFFECT: No effect on the channel
1222  CLR: Set channel in UNARMED state without triggering event unless a compare/capture event happens in the same cycle
1223 */
1224 #define SYSTIM_ARMCLR_CH1 0x00000002U
1225 #define SYSTIM_ARMCLR_CH1_M 0x00000002U
1226 #define SYSTIM_ARMCLR_CH1_S 1U
1227 #define SYSTIM_ARMCLR_CH1_NOEFFECT 0x00000000U
1228 #define SYSTIM_ARMCLR_CH1_CLR 0x00000002U
1229 
1230 
1231 /*-----------------------------------REGISTER------------------------------------
1232  Register name: CH0CCSR
1233  Offset name: SYSTIM_O_CH0CCSR
1234  Relative address: 0x14C
1235  Description: Save/restore alias registers Channel 0. i. A read to CH0SR behaves exactly as a read to CH0VAL.
1236  A write to CH0SR sets CH0VAL value of register without affecting channel state or configuration
1237  Default Value: 0x00000000
1238 
1239  Field: VAL
1240  From..to bits: 0...31
1241  DefaultValue: 0x0
1242  Access type: read-write
1243  Description: Capture/compare value
1244 
1245  ENUMs:
1246  MINIMUM: Smallest value
1247  MAXIMUM: Highest possible value
1248 */
1249 #define SYSTIM_CH0CCSR_VAL_W 32U
1250 #define SYSTIM_CH0CCSR_VAL_M 0xFFFFFFFFU
1251 #define SYSTIM_CH0CCSR_VAL_S 0U
1252 #define SYSTIM_CH0CCSR_VAL_MINIMUM 0x00000000U
1253 #define SYSTIM_CH0CCSR_VAL_MAXIMUM 0xFFFFFFFFU
1254 
1255 
1256 /*-----------------------------------REGISTER------------------------------------
1257  Register name: CH1CCSR
1258  Offset name: SYSTIM_O_CH1CCSR
1259  Relative address: 0x150
1260  Description: Save/restore alias registers Channel 1. i. A read to CH1SR behaves exactly as a read to CH1VAL.
1261  A write to CH1SR sets CH1VAL value of register without affecting channel state or configuration.
1262  Default Value: 0x00000000
1263 
1264  Field: VAL
1265  From..to bits: 0...31
1266  DefaultValue: 0x0
1267  Access type: read-write
1268  Description: Capture/compare value
1269 
1270  ENUMs:
1271  MINIMUM: Smallest value
1272  MAXIMUM: Highest possible value
1273 */
1274 #define SYSTIM_CH1CCSR_VAL_W 32U
1275 #define SYSTIM_CH1CCSR_VAL_M 0xFFFFFFFFU
1276 #define SYSTIM_CH1CCSR_VAL_S 0U
1277 #define SYSTIM_CH1CCSR_VAL_MINIMUM 0x00000000U
1278 #define SYSTIM_CH1CCSR_VAL_MAXIMUM 0xFFFFFFFFU
1279 
1280 
1281 /*-----------------------------------REGISTER------------------------------------
1282  Register name: CLKCFG
1283  Offset name: SYSTIM_O_CLKCFG
1284  Relative address: 0x1000
1285  Description: CLOCK CONFIG
1286  Default Value: 0x00000000
1287 
1288  Field: EN
1289  From..to bits: 0...0
1290  DefaultValue: 0x0
1291  Access type: read-write
1292  Description: ENABLE
1293 
1294  '1' - enable systimer clk
1295  '0' - disable systimer clk
1296 
1297  ENUMs:
1298  MINIMUM: Smallest value
1299  MAXIMUM: Highest possible value
1300 */
1301 #define SYSTIM_CLKCFG_EN 0x00000001U
1302 #define SYSTIM_CLKCFG_EN_M 0x00000001U
1303 #define SYSTIM_CLKCFG_EN_S 0U
1304 #define SYSTIM_CLKCFG_EN_MINIMUM 0x00000000U
1305 #define SYSTIM_CLKCFG_EN_MAXIMUM 0xFFFFFFFFU
1306 
1307 #endif /* __HW_SYSTIM_H__*/