?? install_codec_heap.c
字號:
#include "install_codec_heap.h"
#pragma default_section(CODE, "sdram0_bank1")
static int heapid = 0;
extern int ldf_heap_space;
extern int ldf_heap_length;
extern void ldf_slow_heap_space;
extern size_t ldf_slow_heap_length;
extern void ldf_fast_heap_space;
/*
extern size_t ldf_fast_heap_length;
extern void ldf_stack_space;
extern size_t ldf_stack_length;
int setup_heap(void *at, size_t bytes)
{
int index;
if ( (index = heap_install(at,bytes,++heapid)) == -1) {
return -1;
}
return index;
}
int install_codec_heaps(void)
{
int temp;
#ifdef ADI_MMSK_EXTRA_INFO // Extra debug information
printf("stack is installed in L1 memory");
printf("---> starting at 0x%x, size %d kbytes\n", &ldf_stack_space, (int)&ldf_stack_length/1024 );
printf("installing fast heap in non-cacheable L1 memory");
#endif
temp = setup_heap( &ldf_slow_heap_space, (size_t)&ldf_slow_heap_length);
#ifdef ADI_MMSK_EXTRA_INFO // Extra debug information
printf("---> index 0, starting at 0x%x, size %d kbytes\n", &ldf_heap_space, (int)&ldf_heap_length/1024 );
printf("installing slow heap in cacheable external memory");
printf("---> index %d, starting at 0x%x, size %d kbytes\n", temp, &ldf_slow_heap_space, (int)&ldf_slow_heap_length/1024);
printf("installing fast heap in non-cacheable L1 memory");
#endif
temp = setup_heap( &ldf_fast_heap_space, (size_t)&ldf_fast_heap_length);
#ifdef ADI_MMSK_EXTRA_INFO // Extra debug information
printf("---> index %d, starting at 0x%x, size %d kbytes\n", temp, &ldf_fast_heap_space, (int)&ldf_fast_heap_length/1024);
#endif
return temp;
}
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -