A copy of the mbed USBDevice with USBSerial library

Dependents:   STM32L0_LoRa Smartage STM32L0_LoRa Turtle_RadioShuttle

Committer:
Helmut Tschemernjak
Date:
Thu Jan 31 20:56:55 2019 +0100
Revision:
7:8a5cc0d9bfa2
Parent:
1:7d1a127a1d2b
fixed compiler warnings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Helmut64 0:a3ea811f80f2 1 /* Copyright (c) 2017 mbed.org, MIT License
Helmut64 0:a3ea811f80f2 2 *
Helmut64 0:a3ea811f80f2 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
Helmut64 0:a3ea811f80f2 4 * and associated documentation files (the "Software"), to deal in the Software without
Helmut64 0:a3ea811f80f2 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
Helmut64 0:a3ea811f80f2 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Helmut64 0:a3ea811f80f2 7 * Software is furnished to do so, subject to the following conditions:
Helmut64 0:a3ea811f80f2 8 *
Helmut64 0:a3ea811f80f2 9 * The above copyright notice and this permission notice shall be included in all copies or
Helmut64 0:a3ea811f80f2 10 * substantial portions of the Software.
Helmut64 0:a3ea811f80f2 11 *
Helmut64 0:a3ea811f80f2 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
Helmut64 0:a3ea811f80f2 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Helmut64 0:a3ea811f80f2 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
Helmut64 0:a3ea811f80f2 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Helmut64 0:a3ea811f80f2 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Helmut64 0:a3ea811f80f2 17 */
Helmut64 0:a3ea811f80f2 18 #ifndef USBHAL_STM32_H
Helmut64 0:a3ea811f80f2 19 #define USBHAL_STM32_H
Helmut64 0:a3ea811f80f2 20
Helmut64 0:a3ea811f80f2 21 #if defined(TARGET_NUCLEO_F207ZG) || \
Helmut64 0:a3ea811f80f2 22 defined(TARGET_NUCLEO_F401RE) || \
Helmut64 0:a3ea811f80f2 23 defined(TARGET_NUCLEO_F411RE) || \
Helmut64 0:a3ea811f80f2 24 defined(TARGET_NUCLEO_F412ZG) || \
Helmut64 0:a3ea811f80f2 25 defined(TARGET_NUCLEO_F413ZH) || \
Helmut64 0:a3ea811f80f2 26 defined(TARGET_NUCLEO_F429ZI) || \
Helmut64 0:a3ea811f80f2 27 defined(TARGET_NUCLEO_F446RE) || \
Helmut64 0:a3ea811f80f2 28 defined(TARGET_NUCLEO_F446ZE) || \
Helmut64 0:a3ea811f80f2 29 defined(TARGET_NUCLEO_F767ZI) || \
Helmut64 0:a3ea811f80f2 30 defined(TARGET_NUCLEO_F746ZG) || \
Helmut64 0:a3ea811f80f2 31 defined(TARGET_DISCO_F407VG) || \
Helmut64 0:a3ea811f80f2 32 defined(TARGET_DISCO_F413ZH) || \
Helmut64 0:a3ea811f80f2 33 defined(TARGET_DISCO_F429ZI) || \
Helmut64 0:a3ea811f80f2 34 defined(TARGET_DISCO_F469NI) || \
Helmut64 0:a3ea811f80f2 35 defined(TARGET_DISCO_F746NG) || \
Helmut64 0:a3ea811f80f2 36 defined(TARGET_DISCO_F769NI) || \
Helmut64 0:a3ea811f80f2 37 defined(TARGET_DISCO_L475VG_IOT01A) || \
Helmut64 0:a3ea811f80f2 38 defined(TARGET_DISCO_L476VG)
Helmut64 0:a3ea811f80f2 39 #include "USBHAL_IP_OTGFSHS.h"
Helmut64 0:a3ea811f80f2 40
Helmut64 0:a3ea811f80f2 41 #elif defined(TARGET_NUCLEO_F103RB) || \
Helmut64 0:a3ea811f80f2 42 defined(TARGET_NUCLEO_F303ZE) || \
Helmut64 0:a3ea811f80f2 43 defined(TARGET_DISCO_L053C8) || \
Helmut Tschemernjak 1:7d1a127a1d2b 44 defined(TARGET_DISCO_L072CZ_LRWAN1) || \
Helmut Tschemernjak 1:7d1a127a1d2b 45 defined(TARGET_STM32L4)
Helmut64 0:a3ea811f80f2 46 #include "USBHAL_IP_DEVICE.h"
Helmut64 0:a3ea811f80f2 47
Helmut64 0:a3ea811f80f2 48 #else
Helmut64 0:a3ea811f80f2 49 #error "Target not supported !"
Helmut64 0:a3ea811f80f2 50
Helmut64 0:a3ea811f80f2 51 #endif
Helmut64 0:a3ea811f80f2 52
Helmut64 0:a3ea811f80f2 53 #endif // USBHAL_STM32_H