IOTON boards API using mbed SDK - http://ioton.cc/plataforma-ton

Dependents:   ton_demo ton_template

Committer:
krebyy
Date:
Thu Jun 29 20:20:49 2017 +0000
Revision:
3:9c7195d31602
Parent:
2:3a73d77c2cef
Update to TON Board V1.2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
krebyy 2:3a73d77c2cef 1 /**
krebyy 2:3a73d77c2cef 2 ******************************************************************************
krebyy 2:3a73d77c2cef 3 * @file umart_lite_plus_teste/include/usbd_conf.h
krebyy 2:3a73d77c2cef 4 * @author MCD Application Team
krebyy 2:3a73d77c2cef 5 * @version V1.2.0
krebyy 2:3a73d77c2cef 6 * @date 26-December-2014
krebyy 2:3a73d77c2cef 7 * @brief General low level driver configuration
krebyy 2:3a73d77c2cef 8 ******************************************************************************
krebyy 2:3a73d77c2cef 9 * @attention
krebyy 2:3a73d77c2cef 10 *
krebyy 2:3a73d77c2cef 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
krebyy 2:3a73d77c2cef 12 *
krebyy 2:3a73d77c2cef 13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
krebyy 2:3a73d77c2cef 14 * You may not use this file except in compliance with the License.
krebyy 2:3a73d77c2cef 15 * You may obtain a copy of the License at:
krebyy 2:3a73d77c2cef 16 *
krebyy 2:3a73d77c2cef 17 * http://www.st.com/software_license_agreement_liberty_v2
krebyy 2:3a73d77c2cef 18 *
krebyy 2:3a73d77c2cef 19 * Unless required by applicable law or agreed to in writing, software
krebyy 2:3a73d77c2cef 20 * distributed under the License is distributed on an "AS IS" BASIS,
krebyy 2:3a73d77c2cef 21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
krebyy 2:3a73d77c2cef 22 * See the License for the specific language governing permissions and
krebyy 2:3a73d77c2cef 23 * limitations under the License.
krebyy 2:3a73d77c2cef 24 *
krebyy 2:3a73d77c2cef 25 ******************************************************************************
krebyy 2:3a73d77c2cef 26 */
krebyy 2:3a73d77c2cef 27
krebyy 2:3a73d77c2cef 28 /* Define to prevent recursive inclusion -------------------------------------*/
krebyy 2:3a73d77c2cef 29 #ifndef __USBD_CONF_H
krebyy 2:3a73d77c2cef 30 #define __USBD_CONF_H
krebyy 2:3a73d77c2cef 31
krebyy 2:3a73d77c2cef 32 /* Includes ------------------------------------------------------------------*/
krebyy 2:3a73d77c2cef 33 #include "stm32f4xx_hal.h"
krebyy 2:3a73d77c2cef 34 #include <stdio.h>
krebyy 2:3a73d77c2cef 35 #include <stdlib.h>
krebyy 2:3a73d77c2cef 36 #include <string.h>
krebyy 2:3a73d77c2cef 37
krebyy 2:3a73d77c2cef 38 /* Exported types ------------------------------------------------------------*/
krebyy 2:3a73d77c2cef 39 /* Exported constants --------------------------------------------------------*/
krebyy 2:3a73d77c2cef 40 /* Common Config */
krebyy 2:3a73d77c2cef 41 #define USBD_MAX_NUM_INTERFACES 1
krebyy 2:3a73d77c2cef 42 #define USBD_MAX_NUM_CONFIGURATION 1
krebyy 2:3a73d77c2cef 43 #define USBD_MAX_STR_DESC_SIZ 0x100
krebyy 2:3a73d77c2cef 44 #define USBD_SUPPORT_USER_STRING 0
krebyy 2:3a73d77c2cef 45 #define USBD_SELF_POWERED 1
krebyy 2:3a73d77c2cef 46 #define USBD_DEBUG_LEVEL 0
krebyy 2:3a73d77c2cef 47
krebyy 2:3a73d77c2cef 48 /* Exported macro ------------------------------------------------------------*/
krebyy 2:3a73d77c2cef 49 /* Memory management macros */
krebyy 2:3a73d77c2cef 50 #define USBD_malloc malloc
krebyy 2:3a73d77c2cef 51 #define USBD_free free
krebyy 2:3a73d77c2cef 52 #define USBD_memset memset
krebyy 2:3a73d77c2cef 53 #define USBD_memcpy memcpy
krebyy 2:3a73d77c2cef 54
krebyy 2:3a73d77c2cef 55 /* DEBUG macros */
krebyy 2:3a73d77c2cef 56 #if (USBD_DEBUG_LEVEL > 0)
krebyy 2:3a73d77c2cef 57 #define USBD_UsrLog(...) printf(__VA_ARGS__);\
krebyy 2:3a73d77c2cef 58 printf("\n");
krebyy 2:3a73d77c2cef 59 #else
krebyy 2:3a73d77c2cef 60 #define USBD_UsrLog(...)
krebyy 2:3a73d77c2cef 61 #endif
krebyy 2:3a73d77c2cef 62
krebyy 2:3a73d77c2cef 63 #if (USBD_DEBUG_LEVEL > 1)
krebyy 2:3a73d77c2cef 64
krebyy 2:3a73d77c2cef 65 #define USBD_ErrLog(...) printf("ERROR: ") ;\
krebyy 2:3a73d77c2cef 66 printf(__VA_ARGS__);\
krebyy 2:3a73d77c2cef 67 printf("\n");
krebyy 2:3a73d77c2cef 68 #else
krebyy 2:3a73d77c2cef 69 #define USBD_ErrLog(...)
krebyy 2:3a73d77c2cef 70 #endif
krebyy 2:3a73d77c2cef 71
krebyy 2:3a73d77c2cef 72 #if (USBD_DEBUG_LEVEL > 2)
krebyy 2:3a73d77c2cef 73 #define USBD_DbgLog(...) printf("DEBUG : ") ;\
krebyy 2:3a73d77c2cef 74 printf(__VA_ARGS__);\
krebyy 2:3a73d77c2cef 75 printf("\n");
krebyy 2:3a73d77c2cef 76 #else
krebyy 2:3a73d77c2cef 77 #define USBD_DbgLog(...)
krebyy 2:3a73d77c2cef 78 #endif
krebyy 2:3a73d77c2cef 79
krebyy 2:3a73d77c2cef 80 /* Exported functions ------------------------------------------------------- */
krebyy 2:3a73d77c2cef 81
krebyy 2:3a73d77c2cef 82 #endif /* __USBD_CONF_H */
krebyy 2:3a73d77c2cef 83
krebyy 2:3a73d77c2cef 84 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/