Browse Source

stm32/machine_i2c: Enable timingr constructor keyword on H7 MCUs.

Signed-off-by: Damien George <damien@micropython.org>
pull/8734/head
Damien George 2 years ago
parent
commit
14105ff5b1
  1. 2
      ports/stm32/machine_i2c.c

2
ports/stm32/machine_i2c.c

@ -186,7 +186,7 @@ STATIC void machine_hard_i2c_init(machine_hard_i2c_obj_t *self, uint32_t freq, u
/******************************************************************************/
/* MicroPython bindings for machine API */
#if defined(STM32F0) || defined(STM32F7)
#if defined(STM32F0) || defined(STM32F7) || defined(STM32H7)
#define MACHINE_I2C_TIMINGR (1)
#else
#define MACHINE_I2C_TIMINGR (0)

Loading…
Cancel
Save