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:
patacongo 2012-09-11 20:33:58 +00:00
parent f71398870b
commit 2aa98adf8a
3 changed files with 25 additions and 86 deletions

View File

@ -270,8 +270,6 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_DEBUG_GRAPHICS - enable NX graphics debug output CONFIG_DEBUG_GRAPHICS - enable NX graphics debug output
(disabled by default) (disabled by default)
CONFIG_ARCH_LOWPUTC - architecture supports low-level, boot
time console output
CONFIG_MM_REGIONS - If the architecture includes multiple CONFIG_MM_REGIONS - If the architecture includes multiple
regions of memory to allocate from, this specifies the regions of memory to allocate from, this specifies the
number of memory regions that the memory manager must number of memory regions that the memory manager must
@ -285,6 +283,28 @@ defconfig -- This is a configuration file similar to the Linux
of size less than or equal to 64Kb. In this case, CONFIG_MM_SMALL of size less than or equal to 64Kb. In this case, CONFIG_MM_SMALL
can be defined so that those MCUs will also benefit from the can be defined so that those MCUs will also benefit from the
smaller, 16-bit-based allocation overhead. smaller, 16-bit-based allocation overhead.
CONFIG_HEAP2_BASE and CONFIG_HEAP2_SIZE
Some architectures use these settings to specify the size of
a second heap region.
CONFIG_GRAN
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
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_GRAM
Just like CONFIG_DEBUG_MM, but only generates ouput from the gran
allocation logic.
CONFIG_ARCH_LOWPUTC - architecture supports low-level, boot
time console output
CONFIG_MSEC_PER_TICK - The default system timer is 100Hz CONFIG_MSEC_PER_TICK - The default system timer is 100Hz
or MSEC_PER_TICK=10. This setting may be defined to or MSEC_PER_TICK=10. This setting may be defined to
inform NuttX that the processor hardware is providing inform NuttX that the processor hardware is providing

View File

@ -481,6 +481,7 @@ CONFIG_FAT_MAXFNAME=32
# #
# CONFIG_MM_SMALL is not set # CONFIG_MM_SMALL is not set
CONFIG_MM_REGIONS=1 CONFIG_MM_REGIONS=1
# CONFIG_GRAN is not set
# #
# Library Routines # Library Routines

View File

@ -304,66 +304,22 @@ CONFIG_DEV_NULL=y
# CONFIG_DEV_ZERO is not set # CONFIG_DEV_ZERO is not set
# CONFIG_LOOP is not set # CONFIG_LOOP is not set
# CONFIG_RAMDISK is not set # CONFIG_RAMDISK is not set
#
# CAN Driver Options
#
# CONFIG_CAN is not set # CONFIG_CAN is not set
#
# PWM Driver Options
#
# CONFIG_PWM is not set # CONFIG_PWM is not set
#
# I2C Driver Options
#
# CONFIG_I2C is not set # CONFIG_I2C is not set
#
# SPI Driver Options
#
CONFIG_SPI=y CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set # CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y CONFIG_SPI_EXCHANGE=y
CONFIG_SPI_CMDDATA=y CONFIG_SPI_CMDDATA=y
#
# RTC Driver Options
#
CONFIG_RTC=y CONFIG_RTC=y
# CONFIG_RTC_DATETIME is not set # CONFIG_RTC_DATETIME is not set
# CONFIG_RTC_HIRES is not set # CONFIG_RTC_HIRES is not set
# CONFIG_RTC_ALARM is not set # CONFIG_RTC_ALARM is not set
#
# Watchdog Driver Options
#
# CONFIG_WATCHDOG is not set # CONFIG_WATCHDOG is not set
#
# Analog Driver Options
#
# CONFIG_ANALOG is not set # CONFIG_ANALOG is not set
#
# Block-to-Character Driver Support
#
# CONFIG_BCH is not set # CONFIG_BCH is not set
#
# Input device Driver Options
#
# CONFIG_INPUT is not set # CONFIG_INPUT is not set
#
# LCD Driver Options
#
# CONFIG_LCD is not set # CONFIG_LCD is not set
#
# MMCSD Driver Options
#
CONFIG_MMCSD=y CONFIG_MMCSD=y
CONFIG_MMCSD_NSLOTS=1 CONFIG_MMCSD_NSLOTS=1
# CONFIG_MMCSD_READONLY is not set # CONFIG_MMCSD_READONLY is not set
@ -373,42 +329,14 @@ CONFIG_MMCSD_HAVECARDDETECT=y
CONFIG_MMCSD_SPI=y CONFIG_MMCSD_SPI=y
CONFIG_MMCSD_SPICLOCK=12500000 CONFIG_MMCSD_SPICLOCK=12500000
# CONFIG_MMCSD_SDIO is not set # CONFIG_MMCSD_SDIO is not set
#
# I2C Driver Options
#
# CONFIG_MTD is not set # CONFIG_MTD is not set
#
# Network Device Driver Options
#
# CONFIG_NETDEVICES is not set # CONFIG_NETDEVICES is not set
# CONFIG_NET_SLIP is not set # CONFIG_NET_SLIP is not set
#
# Pipe Options
#
# CONFIG_PIPES is not set # CONFIG_PIPES is not set
#
# Power Management Options
#
# CONFIG_PM is not set # CONFIG_PM is not set
# CONFIG_POWER is not set # CONFIG_POWER is not set
#
# Sensor Driver Options
#
# CONFIG_SENSORS is not set # CONFIG_SENSORS is not set
#
# Osmocom-bb Sercomm Driver Options
#
# CONFIG_SERCOMM_CONSOLE is not set # CONFIG_SERCOMM_CONSOLE is not set
#
# Serial Driver Options
#
CONFIG_SERIAL=y CONFIG_SERIAL=y
# CONFIG_LOWLEVEL_CONSOLE is not set # CONFIG_LOWLEVEL_CONSOLE is not set
# CONFIG_16550_UART is not set # CONFIG_16550_UART is not set
@ -427,20 +355,8 @@ CONFIG_USART2_BAUD=115200
CONFIG_USART2_BITS=8 CONFIG_USART2_BITS=8
CONFIG_USART2_PARITY=0 CONFIG_USART2_PARITY=0
CONFIG_USART2_2STOP=0 CONFIG_USART2_2STOP=0
#
# USB Device Driver Options
#
# CONFIG_USBDEV is not set # CONFIG_USBDEV is not set
#
# USB Host Driver Options
#
# CONFIG_USBHOST is not set # CONFIG_USBHOST is not set
#
# Wireless Device Driver Options
#
# CONFIG_WIRELESS is not set # CONFIG_WIRELESS is not set
# #
@ -496,6 +412,7 @@ CONFIG_FAT_LCNAMES=y
CONFIG_FAT_LFN=y CONFIG_FAT_LFN=y
CONFIG_FAT_MAXFNAME=32 CONFIG_FAT_MAXFNAME=32
# CONFIG_FS_FATTIME is not set # CONFIG_FS_FATTIME is not set
# CONFIG_FAT_DMAMEMORY is not set
# CONFIG_FS_RAMMAP is not set # CONFIG_FS_RAMMAP is not set
# CONFIG_NFS is not set # CONFIG_NFS is not set
# CONFIG_FS_NXFFS is not set # CONFIG_FS_NXFFS is not set
@ -511,6 +428,7 @@ CONFIG_FAT_MAXFNAME=32
# #
# CONFIG_MM_SMALL is not set # CONFIG_MM_SMALL is not set
CONFIG_MM_REGIONS=1 CONFIG_MM_REGIONS=1
# CONFIG_GRAN is not set
# #
# Library Routines # Library Routines