Skip to content

Commit 66d2a86

Browse files
Added comment for SPI transfer API
1 parent ff787ba commit 66d2a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/silabs/wifi/SiWx/ncp/efx32_ncp_host.c

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Ecode_t si91x_SPIDRV_MTransfer(SPIDRV_Handle_t handle, const void * txBuffer, vo
105105
uint8_t * tx = (txBuffer != NULL) ? (uint8_t *) txBuffer : dummy_buffer;
106106
uint8_t * rx = (rxBuffer != NULL) ? (uint8_t *) rxBuffer : dummy_buffer;
107107

108+
// For transfers less than 16 bytes, directly interacting with USART buffers is faster than using DMA
108109
if (count < 16)
109110
{
110111
while (count > 0)

0 commit comments

Comments
 (0)