EZR32 Wonder Gecko Software Documentation  ezr32wg-doc-5.1.2
ezr32wg_af_pins.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
42 #define AF_USB_VBUSEN_PIN(i) ((i) == 0 ? 5 : -1)
43 #define AF_USB_DMPU_PIN(i) ((i) == 0 ? 2 : -1)
44 #define AF_CMU_CLK0_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? 12 : (i) == 2 ? 7 : -1)
45 #define AF_CMU_CLK1_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 8 : (i) == 2 ? 12 : -1)
46 #define AF_LESENSE_CH6_PIN(i) ((i) == 0 ? 6 : -1)
47 #define AF_LESENSE_CH7_PIN(i) ((i) == 0 ? 7 : -1)
48 #define AF_LESENSE_CH12_PIN(i) ((i) == 0 ? 12 : -1)
49 #define AF_LESENSE_CH13_PIN(i) ((i) == 0 ? 13 : -1)
50 #define AF_LESENSE_CH14_PIN(i) ((i) == 0 ? 14 : -1)
51 #define AF_LESENSE_CH15_PIN(i) ((i) == 0 ? 15 : -1)
52 #define AF_USARTRF0_TX_PIN(i) ((i) == 0 ? 10 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 7 : (i) == 5 ? -1 : -1)
53 #define AF_USARTRF0_RX_PIN(i) ((i) == 0 ? 11 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 8 : (i) == 5 ? -1 : -1)
54 #define AF_USARTRF0_CLK_PIN(i) ((i) == 0 ? 12 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? -1 : (i) == 5 ? -1 : -1)
55 #define AF_USARTRF0_CS_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? -1 : (i) == 5 ? -1 : -1)
56 #define AF_USART1_TX_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 0 : (i) == 2 ? 7 : -1)
57 #define AF_USART1_RX_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 1 : (i) == 2 ? 6 : -1)
58 #define AF_USART1_CLK_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 2 : (i) == 2 ? 0 : -1)
59 #define AF_USART1_CS_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 3 : (i) == 2 ? 1 : -1)
60 #define AF_USART2_TX_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 3 : -1)
61 #define AF_USART2_RX_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 4 : -1)
62 #define AF_USART2_CLK_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 5 : -1)
63 #define AF_USART2_CS_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 6 : -1)
64 #define AF_UART0_TX_PIN(i) ((i) == 0 ? 6 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? 14 : -1)
65 #define AF_UART0_RX_PIN(i) ((i) == 0 ? 7 : (i) == 1 ? 1 : (i) == 2 ? -1 : (i) == 3 ? 15 : -1)
66 #define AF_UART0_CLK_PIN(i) (-1)
67 #define AF_UART0_CS_PIN(i) (-1)
68 #define AF_UART1_TX_PIN(i) ((i) == 0 ? 12 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? 2 : -1)
69 #define AF_UART1_RX_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? 3 : -1)
70 #define AF_UART1_CLK_PIN(i) (-1)
71 #define AF_UART1_CS_PIN(i) (-1)
72 #define AF_TIMER0_CC0_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 6 : (i) == 3 ? 1 : (i) == 4 ? 0 : (i) == 5 ? 0 : -1)
73 #define AF_TIMER0_CC1_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 7 : (i) == 3 ? 2 : (i) == 4 ? -1 : (i) == 5 ? 1 : -1)
74 #define AF_TIMER0_CC2_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? -1 : (i) == 2 ? 8 : (i) == 3 ? 3 : (i) == 4 ? -1 : (i) == 5 ? 2 : -1)
75 #define AF_TIMER0_CDTI0_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 13 : (i) == 2 ? 3 : (i) == 3 ? 13 : (i) == 4 ? -1 : (i) == 5 ? 3 : -1)
76 #define AF_TIMER0_CDTI1_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 14 : (i) == 2 ? 4 : (i) == 3 ? 14 : (i) == 4 ? -1 : (i) == 5 ? 4 : -1)
77 #define AF_TIMER0_CDTI2_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 15 : (i) == 2 ? 5 : (i) == 3 ? 15 : (i) == 4 ? -1 : (i) == 5 ? 5 : -1)
78 #define AF_TIMER1_CC0_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? 7 : (i) == 4 ? 6 : -1)
79 #define AF_TIMER1_CC1_PIN(i) ((i) == 0 ? 14 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? 8 : (i) == 4 ? 7 : -1)
80 #define AF_TIMER1_CC2_PIN(i) ((i) == 0 ? 15 : (i) == 1 ? -1 : (i) == 2 ? -1 : (i) == 3 ? 11 : (i) == 4 ? 13 : -1)
81 #define AF_TIMER1_CDTI0_PIN(i) (-1)
82 #define AF_TIMER1_CDTI1_PIN(i) (-1)
83 #define AF_TIMER1_CDTI2_PIN(i) (-1)
84 #define AF_TIMER2_CC0_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 12 : (i) == 2 ? -1 : -1)
85 #define AF_TIMER2_CC1_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 13 : (i) == 2 ? -1 : -1)
86 #define AF_TIMER2_CC2_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 14 : (i) == 2 ? -1 : -1)
87 #define AF_TIMER2_CDTI0_PIN(i) (-1)
88 #define AF_TIMER2_CDTI1_PIN(i) (-1)
89 #define AF_TIMER2_CDTI2_PIN(i) (-1)
90 #define AF_TIMER3_CC0_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 0 : -1)
91 #define AF_TIMER3_CC1_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 1 : -1)
92 #define AF_TIMER3_CC2_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 2 : -1)
93 #define AF_TIMER3_CDTI0_PIN(i) (-1)
94 #define AF_TIMER3_CDTI1_PIN(i) (-1)
95 #define AF_TIMER3_CDTI2_PIN(i) (-1)
96 #define AF_ACMP0_OUT_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 2 : (i) == 2 ? 6 : -1)
97 #define AF_ACMP1_OUT_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? 3 : (i) == 2 ? 7 : -1)
98 #define AF_LEUART0_TX_PIN(i) ((i) == 0 ? 4 : (i) == 1 ? 13 : (i) == 2 ? -1 : (i) == 3 ? 0 : (i) == 4 ? 2 : -1)
99 #define AF_LEUART0_RX_PIN(i) ((i) == 0 ? 5 : (i) == 1 ? 14 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 0 : -1)
100 #define AF_LEUART1_TX_PIN(i) ((i) == 0 ? 6 : (i) == 1 ? -1 : -1)
101 #define AF_LEUART1_RX_PIN(i) ((i) == 0 ? 7 : (i) == 1 ? -1 : -1)
102 #define AF_LETIMER0_OUT0_PIN(i) ((i) == 0 ? 6 : (i) == 1 ? 11 : (i) == 2 ? 0 : (i) == 3 ? -1 : -1)
103 #define AF_LETIMER0_OUT1_PIN(i) ((i) == 0 ? 7 : (i) == 1 ? -1 : (i) == 2 ? 1 : (i) == 3 ? -1 : -1)
104 #define AF_PCNT0_S0IN_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? 6 : -1)
105 #define AF_PCNT0_S1IN_PIN(i) ((i) == 0 ? 14 : (i) == 1 ? 1 : (i) == 2 ? -1 : (i) == 3 ? 7 : -1)
106 #define AF_PCNT1_S0IN_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 3 : -1)
107 #define AF_PCNT1_S1IN_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 4 : -1)
108 #define AF_PCNT2_S0IN_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? -1 : -1)
109 #define AF_PCNT2_S1IN_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? -1 : -1)
110 #define AF_I2C0_SDA_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 6 : (i) == 2 ? 6 : (i) == 3 ? -1 : (i) == 4 ? -1 : (i) == 5 ? 0 : (i) == 6 ? -1 : -1)
111 #define AF_I2C0_SCL_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 7 : (i) == 2 ? 7 : (i) == 3 ? -1 : (i) == 4 ? -1 : (i) == 5 ? 1 : (i) == 6 ? -1 : -1)
112 #define AF_I2C1_SDA_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? -1 : (i) == 2 ? 0 : -1)
113 #define AF_I2C1_SCL_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? -1 : (i) == 2 ? 1 : -1)
114 #define AF_PRS_CH0_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : -1)
115 #define AF_PRS_CH1_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 4 : -1)
116 #define AF_PRS_CH2_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? 5 : -1)
117 #define AF_PRS_CH3_PIN(i) ((i) == 0 ? -1 : (i) == 1 ? -1 : -1)
118 #define AF_DBG_SWO_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? 15 : (i) == 2 ? 1 : (i) == 3 ? 2 : -1)
119 #define AF_DBG_SWDIO_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : (i) == 3 ? 1 : -1)
120 #define AF_DBG_SWCLK_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : (i) == 3 ? 0 : -1)
121 #define AF_ETM_TCLK_PIN(i) ((i) == 0 ? 7 : (i) == 1 ? -1 : (i) == 2 ? 6 : (i) == 3 ? -1 : -1)
122 #define AF_ETM_TD0_PIN(i) ((i) == 0 ? 6 : (i) == 1 ? -1 : (i) == 2 ? 7 : (i) == 3 ? -1 : -1)
123 #define AF_ETM_TD1_PIN(i) ((i) == 0 ? 3 : (i) == 1 ? -1 : (i) == 2 ? 3 : (i) == 3 ? -1 : -1)
124 #define AF_ETM_TD2_PIN(i) ((i) == 0 ? 4 : (i) == 1 ? -1 : (i) == 2 ? 4 : (i) == 3 ? -1 : -1)
125 #define AF_ETM_TD3_PIN(i) ((i) == 0 ? 5 : (i) == 1 ? -1 : (i) == 2 ? 5 : (i) == 3 ? -1 : -1)
126