1 |
582 |
jeremybenn |
/**
|
2 |
|
|
******************************************************************************
|
3 |
|
|
* @file stm32l1xx_gpio.h
|
4 |
|
|
* @author MCD Application Team
|
5 |
|
|
* @version V1.0.0RC1
|
6 |
|
|
* @date 07/02/2010
|
7 |
|
|
* @brief This file contains all the functions prototypes for the GPIO
|
8 |
|
|
* firmware library.
|
9 |
|
|
******************************************************************************
|
10 |
|
|
* @copy
|
11 |
|
|
*
|
12 |
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
13 |
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
14 |
|
|
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
15 |
|
|
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
16 |
|
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
17 |
|
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
18 |
|
|
*
|
19 |
|
|
* <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2>
|
20 |
|
|
*/
|
21 |
|
|
|
22 |
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
23 |
|
|
#ifndef __STM32L1xx_GPIO_H
|
24 |
|
|
#define __STM32L1xx_GPIO_H
|
25 |
|
|
|
26 |
|
|
#ifdef __cplusplus
|
27 |
|
|
extern "C" {
|
28 |
|
|
#endif
|
29 |
|
|
|
30 |
|
|
/* Includes ------------------------------------------------------------------*/
|
31 |
|
|
#include "stm32l1xx.h"
|
32 |
|
|
|
33 |
|
|
/** @addtogroup STM32L1xx_StdPeriph_Driver
|
34 |
|
|
* @{
|
35 |
|
|
*/
|
36 |
|
|
|
37 |
|
|
/** @addtogroup GPIO
|
38 |
|
|
* @{
|
39 |
|
|
*/
|
40 |
|
|
|
41 |
|
|
/** @defgroup GPIO_Exported_Types
|
42 |
|
|
* @{
|
43 |
|
|
*/
|
44 |
|
|
#define IS_GPIO_ALL_PERIPH(PERIPH) (((PERIPH) == GPIOA) || \
|
45 |
|
|
((PERIPH) == GPIOB) || \
|
46 |
|
|
((PERIPH) == GPIOC) || \
|
47 |
|
|
((PERIPH) == GPIOD) || \
|
48 |
|
|
((PERIPH) == GPIOE) || \
|
49 |
|
|
((PERIPH) == GPIOH))
|
50 |
|
|
|
51 |
|
|
/** @defgroup Configuration_Mode_enumeration
|
52 |
|
|
* @{
|
53 |
|
|
*/
|
54 |
|
|
typedef enum
|
55 |
|
|
{
|
56 |
|
|
GPIO_Mode_IN = 0x00, /*!< GPIO Input Mode */
|
57 |
|
|
GPIO_Mode_OUT = 0x01, /*!< GPIO Output Mode */
|
58 |
|
|
GPIO_Mode_AF = 0x02, /*!< GPIO Alternate function Mode */
|
59 |
|
|
GPIO_Mode_AN = 0x03 /*!< GPIO Analog Mode */
|
60 |
|
|
}GPIOMode_TypeDef;
|
61 |
|
|
#define IS_GPIO_MODE(MODE) (((MODE) == GPIO_Mode_IN) || ((MODE) == GPIO_Mode_OUT) || \
|
62 |
|
|
((MODE) == GPIO_Mode_AF)|| ((MODE) == GPIO_Mode_AN))
|
63 |
|
|
/**
|
64 |
|
|
* @}
|
65 |
|
|
*/
|
66 |
|
|
|
67 |
|
|
/** @defgroup Output_type_enumeration
|
68 |
|
|
* @{
|
69 |
|
|
*/
|
70 |
|
|
typedef enum
|
71 |
|
|
{ GPIO_OType_PP = 0x00,
|
72 |
|
|
GPIO_OType_OD = 0x01
|
73 |
|
|
}GPIOOType_TypeDef;
|
74 |
|
|
#define IS_GPIO_OTYPE(OTYPE) (((OTYPE) == GPIO_OType_PP) || ((OTYPE) == GPIO_OType_OD))
|
75 |
|
|
|
76 |
|
|
/**
|
77 |
|
|
* @}
|
78 |
|
|
*/
|
79 |
|
|
|
80 |
|
|
/** @defgroup Output_Maximum_frequency_enumeration
|
81 |
|
|
* @{
|
82 |
|
|
*/
|
83 |
|
|
typedef enum
|
84 |
|
|
{
|
85 |
|
|
GPIO_Speed_400KHz = 0x00, /*!< Very Low Speed */
|
86 |
|
|
GPIO_Speed_2MHz = 0x01, /*!< Low Speed */
|
87 |
|
|
GPIO_Speed_10MHz = 0x02, /*!< Medium Speed */
|
88 |
|
|
GPIO_Speed_40MHz = 0x03 /*!< High Speed */
|
89 |
|
|
}GPIOSpeed_TypeDef;
|
90 |
|
|
#define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_Speed_400KHz) || ((SPEED) == GPIO_Speed_2MHz) || \
|
91 |
|
|
((SPEED) == GPIO_Speed_10MHz)|| ((SPEED) == GPIO_Speed_40MHz))
|
92 |
|
|
/**
|
93 |
|
|
* @}
|
94 |
|
|
*/
|
95 |
|
|
|
96 |
|
|
/** @defgroup Configuration_Pull-Up_Pull-Down_enumeration
|
97 |
|
|
* @{
|
98 |
|
|
*/
|
99 |
|
|
typedef enum
|
100 |
|
|
{ GPIO_PuPd_NOPULL = 0x00,
|
101 |
|
|
GPIO_PuPd_UP = 0x01,
|
102 |
|
|
GPIO_PuPd_DOWN = 0x02
|
103 |
|
|
}GPIOPuPd_TypeDef;
|
104 |
|
|
#define IS_GPIO_PUPD(PUPD) (((PUPD) == GPIO_PuPd_NOPULL) || ((PUPD) == GPIO_PuPd_UP) || \
|
105 |
|
|
((PUPD) == GPIO_PuPd_DOWN))
|
106 |
|
|
/**
|
107 |
|
|
* @}
|
108 |
|
|
*/
|
109 |
|
|
|
110 |
|
|
/** @defgroup Bit_SET_and_Bit_RESET_enumeration
|
111 |
|
|
* @{
|
112 |
|
|
*/
|
113 |
|
|
typedef enum
|
114 |
|
|
{ Bit_RESET = 0,
|
115 |
|
|
Bit_SET
|
116 |
|
|
}BitAction;
|
117 |
|
|
#define IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET))
|
118 |
|
|
|
119 |
|
|
/**
|
120 |
|
|
* @}
|
121 |
|
|
*/
|
122 |
|
|
|
123 |
|
|
/**
|
124 |
|
|
* @brief GPIO Init structure definition
|
125 |
|
|
*/
|
126 |
|
|
typedef struct
|
127 |
|
|
{
|
128 |
|
|
uint32_t GPIO_Pin; /*!< Specifies the GPIO pins to be configured.
|
129 |
|
|
This parameter can be any value of @ref GPIO_pins_define */
|
130 |
|
|
|
131 |
|
|
GPIOMode_TypeDef GPIO_Mode; /*!< Specifies the operating mode for the selected pins.
|
132 |
|
|
This parameter can be a value of @ref GPIOMode_TypeDef */
|
133 |
|
|
|
134 |
|
|
GPIOSpeed_TypeDef GPIO_Speed; /*!< Specifies the speed for the selected pins.
|
135 |
|
|
This parameter can be a value of @ref GPIOSpeed_TypeDef */
|
136 |
|
|
|
137 |
|
|
GPIOOType_TypeDef GPIO_OType; /*!< Specifies the operating output type for the selected pins.
|
138 |
|
|
This parameter can be a value of @ref GPIOOType_TypeDef */
|
139 |
|
|
|
140 |
|
|
GPIOPuPd_TypeDef GPIO_PuPd; /*!< Specifies the operating Pull-up/Pull down for the selected pins.
|
141 |
|
|
This parameter can be a value of @ref GPIOPuPd_TypeDef */
|
142 |
|
|
}GPIO_InitTypeDef;
|
143 |
|
|
/**
|
144 |
|
|
* @}
|
145 |
|
|
*/
|
146 |
|
|
|
147 |
|
|
/** @defgroup GPIO_Exported_Constants
|
148 |
|
|
* @{
|
149 |
|
|
*/
|
150 |
|
|
|
151 |
|
|
/**
|
152 |
|
|
* @}
|
153 |
|
|
*/
|
154 |
|
|
|
155 |
|
|
/** @defgroup GPIO_pins_define
|
156 |
|
|
* @{
|
157 |
|
|
*/
|
158 |
|
|
#define GPIO_Pin_0 ((uint16_t)0x0001) /*!< Pin 0 selected */
|
159 |
|
|
#define GPIO_Pin_1 ((uint16_t)0x0002) /*!< Pin 1 selected */
|
160 |
|
|
#define GPIO_Pin_2 ((uint16_t)0x0004) /*!< Pin 2 selected */
|
161 |
|
|
#define GPIO_Pin_3 ((uint16_t)0x0008) /*!< Pin 3 selected */
|
162 |
|
|
#define GPIO_Pin_4 ((uint16_t)0x0010) /*!< Pin 4 selected */
|
163 |
|
|
#define GPIO_Pin_5 ((uint16_t)0x0020) /*!< Pin 5 selected */
|
164 |
|
|
#define GPIO_Pin_6 ((uint16_t)0x0040) /*!< Pin 6 selected */
|
165 |
|
|
#define GPIO_Pin_7 ((uint16_t)0x0080) /*!< Pin 7 selected */
|
166 |
|
|
#define GPIO_Pin_8 ((uint16_t)0x0100) /*!< Pin 8 selected */
|
167 |
|
|
#define GPIO_Pin_9 ((uint16_t)0x0200) /*!< Pin 9 selected */
|
168 |
|
|
#define GPIO_Pin_10 ((uint16_t)0x0400) /*!< Pin 10 selected */
|
169 |
|
|
#define GPIO_Pin_11 ((uint16_t)0x0800) /*!< Pin 11 selected */
|
170 |
|
|
#define GPIO_Pin_12 ((uint16_t)0x1000) /*!< Pin 12 selected */
|
171 |
|
|
#define GPIO_Pin_13 ((uint16_t)0x2000) /*!< Pin 13 selected */
|
172 |
|
|
#define GPIO_Pin_14 ((uint16_t)0x4000) /*!< Pin 14 selected */
|
173 |
|
|
#define GPIO_Pin_15 ((uint16_t)0x8000) /*!< Pin 15 selected */
|
174 |
|
|
#define GPIO_Pin_All ((uint16_t)0xFFFF) /*!< All pins selected */
|
175 |
|
|
|
176 |
|
|
#define IS_GPIO_PIN(PIN) ((PIN) != (uint16_t)0x00)
|
177 |
|
|
#define IS_GET_GPIO_PIN(PIN) (((PIN) == GPIO_Pin_0) || \
|
178 |
|
|
((PIN) == GPIO_Pin_1) || \
|
179 |
|
|
((PIN) == GPIO_Pin_2) || \
|
180 |
|
|
((PIN) == GPIO_Pin_3) || \
|
181 |
|
|
((PIN) == GPIO_Pin_4) || \
|
182 |
|
|
((PIN) == GPIO_Pin_5) || \
|
183 |
|
|
((PIN) == GPIO_Pin_6) || \
|
184 |
|
|
((PIN) == GPIO_Pin_7) || \
|
185 |
|
|
((PIN) == GPIO_Pin_8) || \
|
186 |
|
|
((PIN) == GPIO_Pin_9) || \
|
187 |
|
|
((PIN) == GPIO_Pin_10) || \
|
188 |
|
|
((PIN) == GPIO_Pin_11) || \
|
189 |
|
|
((PIN) == GPIO_Pin_12) || \
|
190 |
|
|
((PIN) == GPIO_Pin_13) || \
|
191 |
|
|
((PIN) == GPIO_Pin_14) || \
|
192 |
|
|
((PIN) == GPIO_Pin_15))
|
193 |
|
|
/**
|
194 |
|
|
* @}
|
195 |
|
|
*/
|
196 |
|
|
|
197 |
|
|
/** @defgroup GPIO_Pin_sources
|
198 |
|
|
* @{
|
199 |
|
|
*/
|
200 |
|
|
#define GPIO_PinSource0 ((uint8_t)0x00)
|
201 |
|
|
#define GPIO_PinSource1 ((uint8_t)0x01)
|
202 |
|
|
#define GPIO_PinSource2 ((uint8_t)0x02)
|
203 |
|
|
#define GPIO_PinSource3 ((uint8_t)0x03)
|
204 |
|
|
#define GPIO_PinSource4 ((uint8_t)0x04)
|
205 |
|
|
#define GPIO_PinSource5 ((uint8_t)0x05)
|
206 |
|
|
#define GPIO_PinSource6 ((uint8_t)0x06)
|
207 |
|
|
#define GPIO_PinSource7 ((uint8_t)0x07)
|
208 |
|
|
#define GPIO_PinSource8 ((uint8_t)0x08)
|
209 |
|
|
#define GPIO_PinSource9 ((uint8_t)0x09)
|
210 |
|
|
#define GPIO_PinSource10 ((uint8_t)0x0A)
|
211 |
|
|
#define GPIO_PinSource11 ((uint8_t)0x0B)
|
212 |
|
|
#define GPIO_PinSource12 ((uint8_t)0x0C)
|
213 |
|
|
#define GPIO_PinSource13 ((uint8_t)0x0D)
|
214 |
|
|
#define GPIO_PinSource14 ((uint8_t)0x0E)
|
215 |
|
|
#define GPIO_PinSource15 ((uint8_t)0x0F)
|
216 |
|
|
|
217 |
|
|
#define IS_GPIO_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == GPIO_PinSource0) || \
|
218 |
|
|
((PINSOURCE) == GPIO_PinSource1) || \
|
219 |
|
|
((PINSOURCE) == GPIO_PinSource2) || \
|
220 |
|
|
((PINSOURCE) == GPIO_PinSource3) || \
|
221 |
|
|
((PINSOURCE) == GPIO_PinSource4) || \
|
222 |
|
|
((PINSOURCE) == GPIO_PinSource5) || \
|
223 |
|
|
((PINSOURCE) == GPIO_PinSource6) || \
|
224 |
|
|
((PINSOURCE) == GPIO_PinSource7) || \
|
225 |
|
|
((PINSOURCE) == GPIO_PinSource8) || \
|
226 |
|
|
((PINSOURCE) == GPIO_PinSource9) || \
|
227 |
|
|
((PINSOURCE) == GPIO_PinSource10) || \
|
228 |
|
|
((PINSOURCE) == GPIO_PinSource11) || \
|
229 |
|
|
((PINSOURCE) == GPIO_PinSource12) || \
|
230 |
|
|
((PINSOURCE) == GPIO_PinSource13) || \
|
231 |
|
|
((PINSOURCE) == GPIO_PinSource14) || \
|
232 |
|
|
((PINSOURCE) == GPIO_PinSource15))
|
233 |
|
|
/**
|
234 |
|
|
* @}
|
235 |
|
|
*/
|
236 |
|
|
|
237 |
|
|
/** @defgroup GPIO_Alternat_function_selection_define
|
238 |
|
|
* @{
|
239 |
|
|
*/
|
240 |
|
|
|
241 |
|
|
/**
|
242 |
|
|
* @brief AF 0 selection
|
243 |
|
|
*/
|
244 |
|
|
#define GPIO_AF_RTC_50Hz ((uint8_t)0x00) /*!< RTC 50/60 Hz Alternate Function mapping */
|
245 |
|
|
#define GPIO_AF_MCO ((uint8_t)0x00) /*!< MCO Alternate Function mapping */
|
246 |
|
|
#define GPIO_AF_RTC_AF1 ((uint8_t)0x00) /*!< RTC_AF1 Alternate Function mapping */
|
247 |
|
|
#define GPIO_AF_WKUP ((uint8_t)0x00) /*!< Wakeup (WKUP1, WKUP2 and WKUP3) Alternate Function mapping */
|
248 |
|
|
#define GPIO_AF_SWJ ((uint8_t)0x00) /*!< SWJ (SW and JTAG) Alternate Function mapping */
|
249 |
|
|
#define GPIO_AF_TRACE ((uint8_t)0x00) /*!< TRACE Alternate Function mapping */
|
250 |
|
|
|
251 |
|
|
/**
|
252 |
|
|
* @brief AF 1 selection
|
253 |
|
|
*/
|
254 |
|
|
#define GPIO_AF_TIM2 ((uint8_t)0x01) /*!< TIM2 Alternate Function mapping */
|
255 |
|
|
/**
|
256 |
|
|
* @brief AF 2 selection
|
257 |
|
|
*/
|
258 |
|
|
#define GPIO_AF_TIM3 ((uint8_t)0x02) /*!< TIM3 Alternate Function mapping */
|
259 |
|
|
#define GPIO_AF_TIM4 ((uint8_t)0x02) /*!< TIM4 Alternate Function mapping */
|
260 |
|
|
/**
|
261 |
|
|
* @brief AF 3 selection
|
262 |
|
|
*/
|
263 |
|
|
#define GPIO_AF_TIM9 ((uint8_t)0x03) /*!< TIM9 Alternate Function mapping */
|
264 |
|
|
#define GPIO_AF_TIM10 ((uint8_t)0x03) /*!< TIM10 Alternate Function mapping */
|
265 |
|
|
#define GPIO_AF_TIM11 ((uint8_t)0x03) /*!< TIM11 Alternate Function mapping */
|
266 |
|
|
/**
|
267 |
|
|
* @brief AF 4 selection
|
268 |
|
|
*/
|
269 |
|
|
#define GPIO_AF_I2C1 ((uint8_t)0x04) /*!< I2C1 Alternate Function mapping */
|
270 |
|
|
#define GPIO_AF_I2C2 ((uint8_t)0x04) /*!< I2C2 Alternate Function mapping */
|
271 |
|
|
/**
|
272 |
|
|
* @brief AF 5 selection
|
273 |
|
|
*/
|
274 |
|
|
#define GPIO_AF_SPI1 ((uint8_t)0x05) /*!< SPI1 Alternate Function mapping */
|
275 |
|
|
#define GPIO_AF_SPI2 ((uint8_t)0x05) /*!< SPI2 Alternate Function mapping */
|
276 |
|
|
/**
|
277 |
|
|
* @brief AF 7 selection
|
278 |
|
|
*/
|
279 |
|
|
#define GPIO_AF_USART1 ((uint8_t)0x07) /*!< USART1 Alternate Function mapping */
|
280 |
|
|
#define GPIO_AF_USART2 ((uint8_t)0x07) /*!< USART2 Alternate Function mapping */
|
281 |
|
|
#define GPIO_AF_USART3 ((uint8_t)0x07) /*!< USART3 Alternate Function mapping */
|
282 |
|
|
/**
|
283 |
|
|
* @brief AF 10 selection
|
284 |
|
|
*/
|
285 |
|
|
#define GPIO_AF_USB ((uint8_t)0xA) /*!< USB Full speed device Alternate Function mapping */
|
286 |
|
|
/**
|
287 |
|
|
* @brief AF 11 selection
|
288 |
|
|
*/
|
289 |
|
|
#define GPIO_AF_LCD ((uint8_t)0x0B) /*!< LCD Alternate Function mapping */
|
290 |
|
|
/**
|
291 |
|
|
* @brief AF 14 selection
|
292 |
|
|
*/
|
293 |
|
|
#define GPIO_AF_RI ((uint8_t)0x0E) /*!< RI Alternate Function mapping */
|
294 |
|
|
|
295 |
|
|
/**
|
296 |
|
|
* @brief AF 15 selection
|
297 |
|
|
*/
|
298 |
|
|
#define GPIO_AF_EVENTOUT ((uint8_t)0x0F) /*!< EVENTOUT Alternate Function mapping */
|
299 |
|
|
|
300 |
|
|
#define IS_GPIO_AF(AF) (((AF) == GPIO_AF_RTC_50Hz) || ((AF) == GPIO_AF_MCO) || \
|
301 |
|
|
((AF) == GPIO_AF_RTC_AF1) || ((AF) == GPIO_AF_WKUP) || \
|
302 |
|
|
((AF) == GPIO_AF_SWJ) || ((AF) == GPIO_AF_TRACE) || \
|
303 |
|
|
((AF) == GPIO_AF_TIM2) || ((AF)== GPIO_AF_TIM3) || \
|
304 |
|
|
((AF) == GPIO_AF_TIM4) || ((AF)== GPIO_AF_TIM9) || \
|
305 |
|
|
((AF) == GPIO_AF_TIM10) || ((AF)== GPIO_AF_TIM11) || \
|
306 |
|
|
((AF) == GPIO_AF_I2C1) || ((AF) == GPIO_AF_I2C2) || \
|
307 |
|
|
((AF) == GPIO_AF_SPI1) || ((AF) == GPIO_AF_SPI2) || \
|
308 |
|
|
((AF) == GPIO_AF_USART1) || ((AF) == GPIO_AF_USART2) || \
|
309 |
|
|
((AF) == GPIO_AF_USART3) || ((AF) == GPIO_AF_USB) || \
|
310 |
|
|
((AF) == GPIO_AF_LCD) || ((AF) == GPIO_AF_RI) || \
|
311 |
|
|
((AF) == GPIO_AF_EVENTOUT))
|
312 |
|
|
|
313 |
|
|
/**
|
314 |
|
|
* @}
|
315 |
|
|
*/
|
316 |
|
|
|
317 |
|
|
/** @defgroup GPIO_Legacy
|
318 |
|
|
* @{
|
319 |
|
|
*/
|
320 |
|
|
|
321 |
|
|
#define GPIO_Mode_AIN GPIO_Mode_AN
|
322 |
|
|
|
323 |
|
|
/**
|
324 |
|
|
* @}
|
325 |
|
|
*/
|
326 |
|
|
|
327 |
|
|
/** @defgroup GPIO_Exported_Macros
|
328 |
|
|
* @{
|
329 |
|
|
*/
|
330 |
|
|
|
331 |
|
|
/**
|
332 |
|
|
* @}
|
333 |
|
|
*/
|
334 |
|
|
|
335 |
|
|
/** @defgroup GPIO_Exported_Functions
|
336 |
|
|
* @{
|
337 |
|
|
*/
|
338 |
|
|
void GPIO_DeInit(GPIO_TypeDef* GPIOx);
|
339 |
|
|
void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct);
|
340 |
|
|
void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct);
|
341 |
|
|
uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
|
342 |
|
|
uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx);
|
343 |
|
|
uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
|
344 |
|
|
uint16_t GPIO_ReadOutputData(GPIO_TypeDef* GPIOx);
|
345 |
|
|
void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
|
346 |
|
|
void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
|
347 |
|
|
void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal);
|
348 |
|
|
void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal);
|
349 |
|
|
void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
|
350 |
|
|
void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF);
|
351 |
|
|
|
352 |
|
|
#ifdef __cplusplus
|
353 |
|
|
}
|
354 |
|
|
#endif
|
355 |
|
|
|
356 |
|
|
#endif /*__STM32L1xx_GPIO_H */
|
357 |
|
|
/**
|
358 |
|
|
* @}
|
359 |
|
|
*/
|
360 |
|
|
|
361 |
|
|
/**
|
362 |
|
|
* @}
|
363 |
|
|
*/
|
364 |
|
|
|
365 |
|
|
/**
|
366 |
|
|
* @}
|
367 |
|
|
*/
|
368 |
|
|
|
369 |
|
|
/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
|