3352| 2
|
stm32F103xx,内存管理malloc.c文件中设置内存mymemset()函数问题 |
1金钱
最佳答案__align(4) u8 membase[MEM_MAX_SIZE];
u16 memmapbase[MEM_ALLOC_TABLE_SIZE];
const u32 memtblsize = MEM_ALLOC_TABLE_SIZE;
const u32 memblksize = MEM_BLOCK_SIZE;
const u32 memsize = MEM_MAX_SIZE;
内存表是U16型的,内存池是u8型的,memset是要清零的“字节数”
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-22 14:04
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网