STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
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
90void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus)
91{
92 /* Check the parameter */
93 assert_param(IS_FMPSMBUS_FASTMODEPLUS(ConfigFastModePlus));
94
95 /* Enable SYSCFG clock */
97
98 /* Enable fast mode plus driving capability for selected pin */
99 SET_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
100}
101
113void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus)
114{
115 /* Check the parameter */
116 assert_param(IS_FMPSMBUS_FASTMODEPLUS(ConfigFastModePlus));
117
118 /* Enable SYSCFG clock */
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.
#define IS_FMPSMBUS_FASTMODEPLUS(__CONFIG__)
#define __HAL_RCC_SYSCFG_CLK_ENABLE()
#define assert_param(expr)
This file contains all the functions prototypes for the HAL module driver.