aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards/STM32F7DISC
diff options
context:
space:
mode:
authorDamien George2017-03-31 12:53:56 +1100
committerDamien George2017-03-31 12:53:56 +1100
commitaa7de3ff67199fac308184850aa41e598f3717a1 (patch)
tree1883aeaf6fff3c9123570dc244c9706b8bc32ef9 /stmhal/boards/STM32F7DISC
parent6cc1a7a214e573cf3efc3c53f3ecba6c65ea2d11 (diff)
stmhal: Move L4/F7 I2C timing constants from mpconfigboard.h to i2c.c.
Such constants are MCU specific so shouldn't be specified in the board config file (else it leads to too much duplication of code). This patch also adds I2C timing values for the F767/F769 for 100k, 400k and 1MHz I2C bus frequencies.
Diffstat (limited to 'stmhal/boards/STM32F7DISC')
-rw-r--r--stmhal/boards/STM32F7DISC/mpconfigboard.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/stmhal/boards/STM32F7DISC/mpconfigboard.h b/stmhal/boards/STM32F7DISC/mpconfigboard.h
index 38665055f..44a39c0a1 100644
--- a/stmhal/boards/STM32F7DISC/mpconfigboard.h
+++ b/stmhal/boards/STM32F7DISC/mpconfigboard.h
@@ -51,16 +51,6 @@ void STM32F7DISC_board_early_init(void);
#define MICROPY_HW_I2C3_SCL (pin_H7)
#define MICROPY_HW_I2C3_SDA (pin_H8)
-// The STM32F7 uses a TIMINGR register which is configured using an Excel
-// Spreadsheet from AN4235: http://www.st.com/web/en/catalog/tools/PF258335
-// We use an array of baudrates and corresponding TIMINGR values.
-//
-// The value 0x40912732 was obtained from the DISCOVERY_I2Cx_TIMING constant
-// defined in the STM32F7Cube file Drivers/BSP/STM32F746G-Discovery/stm32f7456g_discovery.h
-#define MICROPY_HW_I2C_BAUDRATE_TIMING {{100000, 0x40912732}}
-#define MICROPY_HW_I2C_BAUDRATE_DEFAULT 100000
-#define MICROPY_HW_I2C_BAUDRATE_MAX 100000
-
// SPI
#define MICROPY_HW_SPI2_NSS (pin_I0)
#define MICROPY_HW_SPI2_SCK (pin_I1)