lishuang.xie 7e2437c0d6 1. New Feature#910
2. Feature Enhancement#914
3. update from V2.0, by msg_transfer synch
4. add osp_send_msg/osp_var_init by synch
2023-07-22 17:27:21 +08:00

24 lines
747 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.

#ifndef __OSP_MEM_H__
#define __OSP_MEM_H__
typedef struct tag_osp_im_mem_reg{
uint32_t phy_addr;
uint32_t len;
}osp_im_mem_reg;
extern char *osp_malloc(int size);
extern void osp_free(char *p);
extern void osp_heapmem_test(void);
extern int osp_mem_init(void);
//extern uint32_t osp_get_ddr_mem(void);
/*
实际IM的地址空间0x0000 0000 -- 0x0003 FFFF共256K
预留前128K则平台实际使用的IM地址空间0x0002 0000 -- 0x0003 FFFF共128K
*/
//#define OSP_MEM_POOL_START (0x00020000) /* 平台内存管理的空间在IM内存空间 */
#define OSP_MEM_POOL_SIZE (0x00009400) /* 平台可分配的IM内存空间大小[32K(任务栈)+5K(配置文件4K+预留1K)=37K] */
#endif