diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-20 19:07:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-20 19:07:22 +0000 |
commit | e23fb305e00f5c2cca3d5eaa898c556030e92076 (patch) | |
tree | 1bc28778644e4a632c0c92435bf09e9040a5309d /nuttx/arch | |
parent | eae3888f7401c8085488eed1c4c8c843a4a41c8f (diff) | |
download | px4-nuttx-e23fb305e00f5c2cca3d5eaa898c556030e92076.tar.gz px4-nuttx-e23fb305e00f5c2cca3d5eaa898c556030e92076.tar.bz2 px4-nuttx-e23fb305e00f5c2cca3d5eaa898c556030e92076.zip |
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
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/avr/src/at90usb/at90usb_usbdev.c | 4 | ||||
-rw-r--r-- | nuttx/arch/avr/src/avr/avr_internal.h | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/nuttx/arch/avr/src/at90usb/at90usb_usbdev.c b/nuttx/arch/avr/src/at90usb/at90usb_usbdev.c index 1c10faba8..721aaa254 100644 --- a/nuttx/arch/avr/src/at90usb/at90usb_usbdev.c +++ b/nuttx/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/nuttx/arch/avr/src/avr/avr_internal.h b/nuttx/arch/avr/src/avr/avr_internal.h index 288a8914a..13c5d37c5 100644 --- a/nuttx/arch/avr/src/avr/avr_internal.h +++ b/nuttx/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). * ************************************************************************************/ |