Skip to content

Commit

Permalink
feat(PeriphDrivers): Initial I3C driver support
Browse files Browse the repository at this point in the history
Add I3C driver support for ME30.c. Supports controller and target modes.

Signed-off-by: Tahsin Mutlugun <[email protected]>
  • Loading branch information
ttmut committed Jun 10, 2024
1 parent e9cb0ce commit 4c0fb2a
Show file tree
Hide file tree
Showing 8 changed files with 4,487 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ We may want to handle GET_IRQ better...

/******************************************************************************/
/* I3C */
#define MXC_CFG_I3C_INSTANCES (1)
#define MXC_I3C_FIFO_DEPTH (8)

/* Non-secure Mapping */
Expand All @@ -631,6 +632,11 @@ We may want to handle GET_IRQ better...
#define MXC_I3C MXC_I3C_NS
#endif

#define MXC_I3C_GET_BASE(i) ((i) == 0 ? MXC_BASE_I3C : 0)
#define MXC_I3C_GET_I3C(i) ((i) == 0 ? MXC_I3C : 0)
#define MXC_I3C_GET_IRQ(i) (IRQn_Type)((i) == 0 ? I3C_IRQn : 0)
#define MXC_I3C_GET_IDX(p) ((p) == MXC_I3C_NS ? 0 : (p) == MXC_I3C_S ? 0 : -1)

/******************************************************************************/
/* DMA */
#define MXC_DMA_CHANNELS (4)
Expand Down
Loading

0 comments on commit 4c0fb2a

Please sign in to comment.