From f51b7f360eb869944049c1170c34f840c5f22818 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Fri, 30 Aug 2024 23:54:59 +0800 Subject: [PATCH] lib: system: nuttx: change MUTEX_INITIALIZER to NXMUTEX_INITIALIZER Now nuttx uses NXMUTEX_INITIALIZER to initialize the mutex, so updated. Signed-off-by: Bowen Wang --- lib/system/nuttx/mutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/nuttx/mutex.h b/lib/system/nuttx/mutex.h index 17e1352e..26ec4f90 100644 --- a/lib/system/nuttx/mutex.h +++ b/lib/system/nuttx/mutex.h @@ -28,12 +28,12 @@ typedef mutex_t metal_mutex_t; * METAL_MUTEX_INIT - used for initializing an mutex element in a static struct * or global */ -#define METAL_MUTEX_INIT(m) MUTEX_INITIALIZER +#define METAL_MUTEX_INIT(m) NXMUTEX_INITIALIZER /* * METAL_MUTEX_DEFINE - used for defining and initializing a global or * static singleton mutex */ -#define METAL_MUTEX_DEFINE(m) metal_mutex_t m = MUTEX_INITIALIZER +#define METAL_MUTEX_DEFINE(m) metal_mutex_t m = NXMUTEX_INITIALIZER static inline void __metal_mutex_init(metal_mutex_t *mutex) {