STM32F4xx_HAL_Driver  1.8.3
stm32f4xx_hal_fmpsmbus_ex.c
Go to the documentation of this file.
1 
39 /* Includes ------------------------------------------------------------------*/
40 #include "stm32f4xx_hal.h"
41 
51 #ifdef HAL_FMPSMBUS_MODULE_ENABLED
52 #if defined(FMPI2C_CR1_PE)
53 
54 /* Private typedef -----------------------------------------------------------*/
55 /* Private define ------------------------------------------------------------*/
56 /* Private macro -------------------------------------------------------------*/
57 /* Private variables ---------------------------------------------------------*/
58 /* Private function prototypes -----------------------------------------------*/
59 /* Private functions ---------------------------------------------------------*/
60 
90 void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus)
91 {
92  /* Check the parameter */
93  assert_param(IS_FMPSMBUS_FASTMODEPLUS(ConfigFastModePlus));
94 
95  /* Enable SYSCFG clock */
96  __HAL_RCC_SYSCFG_CLK_ENABLE();
97 
98  /* Enable fast mode plus driving capability for selected pin */
99  SET_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
100 }
101 
113 void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus)
114 {
115  /* Check the parameter */
116  assert_param(IS_FMPSMBUS_FASTMODEPLUS(ConfigFastModePlus));
117 
118  /* Enable SYSCFG clock */
119  __HAL_RCC_SYSCFG_CLK_ENABLE();
120 
121  /* Disable fast mode plus driving capability for selected pin */
122  CLEAR_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
123 }
124 
137 #endif /* FMPI2C_CR1_PE */
138 #endif /* HAL_FMPSMBUS_MODULE_ENABLED */
void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus)
Disable the FMPSMBUS fast mode plus driving capability.
void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus)
Enable the FMPSMBUS fast mode plus driving capability.
This file contains all the functions prototypes for the HAL module driver.