EFM32 Tiny Gecko Software Documentation  efm32tg-doc-5.1.2
efm32tg_af_ports.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
42 #define AF_CMU_CLK0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 2 : (i) == 2 ? 3 : -1)
43 #define AF_CMU_CLK1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? 4 : -1)
44 #define AF_LESENSE_CH0_PORT(i) ((i) == 0 ? 2 : -1)
45 #define AF_LESENSE_CH1_PORT(i) ((i) == 0 ? 2 : -1)
46 #define AF_LESENSE_CH2_PORT(i) ((i) == 0 ? 2 : -1)
47 #define AF_LESENSE_CH3_PORT(i) ((i) == 0 ? 2 : -1)
48 #define AF_LESENSE_CH4_PORT(i) ((i) == 0 ? 2 : -1)
49 #define AF_LESENSE_CH5_PORT(i) ((i) == 0 ? 2 : -1)
50 #define AF_LESENSE_CH6_PORT(i) ((i) == 0 ? 2 : -1)
51 #define AF_LESENSE_CH7_PORT(i) ((i) == 0 ? 2 : -1)
52 #define AF_LESENSE_CH8_PORT(i) ((i) == 0 ? 2 : -1)
53 #define AF_LESENSE_CH9_PORT(i) ((i) == 0 ? 2 : -1)
54 #define AF_LESENSE_CH10_PORT(i) ((i) == 0 ? 2 : -1)
55 #define AF_LESENSE_CH11_PORT(i) ((i) == 0 ? 2 : -1)
56 #define AF_LESENSE_CH12_PORT(i) ((i) == 0 ? 2 : -1)
57 #define AF_LESENSE_CH13_PORT(i) ((i) == 0 ? 2 : -1)
58 #define AF_LESENSE_CH14_PORT(i) ((i) == 0 ? 2 : -1)
59 #define AF_LESENSE_CH15_PORT(i) ((i) == 0 ? 2 : -1)
60 #define AF_LESENSE_ALTEX0_PORT(i) ((i) == 0 ? 3 : -1)
61 #define AF_LESENSE_ALTEX1_PORT(i) ((i) == 0 ? 3 : -1)
62 #define AF_LESENSE_ALTEX2_PORT(i) ((i) == 0 ? 0 : -1)
63 #define AF_LESENSE_ALTEX3_PORT(i) ((i) == 0 ? 0 : -1)
64 #define AF_LESENSE_ALTEX4_PORT(i) ((i) == 0 ? 0 : -1)
65 #define AF_LESENSE_ALTEX5_PORT(i) ((i) == 0 ? 4 : -1)
66 #define AF_LESENSE_ALTEX6_PORT(i) ((i) == 0 ? 4 : -1)
67 #define AF_LESENSE_ALTEX7_PORT(i) ((i) == 0 ? 4 : -1)
68 #define AF_ACMP0_OUT_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? -1 : (i) == 2 ? 3 : -1)
69 #define AF_ACMP1_OUT_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? -1 : (i) == 2 ? 3 : -1)
70 #define AF_USART0_TX_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 4 : (i) == 4 ? 1 : (i) == 5 ? 2 : -1)
71 #define AF_USART0_RX_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 4 : (i) == 4 ? 1 : (i) == 5 ? 2 : -1)
72 #define AF_USART0_CLK_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 2 : (i) == 4 ? 1 : (i) == 5 ? 1 : -1)
73 #define AF_USART0_CS_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 2 : (i) == 4 ? 1 : (i) == 5 ? 1 : -1)
74 #define AF_USART1_TX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
75 #define AF_USART1_RX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
76 #define AF_USART1_CLK_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 3 : (i) == 2 ? 5 : -1)
77 #define AF_USART1_CS_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 3 : (i) == 2 ? 5 : -1)
78 #define AF_TIMER0_CC0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? 3 : (i) == 4 ? 0 : (i) == 5 ? 5 : -1)
79 #define AF_TIMER0_CC1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? 3 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
80 #define AF_TIMER0_CC2_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? 3 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
81 #define AF_TIMER0_CDTI0_PORT(i) (-1)
82 #define AF_TIMER0_CDTI1_PORT(i) (-1)
83 #define AF_TIMER0_CDTI2_PORT(i) (-1)
84 #define AF_TIMER1_CC0_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 3 : -1)
85 #define AF_TIMER1_CC1_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 3 : -1)
86 #define AF_TIMER1_CC2_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 2 : -1)
87 #define AF_TIMER1_CDTI0_PORT(i) (-1)
88 #define AF_TIMER1_CDTI1_PORT(i) (-1)
89 #define AF_TIMER1_CDTI2_PORT(i) (-1)
90 #define AF_PRS_CH0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : -1)
91 #define AF_PRS_CH1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : -1)
92 #define AF_PRS_CH2_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 5 : -1)
93 #define AF_PRS_CH3_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : -1)
94 #define AF_LEUART0_TX_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 4 : (i) == 3 ? 5 : (i) == 4 ? 5 : -1)
95 #define AF_LEUART0_RX_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 4 : (i) == 3 ? 5 : (i) == 4 ? 0 : -1)
96 #define AF_LETIMER0_OUT0_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 5 : (i) == 3 ? 2 : -1)
97 #define AF_LETIMER0_OUT1_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 5 : (i) == 3 ? 2 : -1)
98 #define AF_PCNT0_S0IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 2 : (i) == 3 ? 3 : -1)
99 #define AF_PCNT0_S1IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 2 : (i) == 3 ? 3 : -1)
100 #define AF_I2C0_SDA_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? 2 : (i) == 3 ? -1 : (i) == 4 ? 2 : (i) == 5 ? 5 : (i) == 6 ? 4 : -1)
101 #define AF_I2C0_SCL_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? 2 : (i) == 3 ? -1 : (i) == 4 ? 2 : (i) == 5 ? 5 : (i) == 6 ? 4 : -1)
102 #define AF_DBG_SWO_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 2 : -1)
103 #define AF_DBG_SWDIO_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : -1)
104 #define AF_DBG_SWCLK_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : -1)
105