mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
[DM/PIN] Reset the value of PIN_NONE
PIN_NONE is '-1', is similar to '-RT_ERROR', '-RT_EEMPTY' is better. Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -111,7 +111,7 @@ struct rt_device_pin
|
||||
const struct rt_pin_ops *ops;
|
||||
};
|
||||
|
||||
#define PIN_NONE (-1)
|
||||
#define PIN_NONE (-RT_EEMPTY)
|
||||
|
||||
#define PIN_LOW 0x00 /*!< low level */
|
||||
#define PIN_HIGH 0x01 /*!< high level */
|
||||
|
||||
Reference in New Issue
Block a user