ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
Loading...
Searching...
No Matches
i2c.c File Reference

This file provides code for the configuration of the I2C instances. More...

#include "bsp/i2c.h"
#include "bsp/error.h"

Go to the source code of this file.

Functions

void MX_I2C2_Init (void)
 
void HAL_I2C_MspInit (I2C_HandleTypeDef *i2cHandle)
 
void HAL_I2C_MspDeInit (I2C_HandleTypeDef *i2cHandle)
 

Variables

I2C_HandleTypeDef hi2c2
 

Detailed Description

This file provides code for the configuration of the I2C instances.

Attention

Copyright (c) 2025 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file i2c.c.

Function Documentation

◆ HAL_I2C_MspDeInit()

void HAL_I2C_MspDeInit ( I2C_HandleTypeDef *  i2cHandle)

I2C2 GPIO Configuration PB10 ---—> I2C2_SCL PB11 ---—> I2C2_SDA

Definition at line 114 of file i2c.c.

◆ HAL_I2C_MspInit()

void HAL_I2C_MspInit ( I2C_HandleTypeDef *  i2cHandle)

Initializes the peripherals clock

I2C2 GPIO Configuration PB10 ---—> I2C2_SCL PB11 ---—> I2C2_SDA

< Alternate Function Open Drain Mode

< No Pull-up or Pull-down activation

< Low speed

Definition at line 74 of file i2c.c.

References Error_Handler().

◆ MX_I2C2_Init()

void MX_I2C2_Init ( void  )

Configure Analogue filter

Configure Digital filter

Definition at line 31 of file i2c.c.

References Error_Handler(), and hi2c2.

Referenced by hal_init().

Variable Documentation

◆ hi2c2

I2C_HandleTypeDef hi2c2

Definition at line 28 of file i2c.c.

Referenced by MX_I2C2_Init().