Microchip-MPLAB-Harmony / core

Harmony 3 Core
https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MH3_core&redirect=true
Other
17 stars 12 forks source link

Driver SPI, PIC32MZ (EF) TransferSetup missing options. #23

Closed youpko closed 3 years ago

youpko commented 3 years ago

I ran into a problem with the SPI driver (Synchronous mode) for PIC32MZ1024EFK.

I want to change the SPI clock rate at runtime using the DRV_SPI_TransferSetup() but the option to set the SPI hardware to 32-bit mode is missing. There is no enum for DRV_SPI_DATA_BITS_32.

After browsing through the DRV_SPI_WriteReadTransfer source I found that the DMA setup also would require a change.

vishalnxt commented 3 years ago

Thank you @youpko for reporting the issue. I will create an internal ticket to get this fixed.

vishalnxt commented 3 years ago

@youpko , the SPI driver is updated to support 32-bit data transfers. I am closing this ticket. Feel free to re-open it in case you find any issues.