From 0ff7e4c839ebfd60b1ae628da3aa52eed3dca9c8 Mon Sep 17 00:00:00 2001 From: Faisal Shah <37458679+faisal-shah@users.noreply.github.com> Date: Mon, 9 Apr 2018 11:02:45 -0500 Subject: [PATCH] Update ChibiOS_thread_states[] The mapping and description of thread states has changed. Taken from latest ChibiOS svn tree ... --- src/rtos/ChibiOS.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/rtos/ChibiOS.c b/src/rtos/ChibiOS.c index ef0bb16cf..3817cbc0b 100644 --- a/src/rtos/ChibiOS.c +++ b/src/rtos/ChibiOS.c @@ -69,11 +69,12 @@ struct ChibiOS_chdebug { /** * @brief ChibiOS thread states. */ -static const char * const ChibiOS_thread_states[] = { - "READY", "CURRENT", "SUSPENDED", "WTSEM", "WTMTX", "WTCOND", "SLEEPING", - "WTEXIT", "WTOREVT", "WTANDEVT", "SNDMSGQ", "SNDMSG", "WTMSG", "WTQUEUE", - "FINAL" -}; +#define CH_STATE_NAMES \ + "READY", "CURRENT", "WTSTART", "SUSPENDED", "QUEUED", "WTSEM", "WTMTX", \ + "WTCOND", "SLEEPING", "WTEXIT", "WTOREVT", "WTANDEVT", "SNDMSGQ", \ + "SNDMSG", "WTMSG", "FINAL" + +static const char * const ChibiOS_thread_states[] = {CH_STATE_NAMES}; #define CHIBIOS_NUM_STATES (sizeof(ChibiOS_thread_states)/sizeof(char *))