Browse Source

Merge pull request #2659 from mubes/i2cfixes

Fix I2C clock divider
crypto-aes
Dan Halbert 2 years ago committed by GitHub
parent
commit
0c2894c725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ports/mimxrt10xx/common-hal/busio/I2C.c

4
ports/mimxrt10xx/common-hal/busio/I2C.c

@ -34,10 +34,8 @@ @@ -34,10 +34,8 @@
#include "fsl_lpi2c.h"
//TODO
#define I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (1+CLOCK_GetDiv(kCLOCK_Lpi2cDiv)))
#define I2C_CLOCK_SOURCE_DIVIDER (5U)
#define I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (I2C_CLOCK_SOURCE_DIVIDER + 1U))
static void config_periph_pin(const mcu_periph_obj_t *periph) {
IOMUXC_SetPinMux(

Loading…
Cancel
Save