Browse Source

merge

master
zhaohe 8 months ago
parent
commit
60f3510b13
  1. 6
      basic/zlog.h

6
basic/zlog.h

@ -44,6 +44,12 @@ extern void zdelay_ms(int ms);
}
#define ZASSERT(cond) ASSERT(cond, "")
#define ZASSERT(cond) ASSERT(cond, "")
#define HAL_ASSERT(exptr) \
{ \
HAL_StatusTypeDef status = (exptr); \
ASSERT(status == HAL_OK, #exptr); \
}
#define ZARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))

Loading…
Cancel
Save