Setting up DMA for multiple LPI2C buses on RT1062

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting up DMA for multiple LPI2C buses on RT1062

457 Views
kennethkong852
Contributor I

HELLO!

I am attempting to set up DMA that will be used by multiple i2c buses (lpi2c1, lp12c2, ...) on a RT1062.

Wondering what would be the appropriate way to set up the handles via...

  • LPI2C_MasterCreateEDMAHandle(LPI2C_Type *base,
    lpi2c_master_edma_handle_t *handle,
    edma_handle_t *rxDmaHandle,
    edma_handle_t *txDmaHandle,
    lpi2c_master_edma_transfer_callback_t callback,
    void *userData)
  • EDMA_CreateHandle(edma_handle_t *handle, DMA_Type *base, uint32_t channel)

Can each individual i2c interface have its own set of handles and which handles are these?

I cannot seem to find an example in MCUXpresso for this type of setup.

May anyone please help?

Thank you!

-Ka

0 Kudos
1 Reply

446 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Please also need to initialize the DMAMUX for LPI2C1 & LPI2C2 accordingly.

Wish it heps.

Hui_Ma_0-1650785934698.pngHui_Ma_1-1650785980076.png

Mike

0 Kudos