Changeset 331 for EcnlProtoTool/trunk/ntshell/fatfs/ffarch.c
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/fatfs/ffarch.c
r321 r331 39 39 */ 40 40 41 #include "shellif.h" 41 42 #include <kernel.h> 42 43 #include <stdlib.h> … … 50 51 #include "ff.h" 51 52 #include "tlsf.h" 52 #include " ntstdio.h"53 #include "util/ntstdio.h" 53 54 54 55 #define SIO_PORTID 1 … … 58 59 static pool_t sys_pool; 59 60 60 uint32_t __HeapBase; 61 uint32_t __HeapLimit; 61 uint8_t shell_heap[64 * 1024]; 62 62 FATFS RomDisk; 63 63 … … 118 118 void sys_init(void) 119 119 { 120 sys_tlsf = tlsf_create(& __HeapBase);120 sys_tlsf = tlsf_create(&shell_heap); 121 121 if (sys_tlsf == NULL) 122 122 return; 123 123 124 sys_pool = tlsf_add_pool(sys_tlsf, ((uint8_t *)& __HeapBase) + tlsf_size(), ((size_t)&__HeapLimit - (size_t)&__HeapBase) - tlsf_size());124 sys_pool = tlsf_add_pool(sys_tlsf, ((uint8_t *)&shell_heap) + tlsf_size(), sizeof(shell_heap) - tlsf_size()); 125 125 } 126 126
Note:
See TracChangeset
for help on using the changeset viewer.