Preparing for AVR USB driver

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3725 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-06-20 02:35:20 +00:00
parent 0944879e67
commit b1ff704c75
3 changed files with 223 additions and 195 deletions
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -69,8 +69,7 @@ CHIP_CSRCS = at90usb_lowconsole.c at90usb_lowinit.c at90usb_serial.c at90usb_tim
# Configuration-dependent aT90USB files
ifeq ($(CONFIG_AVR_GPIOIRQ),y)
CHIP_CSRCS +=
ifeq ($(CONFIG_AVR_USBDEV),y)
CHIP_CSRCS += at90usb_usbdev.c
endif
+28 -1
View File
@@ -48,7 +48,34 @@
/* Define features for supported chip in the ATMEGA family */
#if 1
#if defined(CONFIG_ARCH_CHIP_AT90USB646)
# define AVR_FLASH_SIZE (64*1024)
# define AVR_SRAM_SIZE (4*1024)
# define AVR_EEPROM_SIZE (2*1024)
# define HAVE_USBDEV 1
# undef HAVE_USBHOST
# undef HAVE_RAMPZ
#elif defined(CONFIG_ARCH_CHIP_AT90USB647)
# define AVR_FLASH_SIZE (64*1024)
# define AVR_SRAM_SIZE (4*1024)
# define AVR_EEPROM_SIZE (2*1024)
# define HAVE_USBDEV 1
# define HAVE_USBHOST 1
# undef HAVE_RAMPZ
#elif defined(CONFIG_ARCH_CHIP_AT90USB1286)
# define AVR_FLASH_SIZE (128*1024)
# define AVR_SRAM_SIZE (8*1024)
# define AVR_EEPROM_SIZE (4*1024)
# define HAVE_USBDEV 1
# undef HAVE_USBHOST
# define HAVE_RAMPZ 1
#elif defined(CONFIG_ARCH_CHIP_AT90USB1287)
# define AVR_FLASH_SIZE (128*1024)
# define AVR_SRAM_SIZE (8*1024)
# define AVR_EEPROM_SIZE (4*1024)
# define HAVE_USBDEV 1
# define HAVE_USBHOST 1
# define HAVE_RAMPZ 1
#else
# error "Unsupported AVR chip"
#endif