Skip to content

Commit

Permalink
imxrt-multi: implement I2C driver
Browse files Browse the repository at this point in the history
Add pin mux setup
Add clock timing setup
Add functions for read/write

JIRA: NIL-453
  • Loading branch information
jmaksymowicz committed Jul 9, 2024
1 parent a6a2387 commit 758882b
Show file tree
Hide file tree
Showing 3 changed files with 500 additions and 89 deletions.
48 changes: 48 additions & 0 deletions multi/imxrt-multi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,54 @@

#endif /* #ifdef __CPU_IMXRT117X */

#ifndef I2C1_PUSHPULL
#define I2C1_PUSHPULL 0
#endif

#ifndef I2C2_PUSHPULL
#define I2C2_PUSHPULL 0
#endif

#ifndef I2C3_PUSHPULL
#define I2C3_PUSHPULL 0
#endif

#ifndef I2C4_PUSHPULL
#define I2C4_PUSHPULL 0
#endif

#ifndef I2C5_PUSHPULL
#define I2C5_PUSHPULL 0
#endif

#ifndef I2C6_PUSHPULL
#define I2C6_PUSHPULL 0
#endif

#ifndef I2C1_SPEED
#define I2C1_SPEED i2c_speed_slow
#endif

#ifndef I2C2_SPEED
#define I2C2_SPEED i2c_speed_slow
#endif

#ifndef I2C3_SPEED
#define I2C3_SPEED i2c_speed_slow
#endif

#ifndef I2C4_SPEED
#define I2C4_SPEED i2c_speed_slow
#endif

#ifndef I2C5_SPEED
#define I2C5_SPEED i2c_speed_slow
#endif

#ifndef I2C6_SPEED
#define I2C6_SPEED i2c_speed_slow
#endif


/* TRNG */

Expand Down
Loading

0 comments on commit 758882b

Please sign in to comment.