2d1

Fork of TS_DISCO_F429ZI by ST

Committer:
Robsonik16
Date:
Fri May 05 19:38:00 2017 +0000
Revision:
1:972c0d202476
Parent:
0:4f8b6df8e235
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:4f8b6df8e235 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
bcostm 0:4f8b6df8e235 2 *
bcostm 0:4f8b6df8e235 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
bcostm 0:4f8b6df8e235 4 * and associated documentation files (the "Software"), to deal in the Software without
bcostm 0:4f8b6df8e235 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
bcostm 0:4f8b6df8e235 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
bcostm 0:4f8b6df8e235 7 * Software is furnished to do so, subject to the following conditions:
bcostm 0:4f8b6df8e235 8 *
bcostm 0:4f8b6df8e235 9 * The above copyright notice and this permission notice shall be included in all copies or
bcostm 0:4f8b6df8e235 10 * substantial portions of the Software.
bcostm 0:4f8b6df8e235 11 *
bcostm 0:4f8b6df8e235 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
bcostm 0:4f8b6df8e235 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
bcostm 0:4f8b6df8e235 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
bcostm 0:4f8b6df8e235 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
bcostm 0:4f8b6df8e235 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
bcostm 0:4f8b6df8e235 17 */
bcostm 0:4f8b6df8e235 18
bcostm 0:4f8b6df8e235 19 #include "TS_DISCO_F429ZI.h"
bcostm 0:4f8b6df8e235 20
bcostm 0:4f8b6df8e235 21 // Constructor
bcostm 0:4f8b6df8e235 22 TS_DISCO_F429ZI::TS_DISCO_F429ZI()
bcostm 0:4f8b6df8e235 23 {
bcostm 0:4f8b6df8e235 24 // X = ILI9341_LCD_PIXEL_WIDTH
bcostm 0:4f8b6df8e235 25 // Y = ILI9341_LCD_PIXEL_HEIGHT
bcostm 0:4f8b6df8e235 26 BSP_TS_Init(240, 320);
bcostm 0:4f8b6df8e235 27 }
bcostm 0:4f8b6df8e235 28
bcostm 0:4f8b6df8e235 29 // Destructor
bcostm 0:4f8b6df8e235 30 TS_DISCO_F429ZI::~TS_DISCO_F429ZI()
bcostm 0:4f8b6df8e235 31 {
bcostm 0:4f8b6df8e235 32
bcostm 0:4f8b6df8e235 33 }
bcostm 0:4f8b6df8e235 34
bcostm 0:4f8b6df8e235 35 //=================================================================================================================
bcostm 0:4f8b6df8e235 36 // Public methods
bcostm 0:4f8b6df8e235 37 //=================================================================================================================
bcostm 0:4f8b6df8e235 38
bcostm 0:4f8b6df8e235 39 uint8_t TS_DISCO_F429ZI::Init(uint16_t XSize, uint16_t YSize)
bcostm 0:4f8b6df8e235 40 {
bcostm 0:4f8b6df8e235 41 return BSP_TS_Init(XSize, YSize);
bcostm 0:4f8b6df8e235 42 }
bcostm 0:4f8b6df8e235 43
bcostm 0:4f8b6df8e235 44 uint8_t TS_DISCO_F429ZI::ITConfig(void)
bcostm 0:4f8b6df8e235 45 {
bcostm 0:4f8b6df8e235 46 return BSP_TS_ITConfig();
bcostm 0:4f8b6df8e235 47 }
bcostm 0:4f8b6df8e235 48
bcostm 0:4f8b6df8e235 49 uint8_t TS_DISCO_F429ZI::ITGetStatus(void)
bcostm 0:4f8b6df8e235 50 {
bcostm 0:4f8b6df8e235 51 return BSP_TS_ITGetStatus();
bcostm 0:4f8b6df8e235 52 }
bcostm 0:4f8b6df8e235 53
bcostm 0:4f8b6df8e235 54 void TS_DISCO_F429ZI::GetState(TS_StateTypeDef* TsState)
bcostm 0:4f8b6df8e235 55 {
bcostm 0:4f8b6df8e235 56 BSP_TS_GetState(TsState);
bcostm 0:4f8b6df8e235 57 }
bcostm 0:4f8b6df8e235 58
bcostm 0:4f8b6df8e235 59 void TS_DISCO_F429ZI::ITClear(void)
bcostm 0:4f8b6df8e235 60 {
bcostm 0:4f8b6df8e235 61 BSP_TS_ITClear();
bcostm 0:4f8b6df8e235 62 }
bcostm 0:4f8b6df8e235 63
bcostm 0:4f8b6df8e235 64 //=================================================================================================================
bcostm 0:4f8b6df8e235 65 // Private methods
bcostm 0:4f8b6df8e235 66 //=================================================================================================================