diff options
| author | Damien George | 2015-04-18 16:12:57 +0100 |
|---|---|---|
| committer | Damien George | 2015-04-18 21:40:59 +0100 |
| commit | d15fe5a6b32c669eb7eade36a0558917ff034d37 (patch) | |
| tree | a403ef92518ae62478f45d15ee94972b2895a354 /stmhal/boards/STM32F4DISC | |
| parent | 8892f71dd0f39aedd7342a0f1e8517614f8b21dc (diff) | |
stmhal: Make I2C busses and their pins configurable in mpconfigboard.h.
Diffstat (limited to 'stmhal/boards/STM32F4DISC')
| -rw-r--r-- | stmhal/boards/STM32F4DISC/mpconfigboard.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stmhal/boards/STM32F4DISC/mpconfigboard.h b/stmhal/boards/STM32F4DISC/mpconfigboard.h index 2dc016d0f..f22c1a2e8 100644 --- a/stmhal/boards/STM32F4DISC/mpconfigboard.h +++ b/stmhal/boards/STM32F4DISC/mpconfigboard.h @@ -13,7 +13,6 @@ #define MICROPY_HW_ENABLE_TIMER (1) #define MICROPY_HW_ENABLE_SERVO (0) #define MICROPY_HW_ENABLE_DAC (1) -#define MICROPY_HW_ENABLE_I2C1 (1) #define MICROPY_HW_ENABLE_SPI1 (1) #define MICROPY_HW_ENABLE_SPI2 (1) #define MICROPY_HW_ENABLE_SPI3 (0) @@ -25,6 +24,12 @@ #define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2) #define MICROPY_HW_CLK_PLLQ (7) +// I2C busses +#define MICROPY_HW_I2C1_SCL (pin_B6) +#define MICROPY_HW_I2C1_SDA (pin_B7) +#define MICROPY_HW_I2C2_SCL (pin_B10) +#define MICROPY_HW_I2C2_SDA (pin_B11) + // USRSW is pulled low. Pressing the button makes the input go high. #define MICROPY_HW_USRSW_PIN (pin_A0) #define MICROPY_HW_USRSW_PULL (GPIO_NOPULL) |
