![](/media/cache/profiles/20200518_163046.jpg.50x50_q85.jpg)
Initial
tft_interface/cy8ckit_028_tft.h@0:e9613d017b5e, 2020-01-14 (annotated)
- Committer:
- reedas
- Date:
- Tue Jan 14 11:29:18 2020 +0000
- Revision:
- 0:e9613d017b5e
Initial Commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
reedas | 0:e9613d017b5e | 1 | /***************************************************************************//** |
reedas | 0:e9613d017b5e | 2 | * \file DisplayInterface.h |
reedas | 0:e9613d017b5e | 3 | * \version 1.0 |
reedas | 0:e9613d017b5e | 4 | * |
reedas | 0:e9613d017b5e | 5 | * \brief |
reedas | 0:e9613d017b5e | 6 | * Objective: |
reedas | 0:e9613d017b5e | 7 | * This is display software i8080 interface header file. |
reedas | 0:e9613d017b5e | 8 | * |
reedas | 0:e9613d017b5e | 9 | ******************************************************************************** |
reedas | 0:e9613d017b5e | 10 | * \copyright |
reedas | 0:e9613d017b5e | 11 | * Copyright 2018-2019 Cypress Semiconductor Corporation |
reedas | 0:e9613d017b5e | 12 | * SPDX-License-Identifier: Apache-2.0 |
reedas | 0:e9613d017b5e | 13 | * |
reedas | 0:e9613d017b5e | 14 | * Licensed under the Apache License, Version 2.0 (the "License"); |
reedas | 0:e9613d017b5e | 15 | * you may not use this file except in compliance with the License. |
reedas | 0:e9613d017b5e | 16 | * You may obtain a copy of the License at |
reedas | 0:e9613d017b5e | 17 | * |
reedas | 0:e9613d017b5e | 18 | * http://www.apache.org/licenses/LICENSE-2.0 |
reedas | 0:e9613d017b5e | 19 | * |
reedas | 0:e9613d017b5e | 20 | * Unless required by applicable law or agreed to in writing, software |
reedas | 0:e9613d017b5e | 21 | * distributed under the License is distributed on an "AS IS" BASIS, |
reedas | 0:e9613d017b5e | 22 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
reedas | 0:e9613d017b5e | 23 | * See the License for the specific language governing permissions and |
reedas | 0:e9613d017b5e | 24 | * limitations under the License. |
reedas | 0:e9613d017b5e | 25 | *******************************************************************************/ |
reedas | 0:e9613d017b5e | 26 | /*#include "mbed.h" |
reedas | 0:e9613d017b5e | 27 | #ifndef LCD_REG0 |
reedas | 0:e9613d017b5e | 28 | DigitalInOut LCD_REG0(P9_0); |
reedas | 0:e9613d017b5e | 29 | DigitalInOut LCD_REG1(P9_1); |
reedas | 0:e9613d017b5e | 30 | DigitalInOut LCD_REG2(P9_2); |
reedas | 0:e9613d017b5e | 31 | DigitalInOut LCD_REG3(P9_4); |
reedas | 0:e9613d017b5e | 32 | DigitalInOut LCD_REG4(P9_5); |
reedas | 0:e9613d017b5e | 33 | DigitalInOut LCD_REG5(P0_2); |
reedas | 0:e9613d017b5e | 34 | DigitalInOut LCD_REG6(P13_0); |
reedas | 0:e9613d017b5e | 35 | DigitalInOut LCD_REG7(P13_1); |
reedas | 0:e9613d017b5e | 36 | |
reedas | 0:e9613d017b5e | 37 | DigitalOut LCD_NWR(P12_0); |
reedas | 0:e9613d017b5e | 38 | DigitalOut LCD_DC(P12_1); |
reedas | 0:e9613d017b5e | 39 | DigitalOut LCD_RESET(P12_2); |
reedas | 0:e9613d017b5e | 40 | DigitalOut LCD_NRD(P12_3); |
reedas | 0:e9613d017b5e | 41 | #endif |
reedas | 0:e9613d017b5e | 42 | */ |
reedas | 0:e9613d017b5e | 43 | #include <DigitalInOut.h> |
reedas | 0:e9613d017b5e | 44 | #include <DigitalOut.h> |
reedas | 0:e9613d017b5e | 45 | |
reedas | 0:e9613d017b5e | 46 | extern mbed::DigitalInOut LCD_REG0; |
reedas | 0:e9613d017b5e | 47 | extern mbed::DigitalInOut LCD_REG1; |
reedas | 0:e9613d017b5e | 48 | extern mbed::DigitalInOut LCD_REG2; |
reedas | 0:e9613d017b5e | 49 | extern mbed::DigitalInOut LCD_REG3; |
reedas | 0:e9613d017b5e | 50 | extern mbed::DigitalInOut LCD_REG4; |
reedas | 0:e9613d017b5e | 51 | extern mbed::DigitalInOut LCD_REG5; |
reedas | 0:e9613d017b5e | 52 | extern mbed::DigitalInOut LCD_REG6; |
reedas | 0:e9613d017b5e | 53 | extern mbed::DigitalInOut LCD_REG7; |
reedas | 0:e9613d017b5e | 54 | |
reedas | 0:e9613d017b5e | 55 | |
reedas | 0:e9613d017b5e | 56 | extern mbed::DigitalOut LCD_NWR; |
reedas | 0:e9613d017b5e | 57 | extern mbed::DigitalOut LCD_DC; |
reedas | 0:e9613d017b5e | 58 | extern mbed::DigitalOut LCD_RESET; |
reedas | 0:e9613d017b5e | 59 | extern mbed::DigitalOut LCD_NRD; |
reedas | 0:e9613d017b5e | 60 | |
reedas | 0:e9613d017b5e | 61 | #ifndef DISPLAYINTERFACE_H |
reedas | 0:e9613d017b5e | 62 | #define DISPLAYINTERFACE_H |
reedas | 0:e9613d017b5e | 63 | |
reedas | 0:e9613d017b5e | 64 | |
reedas | 0:e9613d017b5e | 65 | #include "GUI_Type.h" |
reedas | 0:e9613d017b5e | 66 | //#include "cycfg_pins.h" |
reedas | 0:e9613d017b5e | 67 | /* "LCD_DATA_0": "P9_0", |
reedas | 0:e9613d017b5e | 68 | "LCD_DATA_1": "P9_1", |
reedas | 0:e9613d017b5e | 69 | "LCD_DATA_2": "P9_2", |
reedas | 0:e9613d017b5e | 70 | "LCD_DATA_3": "P9_4", |
reedas | 0:e9613d017b5e | 71 | "LCD_DATA_4": "P9_5", |
reedas | 0:e9613d017b5e | 72 | "LCD_DATA_5": "P0_2", |
reedas | 0:e9613d017b5e | 73 | "LCD_DATA_6": "P13_0", |
reedas | 0:e9613d017b5e | 74 | "LCD_DATA_7": "P13_1", |
reedas | 0:e9613d017b5e | 75 | "LCD_NWR": "P12_0", |
reedas | 0:e9613d017b5e | 76 | "LCD_DC": "P12_1", |
reedas | 0:e9613d017b5e | 77 | "LCD_RESET": "P12_2", |
reedas | 0:e9613d017b5e | 78 | "LDC_NRD": "P12_3", |
reedas | 0:e9613d017b5e | 79 | */ |
reedas | 0:e9613d017b5e | 80 | |
reedas | 0:e9613d017b5e | 81 | |
reedas | 0:e9613d017b5e | 82 | void DisplayIntf_Init(void); |
reedas | 0:e9613d017b5e | 83 | void DisplayIntf_Write8_A0(U8 data); |
reedas | 0:e9613d017b5e | 84 | void DisplayIntf_Write8_A1(U8 data); |
reedas | 0:e9613d017b5e | 85 | void DisplayIntf_WriteM8_A1(U8 data[], int num); |
reedas | 0:e9613d017b5e | 86 | U8 DisplayIntf_Read8_A1(void); |
reedas | 0:e9613d017b5e | 87 | void DisplayIntf_ReadM8_A1(U8 data[], int num); |
reedas | 0:e9613d017b5e | 88 | |
reedas | 0:e9613d017b5e | 89 | #endif |
reedas | 0:e9613d017b5e | 90 | |
reedas | 0:e9613d017b5e | 91 | /* [] END OF FILE */ |
reedas | 0:e9613d017b5e | 92 | |
reedas | 0:e9613d017b5e | 93 |