Template for working forward

Dependencies:   mbed PinDetect

Committer:
joshbam
Date:
Wed Oct 20 11:31:34 2021 +0000
Revision:
5:a7f8c11020f7
Parent:
1:402b32a1025f
Template

Who changed what in which revision?

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