|
|
@ -551,32 +551,33 @@ EXTERN void pic32mx_dmadump(DMA_HANDLE handle, const struct pic32mx_dmaregs_s *r |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
/****************************************************************************
|
|
|
|
* Name: pic32mx_usbpullup |
|
|
|
* Name: pic32mx_usbpullup |
|
|
|
* |
|
|
|
* |
|
|
|
* Description: |
|
|
|
* Description: |
|
|
|
* If USB is supported and the board supports a pullup via GPIO (for USB software |
|
|
|
* If USB is supported and the board supports a pullup via GPIO (for USB |
|
|
|
* connect and disconnect), then the board software must provide stm32_pullup. |
|
|
|
* software connect and disconnect), then the board software must provide |
|
|
|
* See include/nuttx/usb/usbdev.h for additional description of this method. |
|
|
|
* stm32_pullup. See include/nuttx/usb/usbdev.h for additional description |
|
|
|
* Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be |
|
|
|
* of this method. Alternatively, if no pull-up GPIO the following EXTERN |
|
|
|
* NULL. |
|
|
|
* can be redefined to be NULL. |
|
|
|
* |
|
|
|
* |
|
|
|
************************************************************************************/ |
|
|
|
****************************************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_PIC32MX_USBDEV |
|
|
|
#ifdef CONFIG_PIC32MX_USBDEV |
|
|
|
|
|
|
|
struct usbdev_s; |
|
|
|
EXTERN int pic32mx_usbpullup(FAR struct usbdev_s *dev, bool enable); |
|
|
|
EXTERN int pic32mx_usbpullup(FAR struct usbdev_s *dev, bool enable); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
/****************************************************************************
|
|
|
|
* Name: pic32mx_usbsuspend |
|
|
|
* Name: pic32mx_usbsuspend |
|
|
|
* |
|
|
|
* |
|
|
|
* Description: |
|
|
|
* Description: |
|
|
|
* Board logic must provide the stm32_usbsuspend logic if the USBDEV driver is |
|
|
|
* Board logic must provide the stm32_usbsuspend logic if the USBDEV driver |
|
|
|
* used. This function is called whenever the USB enters or leaves suspend mode. |
|
|
|
* is used. This function is called whenever the USB enters or leaves |
|
|
|
* This is an opportunity for the board logic to shutdown clocks, power, etc. |
|
|
|
* suspend mode. This is an opportunity for the board logic to shutdown |
|
|
|
* while the USB is suspended. |
|
|
|
* clocks, power, etc. while the USB is suspended. |
|
|
|
* |
|
|
|
* |
|
|
|
************************************************************************************/ |
|
|
|
****************************************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_PIC32MX_USBDEV |
|
|
|
#ifdef CONFIG_PIC32MX_USBDEV |
|
|
|
EXTERN void pic32mx_usbsuspend(FAR struct usbdev_s *dev, bool resume); |
|
|
|
EXTERN void pic32mx_usbsuspend(FAR struct usbdev_s *dev, bool resume); |
|
|
|