patch for F746 demo

Dependents:   F7DISCO_Demo

Fork of BSP_DISCO_F746NG by ST

Committer:
NirT
Date:
Mon Nov 02 23:35:17 2015 +0000
Revision:
1:e8fac4061a5b
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?

UserRevisionLine numberNew contents of line
NirT 1:e8fac4061a5b 1 /**
NirT 1:e8fac4061a5b 2 ******************************************************************************
NirT 1:e8fac4061a5b 3 * @file ts3510.h
NirT 1:e8fac4061a5b 4 * @author MCD Application Team
NirT 1:e8fac4061a5b 5 * @version V1.0.1
NirT 1:e8fac4061a5b 6 * @date 02-December-2014
NirT 1:e8fac4061a5b 7 * @brief This file contains all the functions prototypes for the
NirT 1:e8fac4061a5b 8 * ts3510.c IO expander driver.
NirT 1:e8fac4061a5b 9 ******************************************************************************
NirT 1:e8fac4061a5b 10 * @attention
NirT 1:e8fac4061a5b 11 *
NirT 1:e8fac4061a5b 12 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
NirT 1:e8fac4061a5b 13 *
NirT 1:e8fac4061a5b 14 * Redistribution and use in source and binary forms, with or without modification,
NirT 1:e8fac4061a5b 15 * are permitted provided that the following conditions are met:
NirT 1:e8fac4061a5b 16 * 1. Redistributions of source code must retain the above copyright notice,
NirT 1:e8fac4061a5b 17 * this list of conditions and the following disclaimer.
NirT 1:e8fac4061a5b 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
NirT 1:e8fac4061a5b 19 * this list of conditions and the following disclaimer in the documentation
NirT 1:e8fac4061a5b 20 * and/or other materials provided with the distribution.
NirT 1:e8fac4061a5b 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
NirT 1:e8fac4061a5b 22 * may be used to endorse or promote products derived from this software
NirT 1:e8fac4061a5b 23 * without specific prior written permission.
NirT 1:e8fac4061a5b 24 *
NirT 1:e8fac4061a5b 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
NirT 1:e8fac4061a5b 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
NirT 1:e8fac4061a5b 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
NirT 1:e8fac4061a5b 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
NirT 1:e8fac4061a5b 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
NirT 1:e8fac4061a5b 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
NirT 1:e8fac4061a5b 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
NirT 1:e8fac4061a5b 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
NirT 1:e8fac4061a5b 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
NirT 1:e8fac4061a5b 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NirT 1:e8fac4061a5b 35 *
NirT 1:e8fac4061a5b 36 ******************************************************************************
NirT 1:e8fac4061a5b 37 */
NirT 1:e8fac4061a5b 38
NirT 1:e8fac4061a5b 39 /* Define to prevent recursive inclusion -------------------------------------*/
NirT 1:e8fac4061a5b 40 #ifndef __TS3510_H
NirT 1:e8fac4061a5b 41 #define __TS3510_H
NirT 1:e8fac4061a5b 42
NirT 1:e8fac4061a5b 43 #ifdef __cplusplus
NirT 1:e8fac4061a5b 44 extern "C" {
NirT 1:e8fac4061a5b 45 #endif
NirT 1:e8fac4061a5b 46
NirT 1:e8fac4061a5b 47 /* Includes ------------------------------------------------------------------*/
NirT 1:e8fac4061a5b 48 #include "../Common/ts.h"
NirT 1:e8fac4061a5b 49
NirT 1:e8fac4061a5b 50 /** @addtogroup BSP
NirT 1:e8fac4061a5b 51 * @{
NirT 1:e8fac4061a5b 52 */
NirT 1:e8fac4061a5b 53
NirT 1:e8fac4061a5b 54 /** @addtogroup Component
NirT 1:e8fac4061a5b 55 * @{
NirT 1:e8fac4061a5b 56 */
NirT 1:e8fac4061a5b 57
NirT 1:e8fac4061a5b 58 /** @defgroup TS3510
NirT 1:e8fac4061a5b 59 * @{
NirT 1:e8fac4061a5b 60 */
NirT 1:e8fac4061a5b 61
NirT 1:e8fac4061a5b 62 /* Exported types ------------------------------------------------------------*/
NirT 1:e8fac4061a5b 63
NirT 1:e8fac4061a5b 64 /** @defgroup TS3510_Exported_Types
NirT 1:e8fac4061a5b 65 * @{
NirT 1:e8fac4061a5b 66 */
NirT 1:e8fac4061a5b 67
NirT 1:e8fac4061a5b 68 /* Exported constants --------------------------------------------------------*/
NirT 1:e8fac4061a5b 69
NirT 1:e8fac4061a5b 70 /** @defgroup TS3510_Exported_Constants
NirT 1:e8fac4061a5b 71 * @{
NirT 1:e8fac4061a5b 72 */
NirT 1:e8fac4061a5b 73
NirT 1:e8fac4061a5b 74 /* */
NirT 1:e8fac4061a5b 75 #define TS3510_READ_BLOCK_REG 0x8A
NirT 1:e8fac4061a5b 76 #define TS3510_SEND_CMD_REG 0x00
NirT 1:e8fac4061a5b 77 #define TS3510_READ_CMD 0x81
NirT 1:e8fac4061a5b 78 #define TS3510_WRITE_CMD 0x08
NirT 1:e8fac4061a5b 79
NirT 1:e8fac4061a5b 80
NirT 1:e8fac4061a5b 81 /**
NirT 1:e8fac4061a5b 82 * @}
NirT 1:e8fac4061a5b 83 */
NirT 1:e8fac4061a5b 84
NirT 1:e8fac4061a5b 85 /* Exported macro ------------------------------------------------------------*/
NirT 1:e8fac4061a5b 86
NirT 1:e8fac4061a5b 87 /** @defgroup ts3510_Exported_Macros
NirT 1:e8fac4061a5b 88 * @{
NirT 1:e8fac4061a5b 89 */
NirT 1:e8fac4061a5b 90
NirT 1:e8fac4061a5b 91 /* Exported functions --------------------------------------------------------*/
NirT 1:e8fac4061a5b 92
NirT 1:e8fac4061a5b 93 /** @defgroup ts3510_Exported_Functions
NirT 1:e8fac4061a5b 94 * @{
NirT 1:e8fac4061a5b 95 */
NirT 1:e8fac4061a5b 96
NirT 1:e8fac4061a5b 97 /**
NirT 1:e8fac4061a5b 98 * @brief ts3510 Control functions
NirT 1:e8fac4061a5b 99 */
NirT 1:e8fac4061a5b 100 void ts3510_Init(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 101 void ts3510_Reset(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 102 uint16_t ts3510_ReadID(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 103 void ts3510_TS_Start(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 104 uint8_t ts3510_TS_DetectTouch(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 105 void ts3510_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y);
NirT 1:e8fac4061a5b 106 void ts3510_TS_EnableIT(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 107 void ts3510_TS_DisableIT(uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 108 uint8_t ts3510_TS_ITStatus (uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 109 void ts3510_TS_ClearIT (uint16_t DeviceAddr);
NirT 1:e8fac4061a5b 110
NirT 1:e8fac4061a5b 111 void IOE_Init(void);
NirT 1:e8fac4061a5b 112 void IOE_Delay(uint32_t delay);
NirT 1:e8fac4061a5b 113 uint8_t IOE_Read(uint8_t addr, uint8_t reg);
NirT 1:e8fac4061a5b 114 uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
NirT 1:e8fac4061a5b 115 void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length);
NirT 1:e8fac4061a5b 116
NirT 1:e8fac4061a5b 117 /* Touch screen driver structure */
NirT 1:e8fac4061a5b 118 extern TS_DrvTypeDef ts3510_ts_drv;
NirT 1:e8fac4061a5b 119
NirT 1:e8fac4061a5b 120 #ifdef __cplusplus
NirT 1:e8fac4061a5b 121 }
NirT 1:e8fac4061a5b 122 #endif
NirT 1:e8fac4061a5b 123 #endif /* __TS3510_H */
NirT 1:e8fac4061a5b 124
NirT 1:e8fac4061a5b 125
NirT 1:e8fac4061a5b 126 /**
NirT 1:e8fac4061a5b 127 * @}
NirT 1:e8fac4061a5b 128 */
NirT 1:e8fac4061a5b 129
NirT 1:e8fac4061a5b 130 /**
NirT 1:e8fac4061a5b 131 * @}
NirT 1:e8fac4061a5b 132 */
NirT 1:e8fac4061a5b 133
NirT 1:e8fac4061a5b 134 /**
NirT 1:e8fac4061a5b 135 * @}
NirT 1:e8fac4061a5b 136 */
NirT 1:e8fac4061a5b 137
NirT 1:e8fac4061a5b 138 /**
NirT 1:e8fac4061a5b 139 * @}
NirT 1:e8fac4061a5b 140 */
NirT 1:e8fac4061a5b 141 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/