Added TARGET_DISCO_F469NI in USBHOST\USBHost\TARGET_STM\USBHALHost_STM_TARGET.h

Dependents:   DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory

Fork of USBHOST by ST

Committer:
kenjiArai
Date:
Sat Jan 04 23:30:59 2020 +0000
Revision:
8:3e7a33f81048
Parent:
1:ab240722d7ef
updated for STM32F4xx

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 1 /* mbed USBHost Library
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 2 * Copyright (c) 2006-2013 ARM Limited
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 3 *
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 4 * Licensed under the Apache License, Version 2.0 (the "License");
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 5 * you may not use this file except in compliance with the License.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 6 * You may obtain a copy of the License at
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 7 *
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 8 * http://www.apache.org/licenses/LICENSE-2.0
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 9 *
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 10 * Unless required by applicable law or agreed to in writing, software
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 11 * distributed under the License is distributed on an "AS IS" BASIS,
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 13 * See the License for the specific language governing permissions and
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 14 * limitations under the License.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 15 */
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 16
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 17 #ifndef USB_DEBUG_H
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 18 #define USB_DEBUG_H
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 19
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 20 //Debug is disabled by default
kenjiArai 8:3e7a33f81048 21 #define DEBUG 0 /*INFO,ERR,WARN*/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 22 #define DEBUG_TRANSFER 0
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 23 #define DEBUG_EP_STATE 0
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 24 #define DEBUG_EVENT 0
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 25
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 26 #if (DEBUG > 3)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 27 #define USB_DBG(x, ...) std::printf("[USB_DBG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 28 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 29 #define USB_DBG(x, ...)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 30 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 31
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 32 #if (DEBUG > 2)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 33 #define USB_INFO(x, ...) std::printf("[USB_INFO: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 34 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 35 #define USB_INFO(x, ...)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 36 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 37
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 38 #if (DEBUG > 1)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 39 #define USB_WARN(x, ...) std::printf("[USB_WARNING: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 40 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 41 #define USB_WARN(x, ...)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 42 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 43
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 44 #if (DEBUG > 0)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 45 #define USB_ERR(x, ...) std::printf("[USB_ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 46 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 47 #define USB_ERR(x, ...)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 48 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 49
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 50 #if (DEBUG_TRANSFER)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 51 #define USB_DBG_TRANSFER(x, ...) std::printf("[USB_TRANSFER: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 52 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 53 #define USB_DBG_TRANSFER(x, ...)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 54 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 55
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 56 #if (DEBUG_EVENT)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 57 #define USB_DBG_EVENT(x, ...) std::printf("[USB_EVENT: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 58 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 59 #define USB_DBG_EVENT(x, ...)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 60 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 61
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 62
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 63 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 64
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 65
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 66