Skip to content

Commit

Permalink
Merge pull request #10608 from MrKevinWeiss/pr/fix/stmi2c2
Browse files Browse the repository at this point in the history
cpu/stm_common: Refactor and fix implementation for i2c_2
  • Loading branch information
aabadie authored Dec 20, 2018
2 parents 88f66dc + a2e059d commit ab061c4
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 245 deletions.
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 @@ -159,6 +159,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
#if defined(CPU_FAM_STM32F1) || defined(CPU_FAM_STM32F2) || \
defined(CPU_FAM_STM32L1) || defined(CPU_FAM_STM32F4)
#define PERIPH_I2C_NEED_READ_REGS
#define PERIPH_I2C_NEED_WRITE_REGS
#endif
/** @} */

/**
Expand Down
Loading

0 comments on commit ab061c4

Please sign in to comment.