mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 14:33:35 +08:00
Correct last set of changes to configuration logic
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4237 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -5,9 +5,12 @@
|
||||
* Author: Gregory Nutt <gnutt@nuttx.orgr>
|
||||
*
|
||||
* References:
|
||||
* - This file derives from the STM32 USB device driver
|
||||
* This file derives from the STM32 USB device driver with modifications
|
||||
* based on additional information from:
|
||||
*
|
||||
* - "USB On-The-Go (OTG)", DS61126E, Microchip Technology Inc., 2009
|
||||
* - Sample code provided with the Sure Electronics PIC32 board.
|
||||
* - Sample code provided with the Sure Electronics PIC32 board
|
||||
* (which seems to have derived from Microchip PICDEM PIC18 code).
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -2010,7 +2013,7 @@ static void pic32mx_ep0transfer(struct pic32mx_usbdev_s *priv, uint16_t status)
|
||||
|
||||
/* Check the current EP0 OUT buffer contains a SETUP packet */
|
||||
|
||||
if (((bdt->status & USB_BDT_PID_MASK) >> USB_BDT_PID_SHIFT) == USB_SETUP_TOKEN)
|
||||
if (((bdt->status & USB_BDT_PID_MASK) >> USB_BDT_PID_SHIFT) == USB_PID_SETUP_TOKEN)
|
||||
{
|
||||
/* Check if the SETUP transaction data went into the priv->ctrl
|
||||
* buffer. If not, then we will need to copy it.
|
||||
|
||||
Reference in New Issue
Block a user