FelipeMdeO opened a new issue, #14369:
URL: https://github.com/apache/nuttx/issues/14369
### 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:
```
/* 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`.
@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
- [X] I have verified before submitting the report.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]