this repository aim to make the official ST DISCO F746NG demo from STM32Cube_FW_F7_V1.2.0 working on mbed.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
Config/usbh_conf.h@0:c00e6c923941, 2015-11-02 (annotated)
- Committer:
- NirT
- Date:
- Mon Nov 02 23:38:08 2015 +0000
- Revision:
- 0:c00e6c923941
Error: Incomplete type is not allowed in "patch/LwIP/src/include/lwip/dhcp.h", Line: 83, Col: 4; ; and more like this.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NirT | 0:c00e6c923941 | 1 | /** |
NirT | 0:c00e6c923941 | 2 | ****************************************************************************** |
NirT | 0:c00e6c923941 | 3 | * @file usbh_conf.h |
NirT | 0:c00e6c923941 | 4 | * @author MCD Application Team |
NirT | 0:c00e6c923941 | 5 | * @version V1.1.0 |
NirT | 0:c00e6c923941 | 6 | * @date 21-September-2015 |
NirT | 0:c00e6c923941 | 7 | * @brief General low level driver configuration |
NirT | 0:c00e6c923941 | 8 | ****************************************************************************** |
NirT | 0:c00e6c923941 | 9 | * @attention |
NirT | 0:c00e6c923941 | 10 | * |
NirT | 0:c00e6c923941 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
NirT | 0:c00e6c923941 | 12 | * |
NirT | 0:c00e6c923941 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
NirT | 0:c00e6c923941 | 14 | * are permitted provided that the following conditions are met: |
NirT | 0:c00e6c923941 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
NirT | 0:c00e6c923941 | 16 | * this list of conditions and the following disclaimer. |
NirT | 0:c00e6c923941 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
NirT | 0:c00e6c923941 | 18 | * this list of conditions and the following disclaimer in the documentation |
NirT | 0:c00e6c923941 | 19 | * and/or other materials provided with the distribution. |
NirT | 0:c00e6c923941 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
NirT | 0:c00e6c923941 | 21 | * may be used to endorse or promote products derived from this software |
NirT | 0:c00e6c923941 | 22 | * without specific prior written permission. |
NirT | 0:c00e6c923941 | 23 | * |
NirT | 0:c00e6c923941 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
NirT | 0:c00e6c923941 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
NirT | 0:c00e6c923941 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
NirT | 0:c00e6c923941 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
NirT | 0:c00e6c923941 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
NirT | 0:c00e6c923941 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
NirT | 0:c00e6c923941 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
NirT | 0:c00e6c923941 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
NirT | 0:c00e6c923941 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
NirT | 0:c00e6c923941 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
NirT | 0:c00e6c923941 | 34 | * |
NirT | 0:c00e6c923941 | 35 | ****************************************************************************** |
NirT | 0:c00e6c923941 | 36 | */ |
NirT | 0:c00e6c923941 | 37 | |
NirT | 0:c00e6c923941 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
NirT | 0:c00e6c923941 | 39 | #ifndef __USBH_CONF__H |
NirT | 0:c00e6c923941 | 40 | #define __USBH_CONF__H |
NirT | 0:c00e6c923941 | 41 | |
NirT | 0:c00e6c923941 | 42 | #include "stm32f7xx.h" |
NirT | 0:c00e6c923941 | 43 | #include <stdio.h> |
NirT | 0:c00e6c923941 | 44 | #include <stdlib.h> |
NirT | 0:c00e6c923941 | 45 | #include <string.h> |
NirT | 0:c00e6c923941 | 46 | |
NirT | 0:c00e6c923941 | 47 | /* Includes ------------------------------------------------------------------*/ |
NirT | 0:c00e6c923941 | 48 | |
NirT | 0:c00e6c923941 | 49 | /** @addtogroup USBH_OTG_DRIVER |
NirT | 0:c00e6c923941 | 50 | * @{ |
NirT | 0:c00e6c923941 | 51 | */ |
NirT | 0:c00e6c923941 | 52 | |
NirT | 0:c00e6c923941 | 53 | /** @defgroup USBH_CONF |
NirT | 0:c00e6c923941 | 54 | * @brief usb otg low level driver configuration file |
NirT | 0:c00e6c923941 | 55 | * @{ |
NirT | 0:c00e6c923941 | 56 | */ |
NirT | 0:c00e6c923941 | 57 | |
NirT | 0:c00e6c923941 | 58 | /** @defgroup USBH_CONF_Exported_Defines |
NirT | 0:c00e6c923941 | 59 | * @{ |
NirT | 0:c00e6c923941 | 60 | */ |
NirT | 0:c00e6c923941 | 61 | |
NirT | 0:c00e6c923941 | 62 | #define USBH_MAX_NUM_ENDPOINTS 2 |
NirT | 0:c00e6c923941 | 63 | #define USBH_MAX_NUM_INTERFACES 2 |
NirT | 0:c00e6c923941 | 64 | #define USBH_MAX_NUM_CONFIGURATION 1 |
NirT | 0:c00e6c923941 | 65 | #define USBH_MAX_NUM_SUPPORTED_CLASS 1 |
NirT | 0:c00e6c923941 | 66 | #define USBH_KEEP_CFG_DESCRIPTOR 0 |
NirT | 0:c00e6c923941 | 67 | #define USBH_MAX_SIZE_CONFIGURATION 0x200 |
NirT | 0:c00e6c923941 | 68 | #define USBH_MAX_DATA_BUFFER 0x200 |
NirT | 0:c00e6c923941 | 69 | #define USBH_DEBUG_LEVEL 0 |
NirT | 0:c00e6c923941 | 70 | #define USBH_USE_OS 1 |
NirT | 0:c00e6c923941 | 71 | |
NirT | 0:c00e6c923941 | 72 | /** @defgroup USBH_Exported_Macros |
NirT | 0:c00e6c923941 | 73 | * @{ |
NirT | 0:c00e6c923941 | 74 | */ |
NirT | 0:c00e6c923941 | 75 | #if (USBH_USE_OS == 1) |
NirT | 0:c00e6c923941 | 76 | #include "cmsis_os.h" |
NirT | 0:c00e6c923941 | 77 | #define USBH_PROCESS_PRIO osPriorityNormal |
NirT | 0:c00e6c923941 | 78 | #define USBH_PROCESS_STACK_SIZE (128) |
NirT | 0:c00e6c923941 | 79 | #endif |
NirT | 0:c00e6c923941 | 80 | |
NirT | 0:c00e6c923941 | 81 | /* Memory management macros */ |
NirT | 0:c00e6c923941 | 82 | #define USBH_malloc malloc |
NirT | 0:c00e6c923941 | 83 | #define USBH_free free |
NirT | 0:c00e6c923941 | 84 | #define USBH_memset memset |
NirT | 0:c00e6c923941 | 85 | #define USBH_memcpy memcpy |
NirT | 0:c00e6c923941 | 86 | |
NirT | 0:c00e6c923941 | 87 | /* DEBUG macros */ |
NirT | 0:c00e6c923941 | 88 | |
NirT | 0:c00e6c923941 | 89 | |
NirT | 0:c00e6c923941 | 90 | #if (USBH_DEBUG_LEVEL > 0) |
NirT | 0:c00e6c923941 | 91 | #define USBH_UsrLog(...) printf(__VA_ARGS__);\ |
NirT | 0:c00e6c923941 | 92 | printf("\n"); |
NirT | 0:c00e6c923941 | 93 | #else |
NirT | 0:c00e6c923941 | 94 | #define USBH_UsrLog(...) |
NirT | 0:c00e6c923941 | 95 | #endif |
NirT | 0:c00e6c923941 | 96 | |
NirT | 0:c00e6c923941 | 97 | |
NirT | 0:c00e6c923941 | 98 | #if (USBH_DEBUG_LEVEL > 1) |
NirT | 0:c00e6c923941 | 99 | |
NirT | 0:c00e6c923941 | 100 | #define USBH_ErrLog(...) printf("ERROR: ") ;\ |
NirT | 0:c00e6c923941 | 101 | printf(__VA_ARGS__);\ |
NirT | 0:c00e6c923941 | 102 | printf("\n"); |
NirT | 0:c00e6c923941 | 103 | #else |
NirT | 0:c00e6c923941 | 104 | #define USBH_ErrLog(...) |
NirT | 0:c00e6c923941 | 105 | #endif |
NirT | 0:c00e6c923941 | 106 | |
NirT | 0:c00e6c923941 | 107 | |
NirT | 0:c00e6c923941 | 108 | #if (USBH_DEBUG_LEVEL > 2) |
NirT | 0:c00e6c923941 | 109 | #define USBH_DbgLog(...) printf("DEBUG : ") ;\ |
NirT | 0:c00e6c923941 | 110 | printf(__VA_ARGS__);\ |
NirT | 0:c00e6c923941 | 111 | printf("\n"); |
NirT | 0:c00e6c923941 | 112 | #else |
NirT | 0:c00e6c923941 | 113 | #define USBH_DbgLog(...) |
NirT | 0:c00e6c923941 | 114 | #endif |
NirT | 0:c00e6c923941 | 115 | |
NirT | 0:c00e6c923941 | 116 | /** |
NirT | 0:c00e6c923941 | 117 | * @} |
NirT | 0:c00e6c923941 | 118 | */ |
NirT | 0:c00e6c923941 | 119 | |
NirT | 0:c00e6c923941 | 120 | |
NirT | 0:c00e6c923941 | 121 | |
NirT | 0:c00e6c923941 | 122 | |
NirT | 0:c00e6c923941 | 123 | |
NirT | 0:c00e6c923941 | 124 | |
NirT | 0:c00e6c923941 | 125 | /** |
NirT | 0:c00e6c923941 | 126 | * @} |
NirT | 0:c00e6c923941 | 127 | */ |
NirT | 0:c00e6c923941 | 128 | |
NirT | 0:c00e6c923941 | 129 | |
NirT | 0:c00e6c923941 | 130 | /** @defgroup USBH_CONF_Exported_Types |
NirT | 0:c00e6c923941 | 131 | * @{ |
NirT | 0:c00e6c923941 | 132 | */ |
NirT | 0:c00e6c923941 | 133 | /** |
NirT | 0:c00e6c923941 | 134 | * @} |
NirT | 0:c00e6c923941 | 135 | */ |
NirT | 0:c00e6c923941 | 136 | |
NirT | 0:c00e6c923941 | 137 | |
NirT | 0:c00e6c923941 | 138 | /** @defgroup USBH_CONF_Exported_Macros |
NirT | 0:c00e6c923941 | 139 | * @{ |
NirT | 0:c00e6c923941 | 140 | */ |
NirT | 0:c00e6c923941 | 141 | /** |
NirT | 0:c00e6c923941 | 142 | * @} |
NirT | 0:c00e6c923941 | 143 | */ |
NirT | 0:c00e6c923941 | 144 | |
NirT | 0:c00e6c923941 | 145 | /** @defgroup USBH_CONF_Exported_Variables |
NirT | 0:c00e6c923941 | 146 | * @{ |
NirT | 0:c00e6c923941 | 147 | */ |
NirT | 0:c00e6c923941 | 148 | /** |
NirT | 0:c00e6c923941 | 149 | * @} |
NirT | 0:c00e6c923941 | 150 | */ |
NirT | 0:c00e6c923941 | 151 | |
NirT | 0:c00e6c923941 | 152 | /** @defgroup USBH_CONF_Exported_FunctionsPrototype |
NirT | 0:c00e6c923941 | 153 | * @{ |
NirT | 0:c00e6c923941 | 154 | */ |
NirT | 0:c00e6c923941 | 155 | /** |
NirT | 0:c00e6c923941 | 156 | * @} |
NirT | 0:c00e6c923941 | 157 | */ |
NirT | 0:c00e6c923941 | 158 | |
NirT | 0:c00e6c923941 | 159 | |
NirT | 0:c00e6c923941 | 160 | #endif /* __USBH_CONF__H */ |
NirT | 0:c00e6c923941 | 161 | |
NirT | 0:c00e6c923941 | 162 | |
NirT | 0:c00e6c923941 | 163 | /** |
NirT | 0:c00e6c923941 | 164 | * @} |
NirT | 0:c00e6c923941 | 165 | */ |
NirT | 0:c00e6c923941 | 166 | |
NirT | 0:c00e6c923941 | 167 | /** |
NirT | 0:c00e6c923941 | 168 | * @} |
NirT | 0:c00e6c923941 | 169 | */ |
NirT | 0:c00e6c923941 | 170 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
NirT | 0:c00e6c923941 | 171 |