annotate f103c8/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h @ 4:ca4f5b55b391

working on pwm
author cin
date Wed, 18 Jan 2017 03:27:00 +0300
parents 0c59e7a7782a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
1 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
2 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
3 * @file stm32f1xx_hal_gpio_ex.h
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
4 * @author MCD Application Team
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
5 * @version V1.0.4
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
6 * @date 29-April-2016
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
7 * @brief Header file of GPIO HAL Extension module.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
8 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
9 * @attention
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
10 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
12 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
13 * Redistribution and use in source and binary forms, with or without modification,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
14 * are permitted provided that the following conditions are met:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
15 * 1. Redistributions of source code must retain the above copyright notice,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
16 * this list of conditions and the following disclaimer.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
18 * this list of conditions and the following disclaimer in the documentation
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
19 * and/or other materials provided with the distribution.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
21 * may be used to endorse or promote products derived from this software
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
22 * without specific prior written permission.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
23 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
34 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
35 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
36 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
37
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
38 /* Define to prevent recursive inclusion -------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
39 #ifndef __STM32F1xx_HAL_GPIO_EX_H
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
40 #define __STM32F1xx_HAL_GPIO_EX_H
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
41
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
42 #ifdef __cplusplus
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
43 extern "C" {
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
44 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
45
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
46 /* Includes ------------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
47 #include "stm32f1xx_hal_def.h"
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
48
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
49 /** @addtogroup STM32F1xx_HAL_Driver
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
50 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
51 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
52
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
53 /** @defgroup GPIOEx GPIOEx
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
54 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
55 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
56
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
57 /* Exported types ------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
58
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
59 /* Exported constants --------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
60
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
61 /** @defgroup GPIOEx_Exported_Constants GPIOEx Exported Constants
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
62 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
63 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
64
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
65 /** @defgroup GPIOEx_EVENTOUT EVENTOUT Cortex Configuration
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
66 * @brief This section propose definition to use the Cortex EVENTOUT signal.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
67 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
68 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
69
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
70 /** @defgroup GPIOEx_EVENTOUT_PIN EVENTOUT Pin
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
71 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
72 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
73
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
74 #define AFIO_EVENTOUT_PIN_0 AFIO_EVCR_PIN_PX0 /*!< EVENTOUT on pin 0 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
75 #define AFIO_EVENTOUT_PIN_1 AFIO_EVCR_PIN_PX1 /*!< EVENTOUT on pin 1 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
76 #define AFIO_EVENTOUT_PIN_2 AFIO_EVCR_PIN_PX2 /*!< EVENTOUT on pin 2 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
77 #define AFIO_EVENTOUT_PIN_3 AFIO_EVCR_PIN_PX3 /*!< EVENTOUT on pin 3 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
78 #define AFIO_EVENTOUT_PIN_4 AFIO_EVCR_PIN_PX4 /*!< EVENTOUT on pin 4 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
79 #define AFIO_EVENTOUT_PIN_5 AFIO_EVCR_PIN_PX5 /*!< EVENTOUT on pin 5 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
80 #define AFIO_EVENTOUT_PIN_6 AFIO_EVCR_PIN_PX6 /*!< EVENTOUT on pin 6 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
81 #define AFIO_EVENTOUT_PIN_7 AFIO_EVCR_PIN_PX7 /*!< EVENTOUT on pin 7 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
82 #define AFIO_EVENTOUT_PIN_8 AFIO_EVCR_PIN_PX8 /*!< EVENTOUT on pin 8 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
83 #define AFIO_EVENTOUT_PIN_9 AFIO_EVCR_PIN_PX9 /*!< EVENTOUT on pin 9 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
84 #define AFIO_EVENTOUT_PIN_10 AFIO_EVCR_PIN_PX10 /*!< EVENTOUT on pin 10 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
85 #define AFIO_EVENTOUT_PIN_11 AFIO_EVCR_PIN_PX11 /*!< EVENTOUT on pin 11 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
86 #define AFIO_EVENTOUT_PIN_12 AFIO_EVCR_PIN_PX12 /*!< EVENTOUT on pin 12 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
87 #define AFIO_EVENTOUT_PIN_13 AFIO_EVCR_PIN_PX13 /*!< EVENTOUT on pin 13 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
88 #define AFIO_EVENTOUT_PIN_14 AFIO_EVCR_PIN_PX14 /*!< EVENTOUT on pin 14 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
89 #define AFIO_EVENTOUT_PIN_15 AFIO_EVCR_PIN_PX15 /*!< EVENTOUT on pin 15 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
90
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
91 #define IS_AFIO_EVENTOUT_PIN(__PIN__) (((__PIN__) == AFIO_EVENTOUT_PIN_0) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
92 ((__PIN__) == AFIO_EVENTOUT_PIN_1) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
93 ((__PIN__) == AFIO_EVENTOUT_PIN_2) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
94 ((__PIN__) == AFIO_EVENTOUT_PIN_3) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
95 ((__PIN__) == AFIO_EVENTOUT_PIN_4) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
96 ((__PIN__) == AFIO_EVENTOUT_PIN_5) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
97 ((__PIN__) == AFIO_EVENTOUT_PIN_6) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
98 ((__PIN__) == AFIO_EVENTOUT_PIN_7) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
99 ((__PIN__) == AFIO_EVENTOUT_PIN_8) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
100 ((__PIN__) == AFIO_EVENTOUT_PIN_9) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
101 ((__PIN__) == AFIO_EVENTOUT_PIN_10) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
102 ((__PIN__) == AFIO_EVENTOUT_PIN_11) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
103 ((__PIN__) == AFIO_EVENTOUT_PIN_12) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
104 ((__PIN__) == AFIO_EVENTOUT_PIN_13) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
105 ((__PIN__) == AFIO_EVENTOUT_PIN_14) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
106 ((__PIN__) == AFIO_EVENTOUT_PIN_15))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
107 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
108 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
109 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
110
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
111 /** @defgroup GPIOEx_EVENTOUT_PORT EVENTOUT Port
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
112 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
113 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
114
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
115 #define AFIO_EVENTOUT_PORT_A AFIO_EVCR_PORT_PA /*!< EVENTOUT on port A */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
116 #define AFIO_EVENTOUT_PORT_B AFIO_EVCR_PORT_PB /*!< EVENTOUT on port B */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
117 #define AFIO_EVENTOUT_PORT_C AFIO_EVCR_PORT_PC /*!< EVENTOUT on port C */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
118 #define AFIO_EVENTOUT_PORT_D AFIO_EVCR_PORT_PD /*!< EVENTOUT on port D */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
119 #define AFIO_EVENTOUT_PORT_E AFIO_EVCR_PORT_PE /*!< EVENTOUT on port E */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
120
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
121 #define IS_AFIO_EVENTOUT_PORT(__PORT__) (((__PORT__) == AFIO_EVENTOUT_PORT_A) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
122 ((__PORT__) == AFIO_EVENTOUT_PORT_B) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
123 ((__PORT__) == AFIO_EVENTOUT_PORT_C) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
124 ((__PORT__) == AFIO_EVENTOUT_PORT_D) || \
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
125 ((__PORT__) == AFIO_EVENTOUT_PORT_E))
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
126 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
127 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
128 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
129
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
130 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
131 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
132 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
133
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
134 /** @defgroup GPIOEx_AFIO_AF_REMAPPING Alternate Function Remapping
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
135 * @brief This section propose definition to remap the alternate function to some other port/pins.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
136 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
137 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
138
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
139 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
140 * @brief Enable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
141 * @note ENABLE: Remap (NSS/PA15, SCK/PB3, MISO/PB4, MOSI/PB5)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
142 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
143 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
144 #define __HAL_AFIO_REMAP_SPI1_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_SPI1_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
145
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
146 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
147 * @brief Disable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
148 * @note DISABLE: No remap (NSS/PA4, SCK/PA5, MISO/PA6, MOSI/PA7)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
149 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
150 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
151 #define __HAL_AFIO_REMAP_SPI1_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_SPI1_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
152
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
153 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
154 * @brief Enable the remapping of I2C1 alternate function SCL and SDA.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
155 * @note ENABLE: Remap (SCL/PB8, SDA/PB9)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
156 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
157 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
158 #define __HAL_AFIO_REMAP_I2C1_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_I2C1_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
159
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
160 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
161 * @brief Disable the remapping of I2C1 alternate function SCL and SDA.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
162 * @note DISABLE: No remap (SCL/PB6, SDA/PB7)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
163 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
164 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
165 #define __HAL_AFIO_REMAP_I2C1_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_I2C1_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
166
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
167 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
168 * @brief Enable the remapping of USART1 alternate function TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
169 * @note ENABLE: Remap (TX/PB6, RX/PB7)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
170 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
171 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
172 #define __HAL_AFIO_REMAP_USART1_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_USART1_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
173
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
174 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
175 * @brief Disable the remapping of USART1 alternate function TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
176 * @note DISABLE: No remap (TX/PA9, RX/PA10)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
177 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
178 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
179 #define __HAL_AFIO_REMAP_USART1_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_USART1_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
180
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
181 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
182 * @brief Enable the remapping of USART2 alternate function CTS, RTS, CK, TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
183 * @note ENABLE: Remap (CTS/PD3, RTS/PD4, TX/PD5, RX/PD6, CK/PD7)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
184 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
185 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
186 #define __HAL_AFIO_REMAP_USART2_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_USART2_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
187
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
188 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
189 * @brief Disable the remapping of USART2 alternate function CTS, RTS, CK, TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
190 * @note DISABLE: No remap (CTS/PA0, RTS/PA1, TX/PA2, RX/PA3, CK/PA4)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
191 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
192 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
193 #define __HAL_AFIO_REMAP_USART2_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_USART2_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
194
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
195 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
196 * @brief Enable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
197 * @note ENABLE: Full remap (TX/PD8, RX/PD9, CK/PD10, CTS/PD11, RTS/PD12)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
198 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
199 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
200 #define __HAL_AFIO_REMAP_USART3_ENABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_USART3_REMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
201
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
202 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
203 * @brief Enable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
204 * @note PARTIAL: Partial remap (TX/PC10, RX/PC11, CK/PC12, CTS/PB13, RTS/PB14)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
205 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
206 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
207 #define __HAL_AFIO_REMAP_USART3_PARTIAL() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_USART3_REMAP, AFIO_MAPR_USART3_REMAP_PARTIALREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
208
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
209 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
210 * @brief Disable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
211 * @note DISABLE: No remap (TX/PB10, RX/PB11, CK/PB12, CTS/PB13, RTS/PB14)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
212 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
213 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
214 #define __HAL_AFIO_REMAP_USART3_DISABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_USART3_REMAP, AFIO_MAPR_USART3_REMAP_NOREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
215
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
216 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
217 * @brief Enable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
218 * @note ENABLE: Full remap (ETR/PE7, CH1/PE9, CH2/PE11, CH3/PE13, CH4/PE14, BKIN/PE15, CH1N/PE8, CH2N/PE10, CH3N/PE12)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
219 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
220 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
221 #define __HAL_AFIO_REMAP_TIM1_ENABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM1_REMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
222
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
223 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
224 * @brief Enable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
225 * @note PARTIAL: Partial remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PA6, CH1N/PA7, CH2N/PB0, CH3N/PB1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
226 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
227 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
228 #define __HAL_AFIO_REMAP_TIM1_PARTIAL() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM1_REMAP, AFIO_MAPR_TIM1_REMAP_PARTIALREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
229
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
230 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
231 * @brief Disable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
232 * @note DISABLE: No remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PB12, CH1N/PB13, CH2N/PB14, CH3N/PB15)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
233 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
234 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
235 #define __HAL_AFIO_REMAP_TIM1_DISABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM1_REMAP, AFIO_MAPR_TIM1_REMAP_NOREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
236
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
237 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
238 * @brief Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
239 * @note ENABLE: Full remap (CH1/ETR/PA15, CH2/PB3, CH3/PB10, CH4/PB11)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
240 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
241 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
242 #define __HAL_AFIO_REMAP_TIM2_ENABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
243
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
244 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
245 * @brief Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
246 * @note PARTIAL_2: Partial remap (CH1/ETR/PA0, CH2/PA1, CH3/PB10, CH4/PB11)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
247 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
248 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
249 #define __HAL_AFIO_REMAP_TIM2_PARTIAL_2() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP, AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
250
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
251 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
252 * @brief Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
253 * @note PARTIAL_1: Partial remap (CH1/ETR/PA15, CH2/PB3, CH3/PA2, CH4/PA3)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
254 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
255 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
256 #define __HAL_AFIO_REMAP_TIM2_PARTIAL_1() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP, AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
257
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
258 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
259 * @brief Disable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
260 * @note DISABLE: No remap (CH1/ETR/PA0, CH2/PA1, CH3/PA2, CH4/PA3)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
261 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
262 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
263 #define __HAL_AFIO_REMAP_TIM2_DISABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP, AFIO_MAPR_TIM2_REMAP_NOREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
264
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
265 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
266 * @brief Enable the remapping of TIM3 alternate function channels 1 to 4
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
267 * @note ENABLE: Full remap (CH1/PC6, CH2/PC7, CH3/PC8, CH4/PC9)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
268 * @note TIM3_ETR on PE0 is not re-mapped.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
269 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
270 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
271 #define __HAL_AFIO_REMAP_TIM3_ENABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM3_REMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
272
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
273 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
274 * @brief Enable the remapping of TIM3 alternate function channels 1 to 4
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
275 * @note PARTIAL: Partial remap (CH1/PB4, CH2/PB5, CH3/PB0, CH4/PB1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
276 * @note TIM3_ETR on PE0 is not re-mapped.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
277 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
278 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
279 #define __HAL_AFIO_REMAP_TIM3_PARTIAL() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM3_REMAP, AFIO_MAPR_TIM3_REMAP_PARTIALREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
280
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
281 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
282 * @brief Disable the remapping of TIM3 alternate function channels 1 to 4
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
283 * @note DISABLE: No remap (CH1/PA6, CH2/PA7, CH3/PB0, CH4/PB1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
284 * @note TIM3_ETR on PE0 is not re-mapped.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
285 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
286 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
287 #define __HAL_AFIO_REMAP_TIM3_DISABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_TIM3_REMAP, AFIO_MAPR_TIM3_REMAP_NOREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
288
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
289 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
290 * @brief Enable the remapping of TIM4 alternate function channels 1 to 4.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
291 * @note ENABLE: Full remap (TIM4_CH1/PD12, TIM4_CH2/PD13, TIM4_CH3/PD14, TIM4_CH4/PD15)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
292 * @note TIM4_ETR on PE0 is not re-mapped.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
293 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
294 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
295 #define __HAL_AFIO_REMAP_TIM4_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_TIM4_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
296
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
297 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
298 * @brief Disable the remapping of TIM4 alternate function channels 1 to 4.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
299 * @note DISABLE: No remap (TIM4_CH1/PB6, TIM4_CH2/PB7, TIM4_CH3/PB8, TIM4_CH4/PB9)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
300 * @note TIM4_ETR on PE0 is not re-mapped.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
301 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
302 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
303 #define __HAL_AFIO_REMAP_TIM4_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_TIM4_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
304
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
305 #if defined(AFIO_MAPR_CAN_REMAP_REMAP1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
306
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
307 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
308 * @brief Enable or disable the remapping of CAN alternate function CAN_RX and CAN_TX in devices with a single CAN interface.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
309 * @note CASE 1: CAN_RX mapped to PA11, CAN_TX mapped to PA12
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
310 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
311 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
312 #define __HAL_AFIO_REMAP_CAN1_1() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_CAN_REMAP, AFIO_MAPR_CAN_REMAP_REMAP1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
313
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
314 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
315 * @brief Enable or disable the remapping of CAN alternate function CAN_RX and CAN_TX in devices with a single CAN interface.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
316 * @note CASE 2: CAN_RX mapped to PB8, CAN_TX mapped to PB9 (not available on 36-pin package)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
317 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
318 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
319 #define __HAL_AFIO_REMAP_CAN1_2() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_CAN_REMAP, AFIO_MAPR_CAN_REMAP_REMAP2)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
320
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
321 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
322 * @brief Enable or disable the remapping of CAN alternate function CAN_RX and CAN_TX in devices with a single CAN interface.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
323 * @note CASE 3: CAN_RX mapped to PD0, CAN_TX mapped to PD1
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
324 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
325 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
326 #define __HAL_AFIO_REMAP_CAN1_3() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_CAN_REMAP, AFIO_MAPR_CAN_REMAP_REMAP3)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
327 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
328
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
329 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
330 * @brief Enable the remapping of PD0 and PD1. When the HSE oscillator is not used
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
331 * (application running on internal 8 MHz RC) PD0 and PD1 can be mapped on OSC_IN and
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
332 * OSC_OUT. This is available only on 36, 48 and 64 pins packages (PD0 and PD1 are available
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
333 * on 100-pin and 144-pin packages, no need for remapping).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
334 * @note ENABLE: PD0 remapped on OSC_IN, PD1 remapped on OSC_OUT.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
335 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
336 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
337 #define __HAL_AFIO_REMAP_PD01_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_PD01_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
338
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
339 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
340 * @brief Disable the remapping of PD0 and PD1. When the HSE oscillator is not used
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
341 * (application running on internal 8 MHz RC) PD0 and PD1 can be mapped on OSC_IN and
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
342 * OSC_OUT. This is available only on 36, 48 and 64 pins packages (PD0 and PD1 are available
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
343 * on 100-pin and 144-pin packages, no need for remapping).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
344 * @note DISABLE: No remapping of PD0 and PD1
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
345 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
346 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
347 #define __HAL_AFIO_REMAP_PD01_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_PD01_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
348
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
349 #if defined(AFIO_MAPR_TIM5CH4_IREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
350 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
351 * @brief Enable the remapping of TIM5CH4.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
352 * @note ENABLE: LSI internal clock is connected to TIM5_CH4 input for calibration purpose.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
353 * @note This function is available only in high density value line devices.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
354 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
355 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
356 #define __HAL_AFIO_REMAP_TIM5CH4_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_TIM5CH4_IREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
357
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
358 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
359 * @brief Disable the remapping of TIM5CH4.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
360 * @note DISABLE: TIM5_CH4 is connected to PA3
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
361 * @note This function is available only in high density value line devices.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
362 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
363 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
364 #define __HAL_AFIO_REMAP_TIM5CH4_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_TIM5CH4_IREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
365 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
366
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
367 #if defined(AFIO_MAPR_ETH_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
368 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
369 * @brief Enable the remapping of Ethernet MAC connections with the PHY.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
370 * @note ENABLE: Remap (RX_DV-CRS_DV/PD8, RXD0/PD9, RXD1/PD10, RXD2/PD11, RXD3/PD12)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
371 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
372 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
373 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
374 #define __HAL_AFIO_REMAP_ETH_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_ETH_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
375
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
376 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
377 * @brief Disable the remapping of Ethernet MAC connections with the PHY.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
378 * @note DISABLE: No remap (RX_DV-CRS_DV/PA7, RXD0/PC4, RXD1/PC5, RXD2/PB0, RXD3/PB1)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
379 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
380 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
381 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
382 #define __HAL_AFIO_REMAP_ETH_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_ETH_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
383 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
384
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
385 #if defined(AFIO_MAPR_CAN2_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
386
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
387 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
388 * @brief Enable the remapping of CAN2 alternate function CAN2_RX and CAN2_TX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
389 * @note ENABLE: Remap (CAN2_RX/PB5, CAN2_TX/PB6)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
390 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
391 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
392 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
393 #define __HAL_AFIO_REMAP_CAN2_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_CAN2_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
394
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
395 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
396 * @brief Disable the remapping of CAN2 alternate function CAN2_RX and CAN2_TX.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
397 * @note DISABLE: No remap (CAN2_RX/PB12, CAN2_TX/PB13)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
398 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
399 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
400 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
401 #define __HAL_AFIO_REMAP_CAN2_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_CAN2_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
402 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
403
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
404 #if defined(AFIO_MAPR_MII_RMII_SEL)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
405 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
406 * @brief Configures the Ethernet MAC internally for use with an external MII or RMII PHY.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
407 * @note ETH_RMII: Configure Ethernet MAC for connection with an RMII PHY
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
408 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
409 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
410 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
411 #define __HAL_AFIO_ETH_RMII() SET_BIT(AFIO->MAPR, AFIO_MAPR_MII_RMII_SEL)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
412
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
413 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
414 * @brief Configures the Ethernet MAC internally for use with an external MII or RMII PHY.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
415 * @note ETH_MII: Configure Ethernet MAC for connection with an MII PHY
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
416 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
417 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
418 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
419 #define __HAL_AFIO_ETH_MII() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_MII_RMII_SEL)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
420 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
421
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
422 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
423 * @brief Enable the remapping of ADC1_ETRGINJ (ADC 1 External trigger injected conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
424 * @note ENABLE: ADC1 External Event injected conversion is connected to TIM8 Channel4.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
425 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
426 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
427 #define __HAL_AFIO_REMAP_ADC1_ETRGINJ_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_ADC1_ETRGINJ_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
428
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
429 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
430 * @brief Disable the remapping of ADC1_ETRGINJ (ADC 1 External trigger injected conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
431 * @note DISABLE: ADC1 External trigger injected conversion is connected to EXTI15
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
432 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
433 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
434 #define __HAL_AFIO_REMAP_ADC1_ETRGINJ_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_ADC1_ETRGINJ_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
435
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
436 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
437 * @brief Enable the remapping of ADC1_ETRGREG (ADC 1 External trigger regular conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
438 * @note ENABLE: ADC1 External Event regular conversion is connected to TIM8 TRG0.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
439 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
440 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
441 #define __HAL_AFIO_REMAP_ADC1_ETRGREG_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_ADC1_ETRGREG_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
442
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
443 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
444 * @brief Disable the remapping of ADC1_ETRGREG (ADC 1 External trigger regular conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
445 * @note DISABLE: ADC1 External trigger regular conversion is connected to EXTI11
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
446 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
447 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
448 #define __HAL_AFIO_REMAP_ADC1_ETRGREG_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_ADC1_ETRGREG_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
449
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
450 #if defined(AFIO_MAPR_ADC2_ETRGINJ_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
451
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
452 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
453 * @brief Enable the remapping of ADC2_ETRGREG (ADC 2 External trigger injected conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
454 * @note ENABLE: ADC2 External Event injected conversion is connected to TIM8 Channel4.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
455 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
456 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
457 #define __HAL_AFIO_REMAP_ADC2_ETRGINJ_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_ADC2_ETRGINJ_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
458
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
459 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
460 * @brief Disable the remapping of ADC2_ETRGREG (ADC 2 External trigger injected conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
461 * @note DISABLE: ADC2 External trigger injected conversion is connected to EXTI15
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
462 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
463 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
464 #define __HAL_AFIO_REMAP_ADC2_ETRGINJ_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_ADC2_ETRGINJ_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
465 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
466
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
467 #if defined (AFIO_MAPR_ADC2_ETRGREG_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
468
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
469 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
470 * @brief Enable the remapping of ADC2_ETRGREG (ADC 2 External trigger regular conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
471 * @note ENABLE: ADC2 External Event regular conversion is connected to TIM8 TRG0.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
472 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
473 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
474 #define __HAL_AFIO_REMAP_ADC2_ETRGREG_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_ADC2_ETRGREG_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
475
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
476 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
477 * @brief Disable the remapping of ADC2_ETRGREG (ADC 2 External trigger regular conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
478 * @note DISABLE: ADC2 External trigger regular conversion is connected to EXTI11
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
479 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
480 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
481 #define __HAL_AFIO_REMAP_ADC2_ETRGREG_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_ADC2_ETRGREG_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
482 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
483
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
484 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
485 * @brief Enable the Serial wire JTAG configuration
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
486 * @note ENABLE: Full SWJ (JTAG-DP + SW-DP): Reset State
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
487 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
488 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
489 #define __HAL_AFIO_REMAP_SWJ_ENABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_SWJ_CFG, AFIO_MAPR_SWJ_CFG_RESET)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
490
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
491 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
492 * @brief Enable the Serial wire JTAG configuration
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
493 * @note NONJTRST: Full SWJ (JTAG-DP + SW-DP) but without NJTRST
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
494 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
495 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
496 #define __HAL_AFIO_REMAP_SWJ_NONJTRST() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_SWJ_CFG, AFIO_MAPR_SWJ_CFG_NOJNTRST)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
497
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
498 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
499 * @brief Enable the Serial wire JTAG configuration
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
500 * @note NOJTAG: JTAG-DP Disabled and SW-DP Enabled
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
501 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
502 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
503 #define __HAL_AFIO_REMAP_SWJ_NOJTAG() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_SWJ_CFG, AFIO_MAPR_SWJ_CFG_JTAGDISABLE)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
504
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
505 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
506 * @brief Disable the Serial wire JTAG configuration
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
507 * @note DISABLE: JTAG-DP Disabled and SW-DP Disabled
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
508 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
509 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
510 #define __HAL_AFIO_REMAP_SWJ_DISABLE() MODIFY_REG(AFIO->MAPR, AFIO_MAPR_SWJ_CFG, AFIO_MAPR_SWJ_CFG_DISABLE)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
511
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
512 #if defined(AFIO_MAPR_SPI3_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
513
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
514 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
515 * @brief Enable the remapping of SPI3 alternate functions SPI3_NSS/I2S3_WS, SPI3_SCK/I2S3_CK, SPI3_MISO, SPI3_MOSI/I2S3_SD.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
516 * @note ENABLE: Remap (SPI3_NSS-I2S3_WS/PA4, SPI3_SCK-I2S3_CK/PC10, SPI3_MISO/PC11, SPI3_MOSI-I2S3_SD/PC12)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
517 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
518 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
519 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
520 #define __HAL_AFIO_REMAP_SPI3_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_SPI3_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
521
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
522 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
523 * @brief Disable the remapping of SPI3 alternate functions SPI3_NSS/I2S3_WS, SPI3_SCK/I2S3_CK, SPI3_MISO, SPI3_MOSI/I2S3_SD.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
524 * @note DISABLE: No remap (SPI3_NSS-I2S3_WS/PA15, SPI3_SCK-I2S3_CK/PB3, SPI3_MISO/PB4, SPI3_MOSI-I2S3_SD/PB5).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
525 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
526 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
527 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
528 #define __HAL_AFIO_REMAP_SPI3_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_SPI3_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
529 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
530
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
531 #if defined(AFIO_MAPR_TIM2ITR1_IREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
532
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
533 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
534 * @brief Control of TIM2_ITR1 internal mapping.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
535 * @note TO_USB: Connect USB OTG SOF (Start of Frame) output to TIM2_ITR1 for calibration purposes.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
536 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
537 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
538 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
539 #define __HAL_AFIO_TIM2ITR1_TO_USB() SET_BIT(AFIO->MAPR, AFIO_MAPR_TIM2ITR1_IREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
540
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
541 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
542 * @brief Control of TIM2_ITR1 internal mapping.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
543 * @note TO_ETH: Connect TIM2_ITR1 internally to the Ethernet PTP output for calibration purposes.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
544 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
545 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
546 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
547 #define __HAL_AFIO_TIM2ITR1_TO_ETH() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_TIM2ITR1_IREMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
548 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
549
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
550 #if defined(AFIO_MAPR_PTP_PPS_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
551
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
552 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
553 * @brief Enable the remapping of ADC2_ETRGREG (ADC 2 External trigger regular conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
554 * @note ENABLE: PTP_PPS is output on PB5 pin.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
555 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
556 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
557 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
558 #define __HAL_AFIO_ETH_PTP_PPS_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_PTP_PPS_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
559
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
560 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
561 * @brief Disable the remapping of ADC2_ETRGREG (ADC 2 External trigger regular conversion).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
562 * @note DISABLE: PTP_PPS not output on PB5 pin.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
563 * @note This bit is available only in connectivity line devices and is reserved otherwise.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
564 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
565 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
566 #define __HAL_AFIO_ETH_PTP_PPS_DISABLE() CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_PTP_PPS_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
567 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
568
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
569 #if defined(AFIO_MAPR2_TIM9_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
570
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
571 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
572 * @brief Enable the remapping of TIM9_CH1 and TIM9_CH2.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
573 * @note ENABLE: Remap (TIM9_CH1 on PE5 and TIM9_CH2 on PE6).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
574 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
575 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
576 #define __HAL_AFIO_REMAP_TIM9_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM9_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
577
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
578 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
579 * @brief Disable the remapping of TIM9_CH1 and TIM9_CH2.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
580 * @note DISABLE: No remap (TIM9_CH1 on PA2 and TIM9_CH2 on PA3).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
581 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
582 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
583 #define __HAL_AFIO_REMAP_TIM9_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM9_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
584 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
585
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
586 #if defined(AFIO_MAPR2_TIM10_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
587
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
588 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
589 * @brief Enable the remapping of TIM10_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
590 * @note ENABLE: Remap (TIM10_CH1 on PF6).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
591 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
592 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
593 #define __HAL_AFIO_REMAP_TIM10_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM10_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
594
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
595 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
596 * @brief Disable the remapping of TIM10_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
597 * @note DISABLE: No remap (TIM10_CH1 on PB8).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
598 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
599 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
600 #define __HAL_AFIO_REMAP_TIM10_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM10_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
601 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
602
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
603 #if defined(AFIO_MAPR2_TIM11_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
604 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
605 * @brief Enable the remapping of TIM11_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
606 * @note ENABLE: Remap (TIM11_CH1 on PF7).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
607 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
608 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
609 #define __HAL_AFIO_REMAP_TIM11_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM11_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
610
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
611 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
612 * @brief Disable the remapping of TIM11_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
613 * @note DISABLE: No remap (TIM11_CH1 on PB9).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
614 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
615 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
616 #define __HAL_AFIO_REMAP_TIM11_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM11_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
617 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
618
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
619 #if defined(AFIO_MAPR2_TIM13_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
620
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
621 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
622 * @brief Enable the remapping of TIM13_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
623 * @note ENABLE: Remap STM32F100:(TIM13_CH1 on PF8). Others:(TIM13_CH1 on PB0).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
624 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
625 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
626 #define __HAL_AFIO_REMAP_TIM13_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM13_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
627
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
628 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
629 * @brief Disable the remapping of TIM13_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
630 * @note DISABLE: No remap STM32F100:(TIM13_CH1 on PA6). Others:(TIM13_CH1 on PC8).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
631 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
632 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
633 #define __HAL_AFIO_REMAP_TIM13_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM13_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
634 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
635
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
636 #if defined(AFIO_MAPR2_TIM14_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
637
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
638 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
639 * @brief Enable the remapping of TIM14_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
640 * @note ENABLE: Remap STM32F100:(TIM14_CH1 on PB1). Others:(TIM14_CH1 on PF9).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
641 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
642 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
643 #define __HAL_AFIO_REMAP_TIM14_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM14_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
644
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
645 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
646 * @brief Disable the remapping of TIM14_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
647 * @note DISABLE: No remap STM32F100:(TIM14_CH1 on PC9). Others:(TIM14_CH1 on PA7).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
648 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
649 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
650 #define __HAL_AFIO_REMAP_TIM14_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM14_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
651 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
652
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
653 #if defined(AFIO_MAPR2_FSMC_NADV_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
654
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
655 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
656 * @brief Controls the use of the optional FSMC_NADV signal.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
657 * @note DISCONNECTED: The NADV signal is not connected. The I/O pin can be used by another peripheral.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
658 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
659 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
660 #define __HAL_AFIO_FSMCNADV_DISCONNECTED() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_FSMC_NADV_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
661
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
662 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
663 * @brief Controls the use of the optional FSMC_NADV signal.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
664 * @note CONNECTED: The NADV signal is connected to the output (default).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
665 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
666 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
667 #define __HAL_AFIO_FSMCNADV_CONNECTED() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_FSMC_NADV_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
668 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
669
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
670 #if defined(AFIO_MAPR2_TIM15_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
671
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
672 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
673 * @brief Enable the remapping of TIM15_CH1 and TIM15_CH2.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
674 * @note ENABLE: Remap (TIM15_CH1 on PB14 and TIM15_CH2 on PB15).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
675 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
676 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
677 #define __HAL_AFIO_REMAP_TIM15_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM15_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
678
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
679 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
680 * @brief Disable the remapping of TIM15_CH1 and TIM15_CH2.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
681 * @note DISABLE: No remap (TIM15_CH1 on PA2 and TIM15_CH2 on PA3).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
682 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
683 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
684 #define __HAL_AFIO_REMAP_TIM15_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM15_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
685 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
686
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
687 #if defined(AFIO_MAPR2_TIM16_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
688
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
689 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
690 * @brief Enable the remapping of TIM16_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
691 * @note ENABLE: Remap (TIM16_CH1 on PA6).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
692 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
693 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
694 #define __HAL_AFIO_REMAP_TIM16_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM16_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
695
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
696 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
697 * @brief Disable the remapping of TIM16_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
698 * @note DISABLE: No remap (TIM16_CH1 on PB8).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
699 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
700 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
701 #define __HAL_AFIO_REMAP_TIM16_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM16_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
702 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
703
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
704 #if defined(AFIO_MAPR2_TIM17_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
705
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
706 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
707 * @brief Enable the remapping of TIM17_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
708 * @note ENABLE: Remap (TIM17_CH1 on PA7).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
709 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
710 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
711 #define __HAL_AFIO_REMAP_TIM17_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM17_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
712
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
713 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
714 * @brief Disable the remapping of TIM17_CH1.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
715 * @note DISABLE: No remap (TIM17_CH1 on PB9).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
716 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
717 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
718 #define __HAL_AFIO_REMAP_TIM17_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM17_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
719 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
720
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
721 #if defined(AFIO_MAPR2_CEC_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
722
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
723 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
724 * @brief Enable the remapping of CEC.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
725 * @note ENABLE: Remap (CEC on PB10).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
726 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
727 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
728 #define __HAL_AFIO_REMAP_CEC_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_CEC_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
729
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
730 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
731 * @brief Disable the remapping of CEC.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
732 * @note DISABLE: No remap (CEC on PB8).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
733 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
734 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
735 #define __HAL_AFIO_REMAP_CEC_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_CEC_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
736 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
737
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
738 #if defined(AFIO_MAPR2_TIM1_DMA_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
739
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
740 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
741 * @brief Controls the mapping of the TIM1_CH1 TIM1_CH2 DMA requests onto the DMA1 channels.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
742 * @note ENABLE: Remap (TIM1_CH1 DMA request/DMA1 Channel6, TIM1_CH2 DMA request/DMA1 Channel6)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
743 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
744 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
745 #define __HAL_AFIO_REMAP_TIM1DMA_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM1_DMA_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
746
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
747 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
748 * @brief Controls the mapping of the TIM1_CH1 TIM1_CH2 DMA requests onto the DMA1 channels.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
749 * @note DISABLE: No remap (TIM1_CH1 DMA request/DMA1 Channel2, TIM1_CH2 DMA request/DMA1 Channel3).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
750 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
751 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
752 #define __HAL_AFIO_REMAP_TIM1DMA_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM1_DMA_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
753 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
754
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
755 #if defined(AFIO_MAPR2_TIM67_DAC_DMA_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
756
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
757 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
758 * @brief Controls the mapping of the TIM6_DAC1 and TIM7_DAC2 DMA requests onto the DMA1 channels.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
759 * @note ENABLE: Remap (TIM6_DAC1 DMA request/DMA1 Channel3, TIM7_DAC2 DMA request/DMA1 Channel4)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
760 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
761 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
762 #define __HAL_AFIO_REMAP_TIM67DACDMA_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM67_DAC_DMA_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
763
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
764 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
765 * @brief Controls the mapping of the TIM6_DAC1 and TIM7_DAC2 DMA requests onto the DMA1 channels.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
766 * @note DISABLE: No remap (TIM6_DAC1 DMA request/DMA2 Channel3, TIM7_DAC2 DMA request/DMA2 Channel4)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
767 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
768 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
769 #define __HAL_AFIO_REMAP_TIM67DACDMA_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM67_DAC_DMA_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
770 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
771
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
772 #if defined(AFIO_MAPR2_TIM12_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
773
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
774 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
775 * @brief Enable the remapping of TIM12_CH1 and TIM12_CH2.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
776 * @note ENABLE: Remap (TIM12_CH1 on PB12 and TIM12_CH2 on PB13).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
777 * @note This bit is available only in high density value line devices.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
778 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
779 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
780 #define __HAL_AFIO_REMAP_TIM12_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM12_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
781
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
782 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
783 * @brief Disable the remapping of TIM12_CH1 and TIM12_CH2.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
784 * @note DISABLE: No remap (TIM12_CH1 on PC4 and TIM12_CH2 on PC5).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
785 * @note This bit is available only in high density value line devices.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
786 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
787 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
788 #define __HAL_AFIO_REMAP_TIM12_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM12_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
789 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
790
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
791 #if defined(AFIO_MAPR2_MISC_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
792
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
793 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
794 * @brief Miscellaneous features remapping.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
795 * This bit is set and cleared by software. It controls miscellaneous features.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
796 * The DMA2 channel 5 interrupt position in the vector table.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
797 * The timer selection for DAC trigger 3 (TSEL[2:0] = 011, for more details refer to the DAC_CR register).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
798 * @note ENABLE: DMA2 channel 5 interrupt is mapped separately at position 60 and TIM15 TRGO event is
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
799 * selected as DAC Trigger 3, TIM15 triggers TIM1/3.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
800 * @note This bit is available only in high density value line devices.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
801 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
802 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
803 #define __HAL_AFIO_REMAP_MISC_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_MISC_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
804
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
805 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
806 * @brief Miscellaneous features remapping.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
807 * This bit is set and cleared by software. It controls miscellaneous features.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
808 * The DMA2 channel 5 interrupt position in the vector table.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
809 * The timer selection for DAC trigger 3 (TSEL[2:0] = 011, for more details refer to the DAC_CR register).
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
810 * @note DISABLE: DMA2 channel 5 interrupt is mapped with DMA2 channel 4 at position 59, TIM5 TRGO
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
811 * event is selected as DAC Trigger 3, TIM5 triggers TIM1/3.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
812 * @note This bit is available only in high density value line devices.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
813 * @retval None
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
814 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
815 #define __HAL_AFIO_REMAP_MISC_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_MISC_REMAP)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
816 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
817
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
818 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
819 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
820 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
821
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
822 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
823 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
824 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
825
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
826 /** @defgroup GPIOEx_Private_Macros GPIOEx Private Macros
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
827 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
828 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
829 #if defined(STM32F101x6) || defined(STM32F102x6) || defined(STM32F102xB) || defined(STM32F103x6)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
830 #define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
831 ((__GPIOx__) == (GPIOB))? 1U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
832 ((__GPIOx__) == (GPIOC))? 2U :3U)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
833 #elif defined(STM32F100xB) || defined(STM32F101xB) || defined(STM32F103xB) || defined(STM32F105xC) || defined(STM32F107xC)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
834 #define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
835 ((__GPIOx__) == (GPIOB))? 1U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
836 ((__GPIOx__) == (GPIOC))? 2U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
837 ((__GPIOx__) == (GPIOD))? 3U :4U)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
838 #elif defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
839 #define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
840 ((__GPIOx__) == (GPIOB))? 1U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
841 ((__GPIOx__) == (GPIOC))? 2U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
842 ((__GPIOx__) == (GPIOD))? 3U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
843 ((__GPIOx__) == (GPIOE))? 4U :\
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
844 ((__GPIOx__) == (GPIOF))? 5U :6U)
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
845 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
846
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
847 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
848 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
849 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
850
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
851 /* Exported macro ------------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
852 /* Exported functions --------------------------------------------------------*/
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
853
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
854 /** @addtogroup GPIOEx_Exported_Functions
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
855 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
856 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
857
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
858 /** @addtogroup GPIOEx_Exported_Functions_Group1
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
859 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
860 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
861 void HAL_GPIOEx_ConfigEventout(uint32_t GPIO_PortSource, uint32_t GPIO_PinSource);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
862 void HAL_GPIOEx_EnableEventout(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
863 void HAL_GPIOEx_DisableEventout(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
864
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
865 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
866 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
867 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
868
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
869 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
870 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
871 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
872
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
873 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
874 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
875 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
876
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
877 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
878 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
879 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
880
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
881 #ifdef __cplusplus
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
882 }
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
883 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
884
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
885 #endif /* __STM32F1xx_HAL_GPIO_EX_H */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
886
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
887 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/