HPM SDK
HPMicro Software Development Kit
hpm_trgmmux_src.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2025 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 
9 #ifndef HPM_TRGMMUX_SRC_H
10 #define HPM_TRGMMUX_SRC_H
11 
12 /* trgm0_input mux definitions */
13 #define HPM_TRGM0_INPUT_SRC_VSS (0x0UL) /* Low level */
14 #define HPM_TRGM0_INPUT_SRC_VDD (0x1UL) /* High level */
15 #define HPM_TRGM0_INPUT_SRC_DEBUG_FLAG (0x2UL) /* the flag bit of debug mode enters */
16 #define HPM_TRGM0_INPUT_SRC_USB0_SOF (0x3UL) /* USB0 frame start */
17 #define HPM_TRGM0_INPUT_SRC_ACMP0_OUT (0x6UL) /* Comparator 0 output */
18 #define HPM_TRGM0_INPUT_SRC_ACMP1_OUT (0x7UL) /* Comparator 1 output */
19 #define HPM_TRGM0_INPUT_SRC_GPTMR0_OUT2 (0x8UL) /* GPTMR0 channel 2 */
20 #define HPM_TRGM0_INPUT_SRC_GPTMR0_OUT3 (0x9UL) /* GPTMR0 channel 3 */
21 #define HPM_TRGM0_INPUT_SRC_GPTMR1_OUT2 (0xAUL) /* GPTMR1 channel 2 */
22 #define HPM_TRGM0_INPUT_SRC_GPTMR1_OUT3 (0xBUL) /* GPTMR1 channel 3 */
23 #define HPM_TRGM0_INPUT_SRC_TRGM0_P0 (0x10UL) /* TRGM0 Input 0 (from IO) */
24 #define HPM_TRGM0_INPUT_SRC_TRGM0_P1 (0x11UL) /* TRGM0 Input 1 (from IO) */
25 #define HPM_TRGM0_INPUT_SRC_TRGM0_P2 (0x12UL) /* TRGM0 Input 2 (from IO) */
26 #define HPM_TRGM0_INPUT_SRC_TRGM0_P3 (0x13UL) /* TRGM0 Input 3 (from IO) */
27 #define HPM_TRGM0_INPUT_SRC_TRGM0_P4 (0x14UL) /* TRGM0 Input 4 (from IO) */
28 #define HPM_TRGM0_INPUT_SRC_TRGM0_P5 (0x15UL) /* TRGM0 Input 5 (from IO) */
29 #define HPM_TRGM0_INPUT_SRC_TRGM0_P6 (0x16UL) /* TRGM0 Input 6 (from IO) */
30 #define HPM_TRGM0_INPUT_SRC_TRGM0_P7 (0x17UL) /* TRGM0 Input 7 (from IO) */
31 #define HPM_TRGM0_INPUT_SRC_SYNT0_CH0 (0x18UL) /* SYNT0 Channel 0 */
32 #define HPM_TRGM0_INPUT_SRC_SYNT0_CH1 (0x19UL) /* SYNT0 Channel 1 */
33 #define HPM_TRGM0_INPUT_SRC_SYNT0_CH2 (0x1AUL) /* SYNT0 Channel 2 */
34 #define HPM_TRGM0_INPUT_SRC_SYNT0_CH3 (0x1BUL) /* SYNT0 channel 3 */
35 
36 /* trgm0_output mux definitions */
37 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_0 (0x0UL) /* OPAMP0 triggers input 0 */
38 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_1 (0x1UL) /* OPAMP0 triggers input 1 */
39 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_2 (0x2UL) /* OPAMP0 triggers input 2 */
40 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_3 (0x3UL) /* OPAMP0 triggers input 3 */
41 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_4 (0x4UL) /* OPAMP0 triggers input 4 */
42 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_5 (0x5UL) /* OPAMP0 triggers input 5 */
43 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_6 (0x6UL) /* OPAMP0 triggers input 6 */
44 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP0_7 (0x7UL) /* OPAMP0 triggers input 7 */
45 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_0 (0x8UL) /* OPAMP1 triggers input 0 */
46 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_1 (0x9UL) /* OPAMP1 triggers input 1 */
47 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_2 (0xAUL) /* OPAMP1 triggers input 2 */
48 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_3 (0xBUL) /* OPAMP1 triggers input 3 */
49 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_4 (0xCUL) /* OPAMP1 triggers input 4 */
50 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_5 (0xDUL) /* OPAMP1 triggers input 5 */
51 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_6 (0xEUL) /* OPAMP1 triggers input 6 */
52 #define HPM_TRGM0_OUTPUT_SRC_MOT2OPAMP1_7 (0xFUL) /* OPAMP1 triggers input 7 */
53 #define HPM_TRGM0_OUTPUT_SRC_GPTMR0_IN2 (0x10UL) /* GPTMR0 channel 2 input */
54 #define HPM_TRGM0_OUTPUT_SRC_GPTMR0_IN3 (0x11UL) /* GPTMR0 channel 3 input */
55 #define HPM_TRGM0_OUTPUT_SRC_GPTMR0_SYNCI (0x12UL) /* GPTMR0 counter synchronous input */
56 #define HPM_TRGM0_OUTPUT_SRC_GPTMR1_IN2 (0x13UL) /* GPTMR1 channel 2 input */
57 #define HPM_TRGM0_OUTPUT_SRC_GPTMR1_IN3 (0x14UL) /* GPTMR1 channel 3 input */
58 #define HPM_TRGM0_OUTPUT_SRC_GPTMR1_SYNCI (0x15UL) /* GPTMR1 counter synchronous input */
59 #define HPM_TRGM0_OUTPUT_SRC_ACMP0_WIN (0x1CUL) /* Comparator 0 window mode input */
60 #define HPM_TRGM0_OUTPUT_SRC_ACMP1_WIN (0x1DUL) /* Comparator 1 window mode input */
61 #define HPM_TRGM0_OUTPUT_SRC_ADC0_STRGI (0x20UL) /* The sequence conversion of ADC0 triggers input */
62 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI0A (0x22UL) /* The preemption conversion of ADC0, 1 triggers input 0A */
63 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI0B (0x23UL) /* The preemption conversion of ADC0, 1 triggers input 0B */
64 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI0C (0x24UL) /* The preemption conversion of ADC0, 1 triggers input 0C */
65 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI1A (0x25UL) /* The preemption conversion of ADC0, 1 triggers input 1A */
66 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI1B (0x26UL) /* The preemption conversion of ADC0, 1 triggers input 1B */
67 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI1C (0x27UL) /* The preemption conversion of ADC0, 1 triggers input 1C */
68 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI2A (0x28UL) /* The preemption conversion of ADC0, 1 triggers input 2A */
69 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI2B (0x29UL) /* The preemption conversion of ADC0, 1 triggers input 2B */
70 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI2C (0x2AUL) /* The preemption conversion of ADC0, 1 triggers input 2C */
71 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI3A (0x2BUL) /* The preemption conversion of ADC0, 1 triggers input 3A */
72 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI3B (0x2CUL) /* The preemption conversion of ADC0, 1 triggers input 3B */
73 #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI3C (0x2DUL) /* The preemption conversion of ADC0, 1 triggers input 3C */
74 #define HPM_TRGM0_OUTPUT_SRC_MCAN_PTPC0_CAP (0x2EUL) /* PTPC input capture 0 */
75 #define HPM_TRGM0_OUTPUT_SRC_MCAN_PTPC1_CAP (0x2FUL) /* PTPC input capture 1 */
76 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO0 (0x60UL) /* TRGM Output 0 (output to IO) (dropped macro please use macro TRGM0_P0) */
77 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P0 (0x60UL) /* TRGM Output 0 (output to IO) */
78 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO1 (0x61UL) /* TRGM Output 1 (output to IO) (dropped macro please use macro TRGM0_P1) */
79 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P1 (0x61UL) /* TRGM Output 1 (output to IO) */
80 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO2 (0x62UL) /* TRGM Output 2 (output to IO) (dropped macro please use macro TRGM0_P2) */
81 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P2 (0x62UL) /* TRGM Output 2 (output to IO) */
82 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO3 (0x63UL) /* TRGM Output 3 (output to IO) (dropped macro please use macro TRGM0_P3) */
83 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P3 (0x63UL) /* TRGM Output 3 (output to IO) */
84 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO4 (0x64UL) /* TRGM Output 4 (output to IO) (dropped macro please use macro TRGM0_P4) */
85 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P4 (0x64UL) /* TRGM Output 4 (output to IO) */
86 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO5 (0x65UL) /* TRGM Output 5 (output to IO) (dropped macro please use macro TRGM0_P5) */
87 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P5 (0x65UL) /* TRGM Output 5 (output to IO) */
88 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO6 (0x66UL) /* TRGM Output 6 (output to IO) (dropped macro please use macro TRGM0_P6) */
89 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P6 (0x66UL) /* TRGM Output 6 (output to IO) */
90 #define HPM_TRGM0_OUTPUT_SRC_MOT_GPIO7 (0x67UL) /* TRGM Output 7 (output to IO) (dropped macro please use macro TRGM0_P7) */
91 #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P7 (0x67UL) /* TRGM Output 7 (output to IO) */
92 #define HPM_TRGM0_OUTPUT_SRC_SYNCTIMER_TRIG (0x7EUL) /* SYNT triggers input */
93 #define HPM_TRGM0_OUTPUT_SRC_UART_TRIG0 (0x83UL) /* UART0/1/2/3 Trigger signal */
94 #define HPM_TRGM0_OUTPUT_SRC_UART_TRIG1 (0x84UL) /* UART4/5/6/7 Trigger signal */
95 #define HPM_TRGM0_OUTPUT_SRC_TRGM_IRQ0 (0x85UL) /* TRGM interrupt signal 0 */
96 #define HPM_TRGM0_OUTPUT_SRC_TRGM_IRQ1 (0x86UL) /* TRGM interrupt signal 1 */
97 #define HPM_TRGM0_OUTPUT_SRC_TRGM_DMA0 (0x87UL) /* TRGM DMA request 0 */
98 #define HPM_TRGM0_OUTPUT_SRC_TRGM_DMA1 (0x88UL) /* TRGM DMA request 1 */
99 
100 /* trgm0_filter mux definitions */
101 #define HPM_TRGM0_FILTER_SRC_TRGM_IN0 (0x10UL) /* TRGM input 0 (dropped macro please use macro TRGM0_P00) */
102 #define HPM_TRGM0_FILTER_SRC_TRGM_P00 (0x10UL) /* TRGM input 0 from IO */
103 #define HPM_TRGM0_FILTER_SRC_TRGM_IN1 (0x11UL) /* TRGM input 1 (dropped macro please use macro TRGM0_P00) */
104 #define HPM_TRGM0_FILTER_SRC_TRGM_P01 (0x11UL) /* TRGM input 1 from IO */
105 #define HPM_TRGM0_FILTER_SRC_TRGM_IN2 (0x12UL) /* TRGM input 2 (dropped macro please use macro TRGM0_P00) */
106 #define HPM_TRGM0_FILTER_SRC_TRGM_P02 (0x12UL) /* TRGM input 2 from IO */
107 #define HPM_TRGM0_FILTER_SRC_TRGM_IN3 (0x13UL) /* TRGM input 3 (dropped macro please use macro TRGM0_P00) */
108 #define HPM_TRGM0_FILTER_SRC_TRGM_P03 (0x13UL) /* TRGM input 3 from IO */
109 #define HPM_TRGM0_FILTER_SRC_TRGM_IN4 (0x14UL) /* TRGM input 4 (dropped macro please use macro TRGM0_P00) */
110 #define HPM_TRGM0_FILTER_SRC_TRGM_P04 (0x14UL) /* TRGM input 4 from IO */
111 #define HPM_TRGM0_FILTER_SRC_TRGM_IN5 (0x15UL) /* TRGM input 5 (dropped macro please use macro TRGM0_P00) */
112 #define HPM_TRGM0_FILTER_SRC_TRGM_P05 (0x15UL) /* TRGM input 5 from IO */
113 #define HPM_TRGM0_FILTER_SRC_TRGM_IN6 (0x16UL) /* TRGM input 6 (dropped macro please use macro TRGM0_P00) */
114 #define HPM_TRGM0_FILTER_SRC_TRGM_P06 (0x16UL) /* TRGM input 6 from IO */
115 #define HPM_TRGM0_FILTER_SRC_TRGM_IN7 (0x17UL) /* TRGM input 7 (dropped macro please use macro TRGM0_P00) */
116 #define HPM_TRGM0_FILTER_SRC_TRGM_P07 (0x17UL) /* TRGM input 7 from IO */
117 
118 /* trgm0_dma mux definitions */
119 #define HPM_TRGM0_DMA_SRC_TRGM0 (0x3CUL) /* DMA request 0 for TRGM (from TRGM output 135) */
120 #define HPM_TRGM0_DMA_SRC_TRGM1 (0x3DUL) /* DMA request 1 for TRGM (from TRGM output 136) */
121 
122 
123 
124 #endif /* HPM_TRGMMUX_SRC_H */