diff options
| author | Damien George | 2017-03-31 12:53:56 +1100 |
|---|---|---|
| committer | Damien George | 2017-03-31 12:53:56 +1100 |
| commit | aa7de3ff67199fac308184850aa41e598f3717a1 (patch) | |
| tree | 1883aeaf6fff3c9123570dc244c9706b8bc32ef9 /stmhal/boards/LIMIFROG | |
| parent | 6cc1a7a214e573cf3efc3c53f3ecba6c65ea2d11 (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/LIMIFROG')
| -rw-r--r-- | stmhal/boards/LIMIFROG/mpconfigboard.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/stmhal/boards/LIMIFROG/mpconfigboard.h b/stmhal/boards/LIMIFROG/mpconfigboard.h index 95fd6bf50..d04634ac3 100644 --- a/stmhal/boards/LIMIFROG/mpconfigboard.h +++ b/stmhal/boards/LIMIFROG/mpconfigboard.h @@ -37,13 +37,6 @@ void LIMIFROG_board_early_init(void); #define MICROPY_HW_I2C1_SDA (pin_B9) #define MICROPY_HW_I2C2_SCL (pin_B10) #define MICROPY_HW_I2C2_SDA (pin_B11) -// We use an array of baudrates and corresponding TIMINGR values. -// -// The value 0x90112626 was obtained from the DISCOVERY_I2C1_TIMING constant -// defined in the STM32L4Cube file Drivers/BSP/STM32L476G-Discovery/stm32l476g_discovery.h -#define MICROPY_HW_I2C_BAUDRATE_TIMING {{100000, 0x90112626}} -#define MICROPY_HW_I2C_BAUDRATE_DEFAULT 100000 -#define MICROPY_HW_I2C_BAUDRATE_MAX 100000 // SPI busses #define MICROPY_HW_SPI1_NSS (pin_A4) |
