Sfoglia il codice sorgente

[update]更正 RT_MEMHEAP_BSET_MODE -> RT_MEMHEAP_BEST_MODE 拼写错误。

liangyingjian 3 anni fa
parent
commit
6da7ee128b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      src/Kconfig
  2. 1 1
      src/memheap.c

+ 1 - 1
src/Kconfig

@@ -324,7 +324,7 @@ menu "Memory Management"
                         Speed priority mode.
                         Speed priority mode.
                         As long as the memory block size meets the requirements, the search ends immediately.
                         As long as the memory block size meets the requirements, the search ends immediately.
 
 
-                config RT_MEMHEAP_BSET_MODE
+                config RT_MEMHEAP_BEST_MODE
                     bool "best mode"
                     bool "best mode"
                     help
                     help
                         Best size first.
                         Best size first.

+ 1 - 1
src/memheap.c

@@ -690,7 +690,7 @@ void rt_memheap_free(void *ptr)
     if (insert_header)
     if (insert_header)
     {
     {
         struct rt_memheap_item *n = heap->free_list->next_free;;
         struct rt_memheap_item *n = heap->free_list->next_free;;
-#if defined(RT_MEMHEAP_BSET_MODE)
+#if defined(RT_MEMHEAP_BEST_MODE)
         rt_size_t blk_size = MEMITEM_SIZE(header_ptr);
         rt_size_t blk_size = MEMITEM_SIZE(header_ptr);
         for (;n != heap->free_list; n = n->next_free)
         for (;n != heap->free_list; n = n->next_free)
         {
         {