MCU driver/HAL for the Picocell Gateway concentrator board. The firmware implements either a USB CDC protocol or a UART protocol to bridge commands coming from host to the SX1308 SPI interface.
src/usb_cdc/Inc/usb_device.h@0:c76361bd82e8, 2018-04-11 (annotated)
- Committer:
- dgabino
- Date:
- Wed Apr 11 14:42:47 2018 +0000
- Revision:
- 0:c76361bd82e8
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dgabino | 0:c76361bd82e8 | 1 | /** |
dgabino | 0:c76361bd82e8 | 2 | ****************************************************************************** |
dgabino | 0:c76361bd82e8 | 3 | * @file : USB_DEVICE |
dgabino | 0:c76361bd82e8 | 4 | * @version : v1.0_Cube |
dgabino | 0:c76361bd82e8 | 5 | * @brief : Header for usb_device file. |
dgabino | 0:c76361bd82e8 | 6 | ****************************************************************************** |
dgabino | 0:c76361bd82e8 | 7 | * COPYRIGHT(c) 2016 STMicroelectronics |
dgabino | 0:c76361bd82e8 | 8 | * |
dgabino | 0:c76361bd82e8 | 9 | * Redistribution and use in source and binary forms, with or without modification, |
dgabino | 0:c76361bd82e8 | 10 | * are permitted provided that the following conditions are met: |
dgabino | 0:c76361bd82e8 | 11 | * 1. Redistributions of source code must retain the above copyright notice, |
dgabino | 0:c76361bd82e8 | 12 | * this list of conditions and the following disclaimer. |
dgabino | 0:c76361bd82e8 | 13 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
dgabino | 0:c76361bd82e8 | 14 | * this list of conditions and the following disclaimer in the documentation |
dgabino | 0:c76361bd82e8 | 15 | * and/or other materials provided with the distribution. |
dgabino | 0:c76361bd82e8 | 16 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
dgabino | 0:c76361bd82e8 | 17 | * may be used to endorse or promote products derived from this software |
dgabino | 0:c76361bd82e8 | 18 | * without specific prior written permission. |
dgabino | 0:c76361bd82e8 | 19 | * |
dgabino | 0:c76361bd82e8 | 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
dgabino | 0:c76361bd82e8 | 21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
dgabino | 0:c76361bd82e8 | 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
dgabino | 0:c76361bd82e8 | 23 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
dgabino | 0:c76361bd82e8 | 24 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
dgabino | 0:c76361bd82e8 | 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
dgabino | 0:c76361bd82e8 | 26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
dgabino | 0:c76361bd82e8 | 27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
dgabino | 0:c76361bd82e8 | 28 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
dgabino | 0:c76361bd82e8 | 29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
dgabino | 0:c76361bd82e8 | 30 | * |
dgabino | 0:c76361bd82e8 | 31 | ****************************************************************************** |
dgabino | 0:c76361bd82e8 | 32 | */ |
dgabino | 0:c76361bd82e8 | 33 | /* Define to prevent recursive inclusion -------------------------------------*/ |
dgabino | 0:c76361bd82e8 | 34 | #ifndef __usb_device_H |
dgabino | 0:c76361bd82e8 | 35 | #define __usb_device_H |
dgabino | 0:c76361bd82e8 | 36 | #ifdef __cplusplus |
dgabino | 0:c76361bd82e8 | 37 | extern "C" { |
dgabino | 0:c76361bd82e8 | 38 | #endif |
dgabino | 0:c76361bd82e8 | 39 | |
dgabino | 0:c76361bd82e8 | 40 | /* Includes ------------------------------------------------------------------*/ |
dgabino | 0:c76361bd82e8 | 41 | #include "stm32f4xx.h" |
dgabino | 0:c76361bd82e8 | 42 | #include "stm32f4xx_hal.h" |
dgabino | 0:c76361bd82e8 | 43 | #include "usbd_def.h" |
dgabino | 0:c76361bd82e8 | 44 | |
dgabino | 0:c76361bd82e8 | 45 | extern USBD_HandleTypeDef hUsbDeviceFS; |
dgabino | 0:c76361bd82e8 | 46 | |
dgabino | 0:c76361bd82e8 | 47 | /* USB_Device init function */ |
dgabino | 0:c76361bd82e8 | 48 | void MX_USB_DEVICE_Init(void); |
dgabino | 0:c76361bd82e8 | 49 | |
dgabino | 0:c76361bd82e8 | 50 | #ifdef __cplusplus |
dgabino | 0:c76361bd82e8 | 51 | } |
dgabino | 0:c76361bd82e8 | 52 | #endif |
dgabino | 0:c76361bd82e8 | 53 | #endif /*__usb_device_H */ |
dgabino | 0:c76361bd82e8 | 54 | |
dgabino | 0:c76361bd82e8 | 55 | /** |
dgabino | 0:c76361bd82e8 | 56 | * @} |
dgabino | 0:c76361bd82e8 | 57 | */ |
dgabino | 0:c76361bd82e8 | 58 | |
dgabino | 0:c76361bd82e8 | 59 | /** |
dgabino | 0:c76361bd82e8 | 60 | * @} |
dgabino | 0:c76361bd82e8 | 61 | */ |
dgabino | 0:c76361bd82e8 | 62 | |
dgabino | 0:c76361bd82e8 | 63 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |