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 3, 2024
1 parent 9ceb343 commit 366602e
Show file tree
Hide file tree
Showing 8 changed files with 4,419 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 @@ -607,6 +607,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 @@ -625,6 +626,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_SPI(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 366602e

Please sign in to comment.