LL01/code_app_out/Source/common/queue_entity_cfg.h

75 lines
1.8 KiB
C
Raw Normal View History

2025-04-26 16:03:23 +08:00
/**
******************************************************************************
* @file
* @author
* @version
* @date
* @brief ;
:
1. buf,;
2. .
3. .
* @function List:
******************************************************************************
* @attention
*
*
* <h2><center>&copy; COPYRIGHT 2021 </center></h2>
******************************************************************************
* @History:
* @Author:
* @Data:
* @Version:
*/
/*
*********************************************************************************************************
* MODULE
*********************************************************************************************************
*/
#ifndef __QUEUE_ENTITY_CFG__
#define __QUEUE_ENTITY_CFG__
#include "common_types.h"
#include "Cpu.h"
/*lint -e749 */ /* 枚舉 not referenced*/
/*lint -e750 */ /* 宏 not referenced*/
/*lint -e751 */ /* 變量 not referenced*/
/*lint -e752 */ /* 函數 not referenced*/
/*lint -e754 */ /* 結構體成員 not referenced*/
/*#define QUEUE_MOD_ENABLE 1 */ /*開啟求余運算*/
//#define QUEUE_MOD_ENABLE 1 /*開啟求余運算*/
#define QUEUE_SWITCH_CONTEXT_ENABLE 1u /*隊列操作時開啟上下文切換*/
#define QUEUE_CPU_CRITICAL_ENTER() System_DisableIrqGlobal()
#define QUEUE_CPU_CRITICAL_EXIT() System_EnableIrqGlobal()
/* #define TEST_MODEL_QUEUE 1 */ /*測試消息隊列*/
/*#define TEST_MODEL_QUEUE 1*/ /*測試消息隊列*/
#ifdef TEST_MODEL_QUEUE
void queue_test_task(void);
#endif
#endif /* __QUEUE_EXT_CFG__ */