NANO130_H2Press/User/ebi_sram.h

34 lines
837 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
*********************************************************************************************************
*
* 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