This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2156a102cf fix bl602 i2c sem init mistake
2156a102cf is described below

commit 2156a102cfd56662373fc998feeb554984afdc95
Author: anjiahao <anjia...@xiaomi.com>
AuthorDate: Thu Oct 27 17:02:42 2022 +0800

    fix bl602 i2c sem init mistake
    
    Signed-off-by: anjiahao <anjia...@xiaomi.com>
---
 arch/risc-v/src/bl602/bl602_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/risc-v/src/bl602/bl602_i2c.c 
b/arch/risc-v/src/bl602/bl602_i2c.c
index aafa185ae6..1ca0d7fb5c 100644
--- a/arch/risc-v/src/bl602/bl602_i2c.c
+++ b/arch/risc-v/src/bl602/bl602_i2c.c
@@ -153,7 +153,7 @@ static struct bl602_i2c_priv_s bl602_i2c0_priv =
   .subaddr  = 0,
   .sublen   = 0,
   .lock     = NXMUTEX_INITIALIZER,
-  .sem_isr  = SEM_INITIALIZER(0),
+  .sem_isr  = SEM_INITIALIZER(1),
   .i2cstate = EV_I2C_END_INT,
   .msgv     = NULL,
   .msgid    = 0,

Reply via email to