Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Problem to use SPI protocol

$
0
0
Hi Karol, Are you saying that the framework API should control the flow automatically? I am trying to writeRead some data and am finding sometimes the operation does not have enough time to finish before attempting the next writeRead (SSP_ERR_HW_LOCKED is returned). What is the easiest way to control the flow (I am using RTOS)? // Read back the data for (int i = 0; i 3; i++ ) {    ret |= g_spi.p_api- writeRead(g_spi.p_ctrl, &tx2, dataPointers[i], 4, SPI_BIT_WIDTH_8_BITS); }

Viewing all articles
Browse latest Browse all 59170

Trending Articles