加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mem_config.h 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
YonghuiGao 提交于 2020-07-24 16:57 . demo_project_v1.0.0
/**
*****************************************************************************************
* Copyright(c) 2017, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file mem_config.h
* @brief Memory Configuration
* @date 2017.6.6
* @version v1.0
* *************************************************************************************
* @attention
* <h2><center>&copy; COPYRIGHT 2017 Realtek Semiconductor Corporation</center></h2>
* *************************************************************************************
*/
/*============================================================================*
* Define to prevent recursive inclusion
*============================================================================*/
#ifndef MEM_CONFIG_H
#define MEM_CONFIG_H
#include "flash_map.h"
#ifdef __cplusplus
extern "C" {
#endif
/*============================================================================*
* Code configuration
*============================================================================*/
/** @brief set app bank to support OTA: 1 is ota bank1, 0 is ota bank0 */
#define APP_BANK 0
/** @brief ram code configuration: 1 is ram code, 0 is flash code */
#define FEATURE_RAM_CODE 0
/** @brief encrypt app or not */
#define FEATURE_ENCRYPTION 0
/*============================================================================*
* data ram layout configuration
*============================================================================*/
/* Data RAM layout: 112K
example:
1) reserved for rom and patch: 31K (fixed)
2) app global + ram code: 35K (adjustable, config APP_GLOBAL_SIZE)
3) Heap ON: 30K (adjustable, config APP_GLOBAL_SIZE)
6) patch ram code: 16K (fixed)
*/
/** @brief data ram size for app global variables and code, could be changed, but (APP_GLOBAL_SIZE + HEAP_DATA_ON_SIZE) must be 65k */
#define APP_GLOBAL_SIZE (40 * 1024)
/** @brief data ram size for heap, could be changed, but (APP_GLOBAL_SIZE + HEAP_DATA_ON_SIZE) must be 65k */
#define HEAP_DATA_ON_SIZE (65 * 1024 - APP_GLOBAL_SIZE)
/** @brief shared cache ram size (adjustable, config SHARE_CACHE_RAM_SIZE: 0/8KB/16KB) */
#define SHARE_CACHE_RAM_SIZE (0 * 1024)
#ifdef __cplusplus
}
#endif
/** @} */ /* End of group MEM_CONFIG */
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化