From 36023733fefaebac87c463439750151c7234766a Mon Sep 17 00:00:00 2001 From: TaeminYeom Date: Tue, 21 Feb 2023 16:48:29 +0900 Subject: [PATCH] Add description nonblock open flag PERIPHERAL_OPEN_FLAGS_NONBLOCK is availble for only uart open. So, to prevent to use it in i2c open, add description. Change-Id: I7614a2b9ea1c96dd84069d75a29bb4d5e064d5d4 Signed-off-by: TaeminYeom --- include/peripheral_io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/peripheral_io.h b/include/peripheral_io.h index 1de9bc0..0e5e947 100644 --- a/include/peripheral_io.h +++ b/include/peripheral_io.h @@ -354,7 +354,8 @@ EXPORT_API int peripheral_i2c_open(int bus, int address, peripheral_i2c_h *i2c); typedef enum { PERIPHERAL_OPEN_FLAGS_PRIVATE = 0, /**< Exclusive access to device */ PERIPHERAL_OPEN_FLAGS_SHARED = 1, /**< Shared access to device */ - PERIPHERAL_OPEN_FLAGS_NONBLOCK = 2, /**< (Since 7.5) Nonblocking read/write flag */ + PERIPHERAL_OPEN_FLAGS_NONBLOCK = 2, /**< Nonblocking read/write flag, + available for only uart (Since 7.5) */ } peripheral_open_flags_e; /** -- 2.7.4