diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-06-20 19:07:22 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-06-20 19:07:22 +0000 |
commit | 5474d46af489e67aae17ddcd0c538eedc888fa8e (patch) | |
tree | 1bc28778644e4a632c0c92435bf09e9040a5309d /nuttx/arch/avr/src | |
parent | 6508b4e711faf8d4ebf359fac493e8f2683888b3 (diff) |
Add a USB mass storage example for AVR
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3727 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/avr/src')
-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 1c10faba81..721aaa2546 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 288a8914a8..13c5d37c5a 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). * ************************************************************************************/ |