Headers for emWin lib

Dependents:   DISCO-F746NG_rtos_test

Committer:
redbird
Date:
Sat Mar 26 22:49:50 2016 +0000
Revision:
0:1bf8f02b0770
new code integration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redbird 0:1bf8f02b0770 1 /*********************************************************************
redbird 0:1bf8f02b0770 2 * SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 3 * Solutions for real time microcontroller applications *
redbird 0:1bf8f02b0770 4 **********************************************************************
redbird 0:1bf8f02b0770 5 * *
redbird 0:1bf8f02b0770 6 * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 7 * *
redbird 0:1bf8f02b0770 8 * Internet: www.segger.com Support: support@segger.com *
redbird 0:1bf8f02b0770 9 * *
redbird 0:1bf8f02b0770 10 **********************************************************************
redbird 0:1bf8f02b0770 11
redbird 0:1bf8f02b0770 12 ** emWin V5.24 - Graphical user interface for embedded applications **
redbird 0:1bf8f02b0770 13 All Intellectual Property rights in the Software belongs to SEGGER.
redbird 0:1bf8f02b0770 14 emWin is protected by international copyright laws. Knowledge of the
redbird 0:1bf8f02b0770 15 source code may not be used to write a similar product. This file may
redbird 0:1bf8f02b0770 16 only be used in accordance with the following terms:
redbird 0:1bf8f02b0770 17
redbird 0:1bf8f02b0770 18 The software has been licensed to NXP Semiconductors USA, Inc. whose
redbird 0:1bf8f02b0770 19 registered office is situated at 411 E. Plumeria Drive, San Jose,
redbird 0:1bf8f02b0770 20 CA 95134, USA solely for the purposes of creating libraries for
redbird 0:1bf8f02b0770 21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
redbird 0:1bf8f02b0770 22 distributed under the terms and conditions of the NXP End User License
redbird 0:1bf8f02b0770 23 Agreement.
redbird 0:1bf8f02b0770 24 Full source code is available at: www.segger.com
redbird 0:1bf8f02b0770 25
redbird 0:1bf8f02b0770 26 We appreciate your understanding and fairness.
redbird 0:1bf8f02b0770 27 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 28 File : GUIDRV_SLin.h
redbird 0:1bf8f02b0770 29 Purpose : Interface definition for GUIDRV_SLin driver
redbird 0:1bf8f02b0770 30 ---------------------------END-OF-HEADER------------------------------
redbird 0:1bf8f02b0770 31 */
redbird 0:1bf8f02b0770 32
redbird 0:1bf8f02b0770 33 #ifndef GUIDRV_SLIN_H
redbird 0:1bf8f02b0770 34 #define GUIDRV_SLIN_H
redbird 0:1bf8f02b0770 35
redbird 0:1bf8f02b0770 36 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 37 extern "C" { /* Make sure we have C-declarations in C++ programs */
redbird 0:1bf8f02b0770 38 #endif
redbird 0:1bf8f02b0770 39
redbird 0:1bf8f02b0770 40 /*********************************************************************
redbird 0:1bf8f02b0770 41 *
redbird 0:1bf8f02b0770 42 * Configuration structure
redbird 0:1bf8f02b0770 43 */
redbird 0:1bf8f02b0770 44 typedef struct {
redbird 0:1bf8f02b0770 45 //
redbird 0:1bf8f02b0770 46 // Function pointers of hardware access routines
redbird 0:1bf8f02b0770 47 //
redbird 0:1bf8f02b0770 48 //HW_API_SLIN HW_API;
redbird 0:1bf8f02b0770 49 //
redbird 0:1bf8f02b0770 50 // Driver specific configuration items
redbird 0:1bf8f02b0770 51 //
redbird 0:1bf8f02b0770 52 int FirstSEG;
redbird 0:1bf8f02b0770 53 int FirstCOM;
redbird 0:1bf8f02b0770 54 int UseCache;
redbird 0:1bf8f02b0770 55 int UseMirror; // Only used for SSD1848
redbird 0:1bf8f02b0770 56 int CheckBusy;
redbird 0:1bf8f02b0770 57 U8 UseDualScan; // Used for T6963
redbird 0:1bf8f02b0770 58 } CONFIG_SLIN;
redbird 0:1bf8f02b0770 59
redbird 0:1bf8f02b0770 60 /*********************************************************************
redbird 0:1bf8f02b0770 61 *
redbird 0:1bf8f02b0770 62 * Display drivers
redbird 0:1bf8f02b0770 63 */
redbird 0:1bf8f02b0770 64 //
redbird 0:1bf8f02b0770 65 // Addresses
redbird 0:1bf8f02b0770 66 //
redbird 0:1bf8f02b0770 67 extern const GUI_DEVICE_API GUIDRV_SLin_1_API;
redbird 0:1bf8f02b0770 68 extern const GUI_DEVICE_API GUIDRV_SLin_OY_1_API;
redbird 0:1bf8f02b0770 69 extern const GUI_DEVICE_API GUIDRV_SLin_OX_1_API;
redbird 0:1bf8f02b0770 70 extern const GUI_DEVICE_API GUIDRV_SLin_OXY_1_API;
redbird 0:1bf8f02b0770 71 extern const GUI_DEVICE_API GUIDRV_SLin_OS_1_API;
redbird 0:1bf8f02b0770 72 extern const GUI_DEVICE_API GUIDRV_SLin_OSY_1_API;
redbird 0:1bf8f02b0770 73 extern const GUI_DEVICE_API GUIDRV_SLin_OSX_1_API;
redbird 0:1bf8f02b0770 74 extern const GUI_DEVICE_API GUIDRV_SLin_OSXY_1_API;
redbird 0:1bf8f02b0770 75
redbird 0:1bf8f02b0770 76 extern const GUI_DEVICE_API GUIDRV_SLin_2_API;
redbird 0:1bf8f02b0770 77 extern const GUI_DEVICE_API GUIDRV_SLin_OY_2_API;
redbird 0:1bf8f02b0770 78 extern const GUI_DEVICE_API GUIDRV_SLin_OX_2_API;
redbird 0:1bf8f02b0770 79 extern const GUI_DEVICE_API GUIDRV_SLin_OXY_2_API;
redbird 0:1bf8f02b0770 80 extern const GUI_DEVICE_API GUIDRV_SLin_OS_2_API;
redbird 0:1bf8f02b0770 81 extern const GUI_DEVICE_API GUIDRV_SLin_OSY_2_API;
redbird 0:1bf8f02b0770 82 extern const GUI_DEVICE_API GUIDRV_SLin_OSX_2_API;
redbird 0:1bf8f02b0770 83 extern const GUI_DEVICE_API GUIDRV_SLin_OSXY_2_API;
redbird 0:1bf8f02b0770 84
redbird 0:1bf8f02b0770 85 //
redbird 0:1bf8f02b0770 86 // Macros to be used in configuration files
redbird 0:1bf8f02b0770 87 //
redbird 0:1bf8f02b0770 88 #if defined(WIN32) && !defined(LCD_SIMCONTROLLER)
redbird 0:1bf8f02b0770 89
redbird 0:1bf8f02b0770 90 #define GUIDRV_SLIN_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 91 #define GUIDRV_SLIN_OY_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 92 #define GUIDRV_SLIN_OX_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 93 #define GUIDRV_SLIN_OXY_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 94 #define GUIDRV_SLIN_OS_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 95 #define GUIDRV_SLIN_OSY_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 96 #define GUIDRV_SLIN_OSX_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 97 #define GUIDRV_SLIN_OSXY_1 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 98
redbird 0:1bf8f02b0770 99 #define GUIDRV_SLIN_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 100 #define GUIDRV_SLIN_OY_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 101 #define GUIDRV_SLIN_OX_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 102 #define GUIDRV_SLIN_OXY_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 103 #define GUIDRV_SLIN_OS_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 104 #define GUIDRV_SLIN_OSY_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 105 #define GUIDRV_SLIN_OSX_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 106 #define GUIDRV_SLIN_OSXY_2 &GUIDRV_Win_API
redbird 0:1bf8f02b0770 107
redbird 0:1bf8f02b0770 108 #else
redbird 0:1bf8f02b0770 109
redbird 0:1bf8f02b0770 110 #define GUIDRV_SLIN_1 &GUIDRV_SLin_1_API
redbird 0:1bf8f02b0770 111 #define GUIDRV_SLIN_OY_1 &GUIDRV_SLin_OY_1_API
redbird 0:1bf8f02b0770 112 #define GUIDRV_SLIN_OX_1 &GUIDRV_SLin_OX_1_API
redbird 0:1bf8f02b0770 113 #define GUIDRV_SLIN_OXY_1 &GUIDRV_SLin_OXY_1_API
redbird 0:1bf8f02b0770 114 #define GUIDRV_SLIN_OS_1 &GUIDRV_SLin_OS_1_API
redbird 0:1bf8f02b0770 115 #define GUIDRV_SLIN_OSY_1 &GUIDRV_SLin_OSY_1_API
redbird 0:1bf8f02b0770 116 #define GUIDRV_SLIN_OSX_1 &GUIDRV_SLin_OSX_1_API
redbird 0:1bf8f02b0770 117 #define GUIDRV_SLIN_OSXY_1 &GUIDRV_SLin_OSXY_1_API
redbird 0:1bf8f02b0770 118
redbird 0:1bf8f02b0770 119 #define GUIDRV_SLIN_2 &GUIDRV_SLin_2_API
redbird 0:1bf8f02b0770 120 #define GUIDRV_SLIN_OY_2 &GUIDRV_SLin_OY_2_API
redbird 0:1bf8f02b0770 121 #define GUIDRV_SLIN_OX_2 &GUIDRV_SLin_OX_2_API
redbird 0:1bf8f02b0770 122 #define GUIDRV_SLIN_OXY_2 &GUIDRV_SLin_OXY_2_API
redbird 0:1bf8f02b0770 123 #define GUIDRV_SLIN_OS_2 &GUIDRV_SLin_OS_2_API
redbird 0:1bf8f02b0770 124 #define GUIDRV_SLIN_OSY_2 &GUIDRV_SLin_OSY_2_API
redbird 0:1bf8f02b0770 125 #define GUIDRV_SLIN_OSX_2 &GUIDRV_SLin_OSX_2_API
redbird 0:1bf8f02b0770 126 #define GUIDRV_SLIN_OSXY_2 &GUIDRV_SLin_OSXY_2_API
redbird 0:1bf8f02b0770 127
redbird 0:1bf8f02b0770 128 #endif
redbird 0:1bf8f02b0770 129
redbird 0:1bf8f02b0770 130 /*********************************************************************
redbird 0:1bf8f02b0770 131 *
redbird 0:1bf8f02b0770 132 * Public routines
redbird 0:1bf8f02b0770 133 */
redbird 0:1bf8f02b0770 134 #if defined(WIN32) && !defined(LCD_SIMCONTROLLER)
redbird 0:1bf8f02b0770 135
redbird 0:1bf8f02b0770 136 #define GUIDRV_SLin_Config(pDevice, pConfig)
redbird 0:1bf8f02b0770 137 #define GUIDRV_SLin_SetBus8(pDevice, pHW_API)
redbird 0:1bf8f02b0770 138 #define GUIDRV_SLin_SetS1D13700(pDevice)
redbird 0:1bf8f02b0770 139 #define GUIDRV_SLin_SetSSD1848(pDevice)
redbird 0:1bf8f02b0770 140 #define GUIDRV_SLin_SetT6963(pDevice)
redbird 0:1bf8f02b0770 141 #define GUIDRV_SLin_SetUC1617(pDevice)
redbird 0:1bf8f02b0770 142
redbird 0:1bf8f02b0770 143 #else
redbird 0:1bf8f02b0770 144
redbird 0:1bf8f02b0770 145 void GUIDRV_SLin_Config (GUI_DEVICE * pDevice, CONFIG_SLIN * pConfig);
redbird 0:1bf8f02b0770 146 void GUIDRV_SLin_SetBus8 (GUI_DEVICE * pDevice, GUI_PORT_API * pHW_API);
redbird 0:1bf8f02b0770 147 void GUIDRV_SLin_SetS1D13700(GUI_DEVICE * pDevice);
redbird 0:1bf8f02b0770 148 void GUIDRV_SLin_SetSSD1848 (GUI_DEVICE * pDevice);
redbird 0:1bf8f02b0770 149 void GUIDRV_SLin_SetT6963 (GUI_DEVICE * pDevice);
redbird 0:1bf8f02b0770 150 void GUIDRV_SLin_SetUC1617 (GUI_DEVICE * pDevice);
redbird 0:1bf8f02b0770 151
redbird 0:1bf8f02b0770 152 #endif
redbird 0:1bf8f02b0770 153
redbird 0:1bf8f02b0770 154 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 155 }
redbird 0:1bf8f02b0770 156 #endif
redbird 0:1bf8f02b0770 157
redbird 0:1bf8f02b0770 158 #endif
redbird 0:1bf8f02b0770 159
redbird 0:1bf8f02b0770 160 /*************************** End of file ****************************/