mikroSDK Reference Manual
stm32f1xx_hal_gpio_ex.h
Go to the documentation of this file.
1
20/* Define to prevent recursive inclusion -------------------------------------*/
21#ifndef STM32F1xx_HAL_GPIO_EX_H
22#define STM32F1xx_HAL_GPIO_EX_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/* Includes ------------------------------------------------------------------*/
29#include "stm32f1xx_hal_def.h"
30
38/* Exported types ------------------------------------------------------------*/
39/* Exported constants --------------------------------------------------------*/
40
54#define AFIO_EVENTOUT_PIN_0 AFIO_EVCR_PIN_PX0
55#define AFIO_EVENTOUT_PIN_1 AFIO_EVCR_PIN_PX1
56#define AFIO_EVENTOUT_PIN_2 AFIO_EVCR_PIN_PX2
57#define AFIO_EVENTOUT_PIN_3 AFIO_EVCR_PIN_PX3
58#define AFIO_EVENTOUT_PIN_4 AFIO_EVCR_PIN_PX4
59#define AFIO_EVENTOUT_PIN_5 AFIO_EVCR_PIN_PX5
60#define AFIO_EVENTOUT_PIN_6 AFIO_EVCR_PIN_PX6
61#define AFIO_EVENTOUT_PIN_7 AFIO_EVCR_PIN_PX7
62#define AFIO_EVENTOUT_PIN_8 AFIO_EVCR_PIN_PX8
63#define AFIO_EVENTOUT_PIN_9 AFIO_EVCR_PIN_PX9
64#define AFIO_EVENTOUT_PIN_10 AFIO_EVCR_PIN_PX10
65#define AFIO_EVENTOUT_PIN_11 AFIO_EVCR_PIN_PX11
66#define AFIO_EVENTOUT_PIN_12 AFIO_EVCR_PIN_PX12
67#define AFIO_EVENTOUT_PIN_13 AFIO_EVCR_PIN_PX13
68#define AFIO_EVENTOUT_PIN_14 AFIO_EVCR_PIN_PX14
69#define AFIO_EVENTOUT_PIN_15 AFIO_EVCR_PIN_PX15
71#define IS_AFIO_EVENTOUT_PIN(__PIN__) (((__PIN__) == AFIO_EVENTOUT_PIN_0) || \
72 ((__PIN__) == AFIO_EVENTOUT_PIN_1) || \
73 ((__PIN__) == AFIO_EVENTOUT_PIN_2) || \
74 ((__PIN__) == AFIO_EVENTOUT_PIN_3) || \
75 ((__PIN__) == AFIO_EVENTOUT_PIN_4) || \
76 ((__PIN__) == AFIO_EVENTOUT_PIN_5) || \
77 ((__PIN__) == AFIO_EVENTOUT_PIN_6) || \
78 ((__PIN__) == AFIO_EVENTOUT_PIN_7) || \
79 ((__PIN__) == AFIO_EVENTOUT_PIN_8) || \
80 ((__PIN__) == AFIO_EVENTOUT_PIN_9) || \
81 ((__PIN__) == AFIO_EVENTOUT_PIN_10) || \
82 ((__PIN__) == AFIO_EVENTOUT_PIN_11) || \
83 ((__PIN__) == AFIO_EVENTOUT_PIN_12) || \
84 ((__PIN__) == AFIO_EVENTOUT_PIN_13) || \
85 ((__PIN__) == AFIO_EVENTOUT_PIN_14) || \
86 ((__PIN__) == AFIO_EVENTOUT_PIN_15))
95#define AFIO_EVENTOUT_PORT_A AFIO_EVCR_PORT_PA
96#define AFIO_EVENTOUT_PORT_B AFIO_EVCR_PORT_PB
97#define AFIO_EVENTOUT_PORT_C AFIO_EVCR_PORT_PC
98#define AFIO_EVENTOUT_PORT_D AFIO_EVCR_PORT_PD
99#define AFIO_EVENTOUT_PORT_E AFIO_EVCR_PORT_PE
101#define IS_AFIO_EVENTOUT_PORT(__PORT__) (((__PORT__) == AFIO_EVENTOUT_PORT_A) || \
102 ((__PORT__) == AFIO_EVENTOUT_PORT_B) || \
103 ((__PORT__) == AFIO_EVENTOUT_PORT_C) || \
104 ((__PORT__) == AFIO_EVENTOUT_PORT_D) || \
105 ((__PORT__) == AFIO_EVENTOUT_PORT_E))
124#define __HAL_AFIO_REMAP_SPI1_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_SPI1_REMAP)
125
131#define __HAL_AFIO_REMAP_SPI1_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_SPI1_REMAP)
132
138#define __HAL_AFIO_REMAP_I2C1_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_I2C1_REMAP)
139
145#define __HAL_AFIO_REMAP_I2C1_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_I2C1_REMAP)
146
152#define __HAL_AFIO_REMAP_USART1_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_USART1_REMAP)
153
159#define __HAL_AFIO_REMAP_USART1_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_USART1_REMAP)
160
166#define __HAL_AFIO_REMAP_USART2_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_USART2_REMAP)
167
173#define __HAL_AFIO_REMAP_USART2_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_USART2_REMAP)
174
180#define __HAL_AFIO_REMAP_USART3_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_FULLREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP)
181
187#define __HAL_AFIO_REMAP_USART3_PARTIAL() AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_PARTIALREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP)
188
194#define __HAL_AFIO_REMAP_USART3_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_NOREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP)
195
201#define __HAL_AFIO_REMAP_TIM1_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_FULLREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP)
202
208#define __HAL_AFIO_REMAP_TIM1_PARTIAL() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_PARTIALREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP)
209
215#define __HAL_AFIO_REMAP_TIM1_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_NOREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP)
216
222#define __HAL_AFIO_REMAP_TIM2_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_FULLREMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP)
223
229#define __HAL_AFIO_REMAP_TIM2_PARTIAL_2() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2, AFIO_MAPR_TIM2_REMAP_FULLREMAP)
230
236#define __HAL_AFIO_REMAP_TIM2_PARTIAL_1() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1, AFIO_MAPR_TIM2_REMAP_FULLREMAP)
237
243#define __HAL_AFIO_REMAP_TIM2_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_NOREMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP)
244
251#define __HAL_AFIO_REMAP_TIM3_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_FULLREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP)
252
259#define __HAL_AFIO_REMAP_TIM3_PARTIAL() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_PARTIALREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP)
260
267#define __HAL_AFIO_REMAP_TIM3_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_NOREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP)
268
275#define __HAL_AFIO_REMAP_TIM4_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_TIM4_REMAP)
276
283#define __HAL_AFIO_REMAP_TIM4_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_TIM4_REMAP)
284
285#if defined(AFIO_MAPR_CAN_REMAP_REMAP1)
286
292#define __HAL_AFIO_REMAP_CAN1_1() AFIO_REMAP_PARTIAL(AFIO_MAPR_CAN_REMAP_REMAP1, AFIO_MAPR_CAN_REMAP)
293
299#define __HAL_AFIO_REMAP_CAN1_2() AFIO_REMAP_PARTIAL(AFIO_MAPR_CAN_REMAP_REMAP2, AFIO_MAPR_CAN_REMAP)
300
306#define __HAL_AFIO_REMAP_CAN1_3() AFIO_REMAP_PARTIAL(AFIO_MAPR_CAN_REMAP_REMAP3, AFIO_MAPR_CAN_REMAP)
307
308#endif
309
318#define __HAL_AFIO_REMAP_PD01_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_PD01_REMAP)
319
328#define __HAL_AFIO_REMAP_PD01_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_PD01_REMAP)
329
330#if defined(AFIO_MAPR_TIM5CH4_IREMAP)
337#define __HAL_AFIO_REMAP_TIM5CH4_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_TIM5CH4_IREMAP)
338
345#define __HAL_AFIO_REMAP_TIM5CH4_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_TIM5CH4_IREMAP)
346#endif
347
348#if defined(AFIO_MAPR_ETH_REMAP)
355#define __HAL_AFIO_REMAP_ETH_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ETH_REMAP)
356
363#define __HAL_AFIO_REMAP_ETH_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ETH_REMAP)
364#endif
365
366#if defined(AFIO_MAPR_CAN2_REMAP)
367
374#define __HAL_AFIO_REMAP_CAN2_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_CAN2_REMAP)
375
382#define __HAL_AFIO_REMAP_CAN2_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_CAN2_REMAP)
383#endif
384
385#if defined(AFIO_MAPR_MII_RMII_SEL)
392#define __HAL_AFIO_ETH_RMII() AFIO_REMAP_ENABLE(AFIO_MAPR_MII_RMII_SEL)
393
400#define __HAL_AFIO_ETH_MII() AFIO_REMAP_DISABLE(AFIO_MAPR_MII_RMII_SEL)
401#endif
402
408#define __HAL_AFIO_REMAP_ADC1_ETRGINJ_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ADC1_ETRGINJ_REMAP)
409
415#define __HAL_AFIO_REMAP_ADC1_ETRGINJ_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ADC1_ETRGINJ_REMAP)
416
422#define __HAL_AFIO_REMAP_ADC1_ETRGREG_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ADC1_ETRGREG_REMAP)
423
429#define __HAL_AFIO_REMAP_ADC1_ETRGREG_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ADC1_ETRGREG_REMAP)
430
431#if defined(AFIO_MAPR_ADC2_ETRGINJ_REMAP)
432
438#define __HAL_AFIO_REMAP_ADC2_ETRGINJ_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ADC2_ETRGINJ_REMAP)
439
445#define __HAL_AFIO_REMAP_ADC2_ETRGINJ_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ADC2_ETRGINJ_REMAP)
446#endif
447
448#if defined (AFIO_MAPR_ADC2_ETRGREG_REMAP)
449
455#define __HAL_AFIO_REMAP_ADC2_ETRGREG_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ADC2_ETRGREG_REMAP)
456
462#define __HAL_AFIO_REMAP_ADC2_ETRGREG_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ADC2_ETRGREG_REMAP)
463#endif
464
470#define __HAL_AFIO_REMAP_SWJ_ENABLE() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_RESET)
471
477#define __HAL_AFIO_REMAP_SWJ_NONJTRST() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_NOJNTRST)
478
485#define __HAL_AFIO_REMAP_SWJ_NOJTAG() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_JTAGDISABLE)
486
492#define __HAL_AFIO_REMAP_SWJ_DISABLE() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_DISABLE)
493
494#if defined(AFIO_MAPR_SPI3_REMAP)
495
502#define __HAL_AFIO_REMAP_SPI3_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_SPI3_REMAP)
503
510#define __HAL_AFIO_REMAP_SPI3_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_SPI3_REMAP)
511#endif
512
513#if defined(AFIO_MAPR_TIM2ITR1_IREMAP)
514
521#define __HAL_AFIO_TIM2ITR1_TO_USB() AFIO_REMAP_ENABLE(AFIO_MAPR_TIM2ITR1_IREMAP)
522
529#define __HAL_AFIO_TIM2ITR1_TO_ETH() AFIO_REMAP_DISABLE(AFIO_MAPR_TIM2ITR1_IREMAP)
530#endif
531
532#if defined(AFIO_MAPR_PTP_PPS_REMAP)
533
540#define __HAL_AFIO_ETH_PTP_PPS_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_PTP_PPS_REMAP)
541
548#define __HAL_AFIO_ETH_PTP_PPS_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_PTP_PPS_REMAP)
549#endif
550
551#if defined(AFIO_MAPR2_TIM9_REMAP)
552
558#define __HAL_AFIO_REMAP_TIM9_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM9_REMAP)
559
565#define __HAL_AFIO_REMAP_TIM9_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM9_REMAP)
566#endif
567
568#if defined(AFIO_MAPR2_TIM10_REMAP)
569
575#define __HAL_AFIO_REMAP_TIM10_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM10_REMAP)
576
582#define __HAL_AFIO_REMAP_TIM10_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM10_REMAP)
583#endif
584
585#if defined(AFIO_MAPR2_TIM11_REMAP)
591#define __HAL_AFIO_REMAP_TIM11_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM11_REMAP)
592
598#define __HAL_AFIO_REMAP_TIM11_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM11_REMAP)
599#endif
600
601#if defined(AFIO_MAPR2_TIM13_REMAP)
602
608#define __HAL_AFIO_REMAP_TIM13_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM13_REMAP)
609
615#define __HAL_AFIO_REMAP_TIM13_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM13_REMAP)
616#endif
617
618#if defined(AFIO_MAPR2_TIM14_REMAP)
619
625#define __HAL_AFIO_REMAP_TIM14_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM14_REMAP)
626
632#define __HAL_AFIO_REMAP_TIM14_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM14_REMAP)
633#endif
634
635#if defined(AFIO_MAPR2_FSMC_NADV_REMAP)
636
642#define __HAL_AFIO_FSMCNADV_DISCONNECTED() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_FSMC_NADV_REMAP)
643
649#define __HAL_AFIO_FSMCNADV_CONNECTED() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_FSMC_NADV_REMAP)
650#endif
651
652#if defined(AFIO_MAPR2_TIM15_REMAP)
653
659#define __HAL_AFIO_REMAP_TIM15_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM15_REMAP)
660
666#define __HAL_AFIO_REMAP_TIM15_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM15_REMAP)
667#endif
668
669#if defined(AFIO_MAPR2_TIM16_REMAP)
670
676#define __HAL_AFIO_REMAP_TIM16_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM16_REMAP)
677
683#define __HAL_AFIO_REMAP_TIM16_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM16_REMAP)
684#endif
685
686#if defined(AFIO_MAPR2_TIM17_REMAP)
687
693#define __HAL_AFIO_REMAP_TIM17_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM17_REMAP)
694
700#define __HAL_AFIO_REMAP_TIM17_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM17_REMAP)
701#endif
702
703#if defined(AFIO_MAPR2_CEC_REMAP)
704
710#define __HAL_AFIO_REMAP_CEC_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_CEC_REMAP)
711
717#define __HAL_AFIO_REMAP_CEC_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_CEC_REMAP)
718#endif
719
720#if defined(AFIO_MAPR2_TIM1_DMA_REMAP)
721
727#define __HAL_AFIO_REMAP_TIM1DMA_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM1_DMA_REMAP)
728
734#define __HAL_AFIO_REMAP_TIM1DMA_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM1_DMA_REMAP)
735#endif
736
737#if defined(AFIO_MAPR2_TIM67_DAC_DMA_REMAP)
738
744#define __HAL_AFIO_REMAP_TIM67DACDMA_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM67_DAC_DMA_REMAP)
745
751#define __HAL_AFIO_REMAP_TIM67DACDMA_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM67_DAC_DMA_REMAP)
752#endif
753
754#if defined(AFIO_MAPR2_TIM12_REMAP)
755
762#define __HAL_AFIO_REMAP_TIM12_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM12_REMAP)
763
770#define __HAL_AFIO_REMAP_TIM12_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_TIM12_REMAP)
771#endif
772
773#if defined(AFIO_MAPR2_MISC_REMAP)
774
785#define __HAL_AFIO_REMAP_MISC_ENABLE() SET_BIT(AFIO->MAPR2, AFIO_MAPR2_MISC_REMAP)
786
797#define __HAL_AFIO_REMAP_MISC_DISABLE() CLEAR_BIT(AFIO->MAPR2, AFIO_MAPR2_MISC_REMAP)
798#endif
799
811#if defined(STM32F101x6) || defined(STM32F102x6) || defined(STM32F102xB) || defined(STM32F103x6)
812#define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0uL :\
813 ((__GPIOx__) == (GPIOB))? 1uL :\
814 ((__GPIOx__) == (GPIOC))? 2uL :3uL)
815#elif defined(STM32F100xB) || defined(STM32F101xB) || defined(STM32F103xB) || defined(STM32F105xC) || defined(STM32F107xC)
816#define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0uL :\
817 ((__GPIOx__) == (GPIOB))? 1uL :\
818 ((__GPIOx__) == (GPIOC))? 2uL :\
819 ((__GPIOx__) == (GPIOD))? 3uL :4uL)
820#elif defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG)
821#define GPIO_GET_INDEX(__GPIOx__) (((__GPIOx__) == (GPIOA))? 0uL :\
822 ((__GPIOx__) == (GPIOB))? 1uL :\
823 ((__GPIOx__) == (GPIOC))? 2uL :\
824 ((__GPIOx__) == (GPIOD))? 3uL :\
825 ((__GPIOx__) == (GPIOE))? 4uL :\
826 ((__GPIOx__) == (GPIOF))? 5uL :6uL)
827#endif
828
829#define AFIO_REMAP_ENABLE(REMAP_PIN) do{ uint32_t tmpreg = AFIO->MAPR; \
830 tmpreg |= AFIO_MAPR_SWJ_CFG; \
831 tmpreg |= REMAP_PIN; \
832 AFIO->MAPR = tmpreg; \
833 }while(0u)
834
835#define AFIO_REMAP_DISABLE(REMAP_PIN) do{ uint32_t tmpreg = AFIO->MAPR; \
836 tmpreg |= AFIO_MAPR_SWJ_CFG; \
837 tmpreg &= ~REMAP_PIN; \
838 AFIO->MAPR = tmpreg; \
839 }while(0u)
840
841#define AFIO_REMAP_PARTIAL(REMAP_PIN, REMAP_PIN_MASK) do{ uint32_t tmpreg = AFIO->MAPR; \
842 tmpreg &= ~REMAP_PIN_MASK; \
843 tmpreg |= AFIO_MAPR_SWJ_CFG; \
844 tmpreg |= REMAP_PIN; \
845 AFIO->MAPR = tmpreg; \
846 }while(0u)
847
848#define AFIO_DBGAFR_CONFIG(DBGAFR_SWJCFG) do{ uint32_t tmpreg = AFIO->MAPR; \
849 tmpreg &= ~AFIO_MAPR_SWJ_CFG_Msk; \
850 tmpreg |= DBGAFR_SWJCFG; \
851 AFIO->MAPR = tmpreg; \
852 }while(0u)
853
858/* Exported macro ------------------------------------------------------------*/
859/* Exported functions --------------------------------------------------------*/
860
868void HAL_GPIOEx_ConfigEventout(uint32_t GPIO_PortSource, uint32_t GPIO_PinSource);
869void HAL_GPIOEx_EnableEventout(void);
870void HAL_GPIOEx_DisableEventout(void);
871
888#ifdef __cplusplus
889}
890#endif
891
892#endif /* STM32F1xx_HAL_GPIO_EX_H */
893
894/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
This file contains HAL common defines, enumeration, macros and structures definitions.