Browse Source

update zlog

master
zhaohe 8 months ago
parent
commit
c71439b73a
  1. 5
      basic/zlog.h

5
basic/zlog.h

@ -37,6 +37,11 @@ extern void zdelay_ms(int ms);
#define ZASSERT(cond) ASSERT(cond, "")
#define ZASSERT_INFO(cond, info) ASSERT(cond, info)
#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