mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
sem:remove sem default protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -1144,12 +1144,6 @@ int ads7843e_register(FAR struct spi_dev_s *spi,
|
||||
nxmutex_init(&priv->devlock); /* Initialize device structure mutex */
|
||||
nxsem_init(&priv->waitsem, 0, 0); /* Initialize pen event wait semaphore */
|
||||
|
||||
/* The pen event semaphore is used for signaling and, hence, should not
|
||||
* have priority inheritance enabled.
|
||||
*/
|
||||
|
||||
nxsem_set_protocol(&priv->waitsem, SEM_PRIO_NONE);
|
||||
|
||||
/* Make sure that interrupts are disabled */
|
||||
|
||||
config->clear(config);
|
||||
|
||||
Reference in New Issue
Block a user