fix a bug of message queue for XiZi,the message queue id is not deleted in the end from Wang_Weigen

it is OK
This commit is contained in:
xuedongliang
2022-03-16 09:29:01 +08:00
45 changed files with 5854 additions and 2 deletions
@@ -1,3 +1,11 @@
/**
* @file arch_interrupt.h
* @brief support rv32m1_vega interrupt
* @version 1.0
* @author AIIT XUOS Lab
* @date 2022-02-16
*/
#ifndef ARCH_INTERRUPT_H__
#define ARCH_INTERRUPT_H__
@@ -33,7 +33,7 @@ History:
Author: AIIT XUOS Lab
Modification:
*************************************************/
.extern Rv32m1VgeaStart
#define EXCEPTION_STACK_SIZE 0x58
.text
@@ -108,7 +108,7 @@ Reset_Handler:
# Enable global interrupt. */
csrsi mstatus, 8
jal main
jal Rv32m1VgeaStart
ebreak
.size Reset_Handler, . - Reset_Handler
@@ -5,6 +5,26 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file board.c
* @brief relative configure for ok1052-c
* @version 1.0
* @author AIIT XUOS Lab
* @date 2021.11.11
*/
/*************************************************
File name: board.c
Description: support imxrt1052-board init function
Others: take SDK_2.6.1_MIMXRT1052xxxxB for references
History:
1. Date: 2022-01-25
Author: AIIT XUOS Lab
Modification:
1. support imxrt1052-board MPU、clock、memory init
2. support imxrt1052-board uart、semc、sdio driver init
*************************************************/
#include "fsl_semc.h"
/*******************************************************************************
+1
View File
@@ -297,6 +297,7 @@ static x_err_t _DeleteMsgQueue(struct MsgQueue *mq)
KERNEL_FREE(mq->msg_buf);
lock = CriticalAreaLock();
IdRemoveObj(&k_mq_id_manager, mq->id.id);
DoubleLinkListRmNode(&(mq->link));
CriticalAreaUnLock(lock);
KERNEL_FREE(mq);