mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Update to granule allocator; Update to ENC28j60 driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5130 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+30
@@ -42,3 +42,33 @@ config HEAP2_SIZE
|
||||
---help---
|
||||
The size of the second heap region.
|
||||
|
||||
config GRAN
|
||||
bool "Enable Granule Allocator"
|
||||
default n
|
||||
---help---
|
||||
Enable granual allocator support. Allocations will be aligned to the
|
||||
granule size; allocations will be in units of the granule size.
|
||||
Larger granules will give better performance and less overhead but
|
||||
more losses of memory due to alignment and quantization waste.
|
||||
|
||||
NOTE: The current implementation also restricts the maximum
|
||||
allocation size to 32 granaules. That restriction could be
|
||||
eliminated with some additional coding effort.
|
||||
|
||||
config GRAN_SINGLE
|
||||
bool "Single Granule Allocator"
|
||||
default n
|
||||
depends on GRAN
|
||||
---help---
|
||||
Select if there is only one instance of the granule allocator (i.e.,
|
||||
gran_initialize will be called only once. In this case, (1) there
|
||||
are a few optimizations that can can be done and (2) the GRAN_HANDLE
|
||||
is not needed.
|
||||
|
||||
config DEBUG_GRAN
|
||||
bool "Granule Allocator Debug"
|
||||
default n
|
||||
depends on GRAN && DEBUG
|
||||
---help---
|
||||
Just like CONFIG_DEBUG_MM, but only generates ouput from the gran
|
||||
allocation logic.
|
||||
|
||||
Reference in New Issue
Block a user