根本原因不在这里,我们早期给V5板子做的一代示波器就是用的外部SRAM,是调用了这个函数的。
https://www.armbbs.cn/forum.php?mod=viewthread&tid=3886
[C] 纯文本查看 复制代码 /*********************************************************************
* SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* *
* (c) 1996 - 2011 SEGGER Microcontroller GmbH & Co. KG *
* *
* Internet: [url=http://www.segger.com]www.segger.com[/url] Support: [url=mailto:support@segger.com]support@segger.com[/url] *
* *
**********************************************************************
** emWin V5.12 - Graphical user interface for embedded applications **
All Intellectual Property rights in the Software belongs to SEGGER.
emWin is protected by international copyright laws. Knowledge of the
source code may not be used to write a similar product. This file may
only be used in accordance with the following terms:
The software has been licensed to ARM LIMITED whose registered office
is situated at 110 Fulbourn Road, Cambridge CB1 9NJ, England solely
for the purposes of creating libraries for ARM7, ARM9, Cortex-M
series, and Cortex-R4 processor-based devices, sublicensed and
distributed as part of the MDK-ARM Professional under the terms and
conditions of the End User License supplied with the MDK-ARM
Professional.
Full source code is available at: [url=http://www.segger.com]www.segger.com[/url]
We appreciate your understanding and fairness.
----------------------------------------------------------------------
File : GUIConf.c
Purpose : Display controller initialization
---------------------------END-OF-HEADER------------------------------
*/
#include "GUI.h"
#include "bsp.h"
/*
**********************************************************************
*
* Defines
*
**********************************************************************
*/
/* Define the available number of bytes available for the GUI */
//#define GUI_NUMBYTES (1024*80)
#define GUI_NUMBYTES (1024*1024*2)
/* Define the average block size */
#define GUI_BLOCKSIZE 0x80
/*********************************************************************
*
* GUI_X_Config
*
* Purpose:
* Called during the initialization process in order to set up the
* available memory for the GUI.
**********************************************************************
*/
void GUI_X_Config(void)
{
#if 0
/* 32 bit aligned memory area */
static U32 aMemory[GUI_NUMBYTES / 4];
/* Assign memory to emWin */
GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
#else
static U32 *aMemory;
aMemory = (U32 *)EXT_SRAM_ADDR;
/* Assign memory to emWin */
GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
#endif
}
/*************************** End of file ****************************/
|