summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-12-30 11:41:13 +0800
committerRbb666 <[email protected]>2025-02-11 14:58:18 +0800
commit5a455cb6151908cc9ac891bdedc89e383423e7f6 (patch)
tree39abe6a9a004a813295952dc63d60d5e0f866623 /components/drivers/include
parent578cfc0b2a8c769630199f8a1cc12fcef42e8b8f (diff)
[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 <[email protected]>
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/dev_pin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/dev_pin.h b/components/drivers/include/drivers/dev_pin.h
index b1705ae6dd..0cb15c3af9 100644
--- a/components/drivers/include/drivers/dev_pin.h
+++ b/components/drivers/include/drivers/dev_pin.h
@@ -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 */