Browse Source

Merge pull request #27 from FrankBoesing/patch-1

Add FLASHMEM to begin()
main
Paul Stoffregen 3 years ago
parent
commit
03a24dd913
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      WireIMXRT.cpp

+ 1
- 1
WireIMXRT.cpp View File

@@ -8,7 +8,7 @@

#define PINCONFIG (IOMUXC_PAD_ODE | IOMUXC_PAD_SRE | IOMUXC_PAD_DSE(4) | IOMUXC_PAD_SPEED(1) | IOMUXC_PAD_PKE | IOMUXC_PAD_PUE | IOMUXC_PAD_PUS(3))

void TwoWire::begin(void)
FLASHMEM void TwoWire::begin(void)
{
// use 24 MHz clock
CCM_CSCDR2 = (CCM_CSCDR2 & ~CCM_CSCDR2_LPI2C_CLK_PODF(63)) | CCM_CSCDR2_LPI2C_CLK_SEL;

Loading…
Cancel
Save