lishuang.xie 4da71189f9 1. update Feature Enhancement#1353 to dev_ck_v2.1
2. update Feature Enhancement#1360 to dev_ck_v2.1
3. add test macro: OSP_DEBUG_TEST
4. TASK_MAX: 64 --> 20 (task num and timer task num)
5. one slot supports max 20 tasks
6. TEST:
   6.1 spu(case0)+arm(case0):   pass
   6.2 spu(case14)+arm(case20): pass
   6.3 spu(case20)+arm(case20): pass
   6.4 spu(case21)+arm(case21): pass
   6.5 spu(case34)+arm(case5):  pass
   6.6 spu(case44)+arm(case5):  pass
2023-12-05 19:55:38 +08:00

22 lines
690 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 int osp_mem_init(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 /* __OSP_MEM_H__ */