Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/stm32_common: Bug fixes for stm i2c #10540

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion boards/common/stm32f103c8/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ static const uart_conf_t uart_config[] = {
/** @} */

/**
* @name I2C configuration
* @name I2C configuration
* @note This board may require external pullup resistors for i2c operation.
* @{
*/
static const i2c_conf_t i2c_config[] = {
Expand Down
3 changes: 2 additions & 1 deletion boards/nucleo-f103rb/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ static const uart_conf_t uart_config[] = {
/** @} */

/**
* @name I2C configuration
* @name I2C configuration
* @note This board may require external pullup resistors for i2c operation.
* @{
*/
static const i2c_conf_t i2c_config[] = {
Expand Down
5 changes: 5 additions & 0 deletions cpu/stm32_common/include/periph_cpu_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ typedef uint32_t gpio_t;
#define PERIPH_I2C_NEED_READ_REG
/** Use write reg function from periph common */
#define PERIPH_I2C_NEED_WRITE_REG
#define PERIPH_I2C_NEED_READ_REGS
#if defined(CPU_FAM_STM32F1) || defined(CPU_FAM_STM32F2) || \
defined(CPU_FAM_STM32L1) || defined(CPU_FAM_STM32F4)
#define PERIPH_I2C_NEED_WRITE_REGS
#endif
/** @} */

/**
Expand Down
Loading