STM32F4xx HAL Driver
master
STM32CubeF4 HAL / LL Drivers API Reference
Toggle main menu visibility
Loading...
Searching...
No Matches
stm32f4xx_hal_fmpsmbus_ex.c
Go to the documentation of this file.
1
38
39
/* Includes ------------------------------------------------------------------*/
40
#include "
stm32f4xx_hal.h
"
41
45
50
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
64
78
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
128
132
136
137
#endif
/* FMPI2C_CR1_PE */
138
#endif
/* HAL_FMPSMBUS_MODULE_ENABLED */
142
__HAL_RCC_SYSCFG_CLK_ENABLE
#define __HAL_RCC_SYSCFG_CLK_ENABLE()
Definition
stm32f4xx_hal_rcc.h:597
assert_param
#define assert_param(expr)
Definition
stm32_assert_template.h:46
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
hal-driver
Src
stm32f4xx_hal_fmpsmbus_ex.c
Generated by
1.17.0