修复 riscv64 messagequeue_tc 报错

This commit is contained in:
zhkag 2022-11-29 02:02:40 +00:00 committed by Man, Jianting (Meco)
parent 2bbbd4b3fd
commit cf221f45d7
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
#define MAX_MSGS 5 #define MAX_MSGS 5
static struct rt_messagequeue static_mq; static struct rt_messagequeue static_mq;
static rt_uint8_t mq_buf[(MSG_SIZE + 4) * MAX_MSGS]; static rt_uint8_t mq_buf[(MSG_SIZE + (rt_uint8_t)sizeof(rt_ubase_t)) * MAX_MSGS];
static struct rt_thread mq_send_thread; static struct rt_thread mq_send_thread;
static struct rt_thread mq_recv_thread; static struct rt_thread mq_recv_thread;