mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Replace nxsem API when used as a lock with nxmutex API
Signed-off-by: anjiahao <anjiahao@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
0dfd1f004d
commit
d1d46335df
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <nuttx/wdog.h>
|
||||
#include <nuttx/clock.h>
|
||||
#include <nuttx/semaphore.h>
|
||||
#include <nuttx/mutex.h>
|
||||
#include <nuttx/wqueue.h>
|
||||
#include <nuttx/ioexpander/ioexpander.h>
|
||||
#include <nuttx/ioexpander/pcf8574.h>
|
||||
@@ -129,7 +129,7 @@ struct pcf8574_dev_s
|
||||
* expander. */
|
||||
FAR struct pcf8574_config_s *config; /* Board configuration data */
|
||||
FAR struct i2c_master_s *i2c; /* Saved I2C driver instance */
|
||||
sem_t exclsem; /* Mutual exclusion */
|
||||
mutex_t lock; /* Mutual exclusion */
|
||||
uint8_t inpins; /* Set of input pins */
|
||||
uint8_t outstate; /* State of all output pins */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user