mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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:
+193
-191
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user