Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

- File List

qm_pin_functions.h
1 /*
2 * {% copyright %}
3 */
4
5 #ifndef __QM_PIN_FUNCTIONS_H__
6 #define __QM_PIN_FUNCTIONS_H__
7 /**
8 * SoC Pins definition.
9 *
10 * @defgroup group SOC_PINS
11 * @{
12 */
13
14 #include "qm_common.h"
15
16 /*
17 * This file provides an abstraction layer for pin numbers and pin functions.
18 */
19
20 /* Package pins to pin IDs. */
21
22 /* QFN40 package. */
23 #define QM_PIN_ID_QFN40_31 QM_PIN_ID_0
24 #define QM_PIN_ID_QFN40_32 QM_PIN_ID_1
25 #define QM_PIN_ID_QFN40_33 QM_PIN_ID_2
26 #define QM_PIN_ID_QFN40_34 QM_PIN_ID_3
27 #define QM_PIN_ID_QFN40_35 QM_PIN_ID_4
28 #define QM_PIN_ID_QFN40_36 QM_PIN_ID_5
29 #define QM_PIN_ID_QFN40_37 QM_PIN_ID_6
30 #define QM_PIN_ID_QFN40_38 QM_PIN_ID_7
31 #define QM_PIN_ID_QFN40_39 QM_PIN_ID_8
32 #define QM_PIN_ID_QFN40_11 QM_PIN_ID_9
33 #define QM_PIN_ID_QFN40_2 QM_PIN_ID_10
34 #define QM_PIN_ID_QFN40_3 QM_PIN_ID_11
35 #define QM_PIN_ID_QFN40_4 QM_PIN_ID_12
36 #define QM_PIN_ID_QFN40_5 QM_PIN_ID_13
37 #define QM_PIN_ID_QFN40_6 QM_PIN_ID_14
38 #define QM_PIN_ID_QFN40_7 QM_PIN_ID_15
39 #define QM_PIN_ID_QFN40_8 QM_PIN_ID_16
40 #define QM_PIN_ID_QFN40_9 QM_PIN_ID_17
41 #define QM_PIN_ID_QFN40_10 QM_PIN_ID_18
42 #define QM_PIN_ID_QFN40_18 QM_PIN_ID_19
43 #define QM_PIN_ID_QFN40_13 QM_PIN_ID_20
44 #define QM_PIN_ID_QFN40_14 QM_PIN_ID_21
45 #define QM_PIN_ID_QFN40_15 QM_PIN_ID_22
46 #define QM_PIN_ID_QFN40_16 QM_PIN_ID_23
47 #define QM_PIN_ID_QFN40_21 QM_PIN_ID_24
48
49 /* Pin function name to pin function number. */
50
51 /* Pin ID 0. */
52 #define QM_PIN_0_FN_GPIO_0 QM_PMUX_FN_0
53 #define QM_PIN_0_FN_AIN_0 QM_PMUX_FN_1
54 #define QM_PIN_0_FN_SPI0_M_CS_B_0 QM_PMUX_FN_2
55
56 /* Pin ID 1. */
57 #define QM_PIN_1_FN_GPIO_1 QM_PMUX_FN_0
58 #define QM_PIN_1_FN_AIN_1 QM_PMUX_FN_1
59 #define QM_PIN_1_FN_SPI0_M_CS_B_1 QM_PMUX_FN_2
60
61 /* Pin ID 2. */
62 #define QM_PIN_2_FN_GPIO_2 QM_PMUX_FN_0
63 #define QM_PIN_2_FN_AIN_2 QM_PMUX_FN_1
64 #define QM_PIN_2_FN_SPI0_M_CS_B_2 QM_PMUX_FN_2
65
66 /* Pin ID 3. */
67 #define QM_PIN_3_FN_GPIO_3 QM_PMUX_FN_0
68 #define QM_PIN_3_FN_AIN_3 QM_PMUX_FN_1
69 #define QM_PIN_3_FN_SPI0_M_CS_B_3 QM_PMUX_FN_2
70
71 /* Pin ID 4. */
72 #define QM_PIN_4_FN_GPIO_4 QM_PMUX_FN_0
73 #define QM_PIN_4_FN_AIN_4 QM_PMUX_FN_1
74 #define QM_PIN_4_FN_RTC_CLK_OUT QM_PMUX_FN_2
75
76 /* Pin ID 5. */
77 #define QM_PIN_5_FN_GPIO_5 QM_PMUX_FN_0
78 #define QM_PIN_5_FN_AIN_5 QM_PMUX_FN_1
79 #define QM_PIN_5_FN_SYS_CLK_OUT QM_PMUX_FN_2
80
81 /* Pin ID 6. */
82 #define QM_PIN_6_FN_GPIO_6 QM_PMUX_FN_0
83 #define QM_PIN_6_FN_AIN_6 QM_PMUX_FN_1
84 #define QM_PIN_6_FN_I2C0_SCL QM_PMUX_FN_2
85
86 /* Pin ID 7. */
87 #define QM_PIN_7_FN_GPIO_7 QM_PMUX_FN_0
88 #define QM_PIN_7_FN_AIN_7 QM_PMUX_FN_1
89 #define QM_PIN_7_FN_I2C0_SDA QM_PMUX_FN_2
90
91 /* Pin ID 8. */
92 #define QM_PIN_8_FN_GPIO_8 QM_PMUX_FN_0
93 #define QM_PIN_8_FN_AIN_8 QM_PMUX_FN_1
94 #define QM_PIN_8_FN_SPI_S_SCK QM_PMUX_FN_2
95
96 /* Pin ID 9. */
97 #define QM_PIN_9_FN_GPIO_9 QM_PMUX_FN_0
98 #define QM_PIN_9_FN_AIN_9 QM_PMUX_FN_1
99 #define QM_PIN_9_FN_SPI_S_MOSI QM_PMUX_FN_2
100
101 /* Pin ID 10. */
102 #define QM_PIN_10_FN_GPIO_10 QM_PMUX_FN_0
103 #define QM_PIN_10_FN_AIN_10 QM_PMUX_FN_1
104 #define QM_PIN_10_FN_SPI_S_MISO QM_PMUX_FN_2
105
106 /* Pin ID 11. */
107 #define QM_PIN_11_FN_GPIO_11 QM_PMUX_FN_0
108 #define QM_PIN_11_FN_AIN_11 QM_PMUX_FN_1
109 #define QM_PIN_11_FN_SPI_S_CS_B QM_PMUX_FN_2
110
111 /* Pin ID 12. */
112 #define QM_PIN_12_FN_GPIO_12 QM_PMUX_FN_0
113 #define QM_PIN_12_FN_AIN_12 QM_PMUX_FN_1
114 #define QM_PIN_12_FN_UART0_TXD QM_PMUX_FN_2
115
116 /* Pin ID 13. */
117 #define QM_PIN_13_FN_GPIO_13 QM_PMUX_FN_0
118 #define QM_PIN_13_FN_AIN_13 QM_PMUX_FN_1
119 #define QM_PIN_13_FN_UART0_RXD QM_PMUX_FN_2
120
121 /* Pin ID 14. */
122 #define QM_PIN_14_FN_GPIO_14 QM_PMUX_FN_0
123 #define QM_PIN_14_FN_AIN_14 QM_PMUX_FN_1
124 #define QM_PIN_14_FN_UART0_RTS QM_PMUX_FN_2
125
126 /* Pin ID 15. */
127 #define QM_PIN_15_FN_GPIO_15 QM_PMUX_FN_0
128 #define QM_PIN_15_FN_AIN_15 QM_PMUX_FN_1
129 #define QM_PIN_15_FN_UART0_CTS QM_PMUX_FN_2
130
131 /* Pin ID 16. */
132 #define QM_PIN_16_FN_GPIO_16 QM_PMUX_FN_0
133 #define QM_PIN_16_FN_AIN_16 QM_PMUX_FN_1
134 #define QM_PIN_16_FN_SPI0_M_SCK QM_PMUX_FN_2
135
136 /* Pin ID 17. */
137 #define QM_PIN_17_FN_GPIO_17 QM_PMUX_FN_0
138 #define QM_PIN_17_FN_AIN_17 QM_PMUX_FN_1
139 #define QM_PIN_17_FN_SPI0_M_MOSI QM_PMUX_FN_2
140
141 /* Pin ID 18. */
142 #define QM_PIN_18_FN_GPIO_18 QM_PMUX_FN_0
143 #define QM_PIN_18_FN_AIN_18 QM_PMUX_FN_1
144 #define QM_PIN_18_FN_SPI0_M_MISO QM_PMUX_FN_2
145
146 /* Pin ID 19. */
147 #define QM_PIN_19_FN_TDO QM_PMUX_FN_0
148 #define QM_PIN_19_FN_GPIO_19 QM_PMUX_FN_1
149 #define QM_PIN_19_FN_PWM_0 QM_PMUX_FN_2
150
151 /* Pin ID 20. */
152 #define QM_PIN_20_FN_TRST_N QM_PMUX_FN_0
153 #define QM_PIN_20_FN_GPIO_20 QM_PMUX_FN_1
154 #define QM_PIN_20_FN_UART1_TXD QM_PMUX_FN_2
155
156 /* Pin ID 21. */
157 #define QM_PIN_21_FN_TCK QM_PMUX_FN_0
158 #define QM_PIN_21_FN_GPIO_21 QM_PMUX_FN_1
159 #define QM_PIN_21_FN_UART1_RXD QM_PMUX_FN_2
160
161 /* Pin ID 22. */
162 #define QM_PIN_22_FN_TMS QM_PMUX_FN_0
163 #define QM_PIN_22_FN_GPIO_22 QM_PMUX_FN_1
164 #define QM_PIN_22_FN_UART1_RTS QM_PMUX_FN_2
165
166 /* Pin ID 23. */
167 #define QM_PIN_23_FN_TDI QM_PMUX_FN_0
168 #define QM_PIN_23_FN_GPIO_23 QM_PMUX_FN_1
169 #define QM_PIN_23_FN_UART1_CTS QM_PMUX_FN_2
170
171 /* Pin ID 24. */
172 #define QM_PIN_24_FN_GPIO_24 QM_PMUX_FN_0
173 #define QM_PIN_24_FN_LPD_SIG_OUT QM_PMUX_FN_1
174 #define QM_PIN_24_FN_PWM_1 QM_PMUX_FN_2
175
176 /**
177 * @}
178 */
179
180 #endif /* __QM_PIN_FUNCTIONS_H__ */