34 lines
837 B
C
34 lines
837 B
C
/*
|
||
*********************************************************************************************************
|
||
*
|
||
* LCD Driver via EBI
|
||
*
|
||
* IAR Development Kits
|
||
* on the
|
||
*
|
||
* M451
|
||
*
|
||
* Filename : ebi_sram.h
|
||
* Version : V1.00
|
||
* Programmer(s) : Qian Xianghong
|
||
*********************************************************************************************************
|
||
*/
|
||
|
||
#ifndef USER_EBI_SRAM_PRESENT
|
||
#define USER_EBI_SRAM_PRESENT
|
||
|
||
// 初始化引脚
|
||
void SRAM_Init();
|
||
|
||
// 打开设备和允许中断
|
||
void SRAM_Open();
|
||
|
||
// 分配扩展内存
|
||
// 本函数只能在初始代码里调用(如果在任务里调用可能会导致冲突)
|
||
void *SRAM_Alloc(uint32_t size);
|
||
|
||
// 扩展内存大小:64K
|
||
#define SRAM_SIZE 0x10000ul
|
||
|
||
#endif
|