You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have other doubt about spi slave driver implementation, it is related spi_slave_driver.c file.
In current implementation we have semaphore reader:
/* The semphore reader */
sem_t wait;
It is used in spi_slave.read function, for instance:
if (priv->rx_length == 0)
{
nxmutex_unlock(&priv->lock);
if (filep->f_oflags & O_NONBLOCK)
{
return -EAGAIN;
}
ret = nxsem_wait(&priv->wait);
if (ret < 0)
{
return ret;
}
ret = nxmutex_lock(&priv->lock);
if (ret < 0)
{
spierr("Failed to get exclusive access: %d\n", ret);
return ret;
}
}
}
The same semaphore is handle in spi_notify function. But trying search call of this function across the entire project, I cannot find any call of SPIS_DEV_NOTIFY.
Description
Hello All,
I have other doubt about spi slave driver implementation, it is related spi_slave_driver.c file.
In current implementation we have semaphore reader:
It is used in
spi_slave.read
function, for instance:The same semaphore is handle in
spi_notify
function. But trying search call of this function across the entire project, I cannot find any call ofSPIS_DEV_NOTIFY
.@Donny9 , Can you check my reasoning, please?
If so, can you give me an example of how you used the
SPIS_DEV_NOTIFY
function?In the lower half I'm working on, I see the
SPIS_DEV_SELECT
function call inside the spi interrupt, but no reference to notify.Verification
The text was updated successfully, but these errors were encountered: