From 4a39202e8bcfbd7dc2be7d0929fc6a32b0ce26ab Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 20 Jun 2011 19:07:22 +0000 Subject: [PATCH] Add a USB mass storage example for AVR git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3727 42af7a65-404d-4744-a932-0658087f49c3 --- arch/avr/src/at90usb/at90usb_usbdev.c | 4 ++-- arch/avr/src/avr/avr_internal.h | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/avr/src/at90usb/at90usb_usbdev.c b/arch/avr/src/at90usb/at90usb_usbdev.c index 1c10faba81b..721aaa25461 100644 --- a/arch/avr/src/at90usb/at90usb_usbdev.c +++ b/arch/avr/src/at90usb/at90usb_usbdev.c @@ -2303,7 +2303,7 @@ static void avr_epfreereq(FAR struct usbdev_ep_s *ep, static void *avr_epallocbuffer(FAR struct usbdev_ep_s *ep, unsigned bytes) { usbtrace(TRACE_EPALLOCBUFFER, privep->ep.eplog); -return malloc(bytes)} + return malloc(bytes)} #endif /******************************************************************************* @@ -2314,7 +2314,7 @@ return malloc(bytes)} * *******************************************************************************/ -#ifdef CONFIG_AVR_USBDEV_DMA +#ifdef CONFIG_ARCH_USBDEV_DMA static void avr_epfreebuffer(FAR struct usbdev_ep_s *ep, FAR void *buf) { usbtrace(TRACE_EPFREEBUFFER, privep->ep.eplog); diff --git a/arch/avr/src/avr/avr_internal.h b/arch/avr/src/avr/avr_internal.h index 288a8914a8c..13c5d37c5a4 100644 --- a/arch/avr/src/avr/avr_internal.h +++ b/arch/avr/src/avr/avr_internal.h @@ -152,12 +152,11 @@ extern uint8_t *up_doirq(uint8_t irq, uint8_t *regs); * avr_spicmddata() function in your board-specific logic. This functions will * perform cmd/data selection operations using GPIOs in the way your board is * configured. - * 3. Add a call to up_spiinitialize() in your low level application + * 3. Add a call to at90usb_spiinitialize() in your low level application * initialization logic * 4. The handle returned by up_spiinitialize() may then be used to bind the - * SPI driver to higher level logic (e.g., calling - * mmcsd_spislotinitialize(), for example, will bind the SPI driver to - * the SPI MMC/SD driver). + * SPI driver to higher level logic (e.g., calling mmcsd_spislotinitialize(), + * for example, will bind the SPI driver to the SPI MMC/SD driver). * ************************************************************************************/