[update][freertos] update configASSERT

This commit is contained in:
jzlv 2022-10-29 16:12:59 +08:00
parent b53a02f2c9
commit 5ce60f5c3a
7 changed files with 50 additions and 17 deletions

View file

@ -108,9 +108,14 @@ to exclude the API function. */
header file. */
void vApplicationMallocFailedHook(void);
void vAssertCalled(void);
#define configASSERT(x) \
if ((x) == 0) \
vAssertCalled()
#define configASSERT(x) \
if ((x) == 0) { \
printf("file [%s]\r\n", __FILE__); \
printf("func [%s]\r\n", __FUNCTION__); \
printf("line [%d]\r\n", __LINE__); \
printf("%s\r\n", (const char *)(#x)); \
vAssertCalled(); \
}
#if (configUSE_TICKLESS_IDLE != 0)
void vApplicationSleep(uint32_t xExpectedIdleTime);