Jonas Gartmann / BSP_DISCO_F429ZI
Committer:
bcostm
Date:
Fri Mar 18 12:59:18 2016 +0000
Revision:
0:de9280158372
Add support of eeprom

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:de9280158372 1 /**
bcostm 0:de9280158372 2 ******************************************************************************
bcostm 0:de9280158372 3 * @file stm32f429i_discovery_ts.h
bcostm 0:de9280158372 4 * @author MCD Application Team
bcostm 0:de9280158372 5 * @version V2.1.2
bcostm 0:de9280158372 6 * @date 02-March-2015
bcostm 0:de9280158372 7 * @brief This file contains all the functions prototypes for the
bcostm 0:de9280158372 8 * stm32f429i_discovery_ts.c driver.
bcostm 0:de9280158372 9 ******************************************************************************
bcostm 0:de9280158372 10 * @attention
bcostm 0:de9280158372 11 *
bcostm 0:de9280158372 12 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
bcostm 0:de9280158372 13 *
bcostm 0:de9280158372 14 * Redistribution and use in source and binary forms, with or without modification,
bcostm 0:de9280158372 15 * are permitted provided that the following conditions are met:
bcostm 0:de9280158372 16 * 1. Redistributions of source code must retain the above copyright notice,
bcostm 0:de9280158372 17 * this list of conditions and the following disclaimer.
bcostm 0:de9280158372 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
bcostm 0:de9280158372 19 * this list of conditions and the following disclaimer in the documentation
bcostm 0:de9280158372 20 * and/or other materials provided with the distribution.
bcostm 0:de9280158372 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bcostm 0:de9280158372 22 * may be used to endorse or promote products derived from this software
bcostm 0:de9280158372 23 * without specific prior written permission.
bcostm 0:de9280158372 24 *
bcostm 0:de9280158372 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bcostm 0:de9280158372 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bcostm 0:de9280158372 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bcostm 0:de9280158372 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bcostm 0:de9280158372 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bcostm 0:de9280158372 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bcostm 0:de9280158372 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bcostm 0:de9280158372 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bcostm 0:de9280158372 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bcostm 0:de9280158372 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bcostm 0:de9280158372 35 *
bcostm 0:de9280158372 36 ******************************************************************************
bcostm 0:de9280158372 37 */
bcostm 0:de9280158372 38
bcostm 0:de9280158372 39 /* Define to prevent recursive inclusion -------------------------------------*/
bcostm 0:de9280158372 40 #ifndef __STM32F429I_DISCOVERY_TS_H
bcostm 0:de9280158372 41 #define __STM32F429I_DISCOVERY_TS_H
bcostm 0:de9280158372 42
bcostm 0:de9280158372 43 #ifdef __cplusplus
bcostm 0:de9280158372 44 extern "C" {
bcostm 0:de9280158372 45 #endif
bcostm 0:de9280158372 46
bcostm 0:de9280158372 47 /* Includes ------------------------------------------------------------------*/
bcostm 0:de9280158372 48 #include "stm32f429i_discovery.h"
bcostm 0:de9280158372 49 /* Include TouchScreen component driver */
bcostm 0:de9280158372 50 #include "../Components/stmpe811/stmpe811.h"
bcostm 0:de9280158372 51
bcostm 0:de9280158372 52 /** @addtogroup BSP
bcostm 0:de9280158372 53 * @{
bcostm 0:de9280158372 54 */
bcostm 0:de9280158372 55
bcostm 0:de9280158372 56 /** @addtogroup STM32F429I_DISCOVERY
bcostm 0:de9280158372 57 * @{
bcostm 0:de9280158372 58 */
bcostm 0:de9280158372 59
bcostm 0:de9280158372 60 /** @defgroup STM32F429I_DISCOVERY_TS
bcostm 0:de9280158372 61 * @{
bcostm 0:de9280158372 62 */
bcostm 0:de9280158372 63
bcostm 0:de9280158372 64 /** @defgroup STM32F429I_DISCOVERY_TS_Exported_Types
bcostm 0:de9280158372 65 * @{
bcostm 0:de9280158372 66 */
bcostm 0:de9280158372 67 typedef struct
bcostm 0:de9280158372 68 {
bcostm 0:de9280158372 69 uint16_t TouchDetected;
bcostm 0:de9280158372 70 uint16_t X;
bcostm 0:de9280158372 71 uint16_t Y;
bcostm 0:de9280158372 72 uint16_t Z;
bcostm 0:de9280158372 73 }TS_StateTypeDef;
bcostm 0:de9280158372 74 /**
bcostm 0:de9280158372 75 * @}
bcostm 0:de9280158372 76 */
bcostm 0:de9280158372 77
bcostm 0:de9280158372 78 /** @defgroup STM32F429I_DISCOVERY_TS_Exported_Constants
bcostm 0:de9280158372 79 * @{
bcostm 0:de9280158372 80 */
bcostm 0:de9280158372 81 #define TS_SWAP_NONE 0x00
bcostm 0:de9280158372 82 #define TS_SWAP_X 0x01
bcostm 0:de9280158372 83 #define TS_SWAP_Y 0x02
bcostm 0:de9280158372 84 #define TS_SWAP_XY 0x04
bcostm 0:de9280158372 85
bcostm 0:de9280158372 86 typedef enum
bcostm 0:de9280158372 87 {
bcostm 0:de9280158372 88 TS_OK = 0x00,
bcostm 0:de9280158372 89 TS_ERROR = 0x01,
bcostm 0:de9280158372 90 TS_TIMEOUT = 0x02
bcostm 0:de9280158372 91 }TS_StatusTypeDef;
bcostm 0:de9280158372 92 /**
bcostm 0:de9280158372 93 * @}
bcostm 0:de9280158372 94 */
bcostm 0:de9280158372 95
bcostm 0:de9280158372 96 /** @defgroup STM32F429I_DISCOVERY_TS_Exported_Macros
bcostm 0:de9280158372 97 * @{
bcostm 0:de9280158372 98 */
bcostm 0:de9280158372 99 /**
bcostm 0:de9280158372 100 * @}
bcostm 0:de9280158372 101 */
bcostm 0:de9280158372 102
bcostm 0:de9280158372 103 /** @defgroup STM32F429I_DISCOVERY_TS_Exported_Functions
bcostm 0:de9280158372 104 * @{
bcostm 0:de9280158372 105 */
bcostm 0:de9280158372 106 uint8_t BSP_TS_Init(uint16_t XSize, uint16_t YSize);
bcostm 0:de9280158372 107 void BSP_TS_GetState(TS_StateTypeDef *TsState);
bcostm 0:de9280158372 108 uint8_t BSP_TS_ITConfig(void);
bcostm 0:de9280158372 109 uint8_t BSP_TS_ITGetStatus(void);
bcostm 0:de9280158372 110 void BSP_TS_ITClear(void);
bcostm 0:de9280158372 111
bcostm 0:de9280158372 112 /**
bcostm 0:de9280158372 113 * @}
bcostm 0:de9280158372 114 */
bcostm 0:de9280158372 115
bcostm 0:de9280158372 116 /**
bcostm 0:de9280158372 117 * @}
bcostm 0:de9280158372 118 */
bcostm 0:de9280158372 119
bcostm 0:de9280158372 120 /**
bcostm 0:de9280158372 121 * @}
bcostm 0:de9280158372 122 */
bcostm 0:de9280158372 123
bcostm 0:de9280158372 124 /**
bcostm 0:de9280158372 125 * @}
bcostm 0:de9280158372 126 */
bcostm 0:de9280158372 127
bcostm 0:de9280158372 128 #ifdef __cplusplus
bcostm 0:de9280158372 129 }
bcostm 0:de9280158372 130 #endif
bcostm 0:de9280158372 131
bcostm 0:de9280158372 132 #endif /* __STM32F429I_DISCOVERY_TS_H */
bcostm 0:de9280158372 133
bcostm 0:de9280158372 134 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/