Prusa MINI Firmware overview
|
◆ HAL_I2C_Init()
◆ HAL_I2C_DeInit()
◆ HAL_I2C_MspInit()
I2C MSP Initialization This function configures the hardware resources used in this example.
- Parameters
-
- Return values
-
I2C1 GPIO Configuration PB8 ---—> I2C1_SCL PB9 ---—> I2C1_SDA
207 GPIO_InitStruct.
Alternate = GPIO_AF4_I2C1;
◆ HAL_I2C_MspDeInit()
I2C MSP De-Initialization This function freeze the hardware resources used in this example.
- Parameters
-
- Return values
-
I2C1 GPIO Configuration PB8 ---—> I2C1_SCL PB9 ---—> I2C1_SDA
uint32_t Mode
Definition: stm32f4xx_hal_gpio.h:68
#define __HAL_RCC_GPIOB_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:409
uint32_t Alternate
Definition: stm32f4xx_hal_gpio.h:77
uint32_t Pull
Definition: stm32f4xx_hal_gpio.h:71
void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
#define GPIO_MODE_AF_OD
Definition: stm32f4xx_hal_gpio.h:139
#define GPIO_PULLUP
Definition: stm32f4xx_hal_gpio.h:171
#define GPIO_PIN_8
Definition: stm32f4xx_hal_gpio.h:110
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
#define GPIO_SPEED_FREQ_VERY_HIGH
Definition: stm32f4xx_hal_gpio.h:161
#define __HAL_RCC_I2C1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:514
I2C_TypeDef * Instance
Definition: stm32f4xx_hal_i2c.h:166
#define __HAL_RCC_I2C1_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:540
uint32_t Pin
Definition: stm32f4xx_hal_gpio.h:65
uint32_t Speed
Definition: stm32f4xx_hal_gpio.h:74
#define GPIO_PIN_9
Definition: stm32f4xx_hal_gpio.h:111
GPIO Init structure definition.
Definition: stm32f4xx_hal_gpio.h:63