this repository aim to make the official ST DISCO F746NG demo from STM32Cube_FW_F7_V1.2.0 working on mbed.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
patch/inc/EDIT_Private.h@0:c00e6c923941, 2015-11-02 (annotated)
- Committer:
- NirT
- Date:
- Mon Nov 02 23:38:08 2015 +0000
- Revision:
- 0:c00e6c923941
Error: Incomplete type is not allowed in "patch/LwIP/src/include/lwip/dhcp.h", Line: 83, Col: 4; ; and more like this.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NirT | 0:c00e6c923941 | 1 | /********************************************************************* |
NirT | 0:c00e6c923941 | 2 | * SEGGER Microcontroller GmbH & Co. KG * |
NirT | 0:c00e6c923941 | 3 | * Solutions for real time microcontroller applications * |
NirT | 0:c00e6c923941 | 4 | ********************************************************************** |
NirT | 0:c00e6c923941 | 5 | * * |
NirT | 0:c00e6c923941 | 6 | * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG * |
NirT | 0:c00e6c923941 | 7 | * * |
NirT | 0:c00e6c923941 | 8 | * Internet: www.segger.com Support: support@segger.com * |
NirT | 0:c00e6c923941 | 9 | * * |
NirT | 0:c00e6c923941 | 10 | ********************************************************************** |
NirT | 0:c00e6c923941 | 11 | |
NirT | 0:c00e6c923941 | 12 | ** emWin V5.28 - Graphical user interface for embedded applications ** |
NirT | 0:c00e6c923941 | 13 | All Intellectual Property rights in the Software belongs to SEGGER. |
NirT | 0:c00e6c923941 | 14 | emWin is protected by international copyright laws. Knowledge of the |
NirT | 0:c00e6c923941 | 15 | source code may not be used to write a similar product. This file may |
NirT | 0:c00e6c923941 | 16 | only be used in accordance with the following terms: |
NirT | 0:c00e6c923941 | 17 | |
NirT | 0:c00e6c923941 | 18 | The software has been licensed to STMicroelectronics International |
NirT | 0:c00e6c923941 | 19 | N.V. a Dutch company with a Swiss branch and its headquarters in Plan- |
NirT | 0:c00e6c923941 | 20 | les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the |
NirT | 0:c00e6c923941 | 21 | purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ |
NirT | 0:c00e6c923941 | 22 | troller products commercialized by Licensee only, sublicensed and dis_ |
NirT | 0:c00e6c923941 | 23 | tributed under the terms and conditions of the End User License Agree_ |
NirT | 0:c00e6c923941 | 24 | ment supplied by STMicroelectronics International N.V. |
NirT | 0:c00e6c923941 | 25 | Full source code is available at: www.segger.com |
NirT | 0:c00e6c923941 | 26 | |
NirT | 0:c00e6c923941 | 27 | We appreciate your understanding and fairness. |
NirT | 0:c00e6c923941 | 28 | ---------------------------------------------------------------------- |
NirT | 0:c00e6c923941 | 29 | File : EDIT_Private.h |
NirT | 0:c00e6c923941 | 30 | Purpose : Internal header file |
NirT | 0:c00e6c923941 | 31 | ---------------------------END-OF-HEADER------------------------------ |
NirT | 0:c00e6c923941 | 32 | */ |
NirT | 0:c00e6c923941 | 33 | |
NirT | 0:c00e6c923941 | 34 | #ifndef EDIT_PRIVATE_H |
NirT | 0:c00e6c923941 | 35 | #define EDIT_PRIVATE_H |
NirT | 0:c00e6c923941 | 36 | |
NirT | 0:c00e6c923941 | 37 | #include "EDIT.h" |
NirT | 0:c00e6c923941 | 38 | |
NirT | 0:c00e6c923941 | 39 | #if GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 40 | |
NirT | 0:c00e6c923941 | 41 | #include "WIDGET.h" |
NirT | 0:c00e6c923941 | 42 | |
NirT | 0:c00e6c923941 | 43 | /********************************************************************* |
NirT | 0:c00e6c923941 | 44 | * |
NirT | 0:c00e6c923941 | 45 | * Defines |
NirT | 0:c00e6c923941 | 46 | * |
NirT | 0:c00e6c923941 | 47 | ********************************************************************** |
NirT | 0:c00e6c923941 | 48 | */ |
NirT | 0:c00e6c923941 | 49 | #define EDIT_REALLOC_SIZE 16 |
NirT | 0:c00e6c923941 | 50 | |
NirT | 0:c00e6c923941 | 51 | #ifndef EDIT_XOFF |
NirT | 0:c00e6c923941 | 52 | #define EDIT_XOFF 1 |
NirT | 0:c00e6c923941 | 53 | #endif |
NirT | 0:c00e6c923941 | 54 | |
NirT | 0:c00e6c923941 | 55 | /********************************************************************* |
NirT | 0:c00e6c923941 | 56 | * |
NirT | 0:c00e6c923941 | 57 | * Types |
NirT | 0:c00e6c923941 | 58 | * |
NirT | 0:c00e6c923941 | 59 | ********************************************************************** |
NirT | 0:c00e6c923941 | 60 | */ |
NirT | 0:c00e6c923941 | 61 | typedef struct EDIT_Obj_struct EDIT_Obj; |
NirT | 0:c00e6c923941 | 62 | |
NirT | 0:c00e6c923941 | 63 | typedef struct { |
NirT | 0:c00e6c923941 | 64 | int Align; |
NirT | 0:c00e6c923941 | 65 | int Border; |
NirT | 0:c00e6c923941 | 66 | const GUI_FONT * pFont; |
NirT | 0:c00e6c923941 | 67 | GUI_COLOR aTextColor[2]; |
NirT | 0:c00e6c923941 | 68 | GUI_COLOR aBkColor[2]; |
NirT | 0:c00e6c923941 | 69 | } EDIT_PROPS; |
NirT | 0:c00e6c923941 | 70 | |
NirT | 0:c00e6c923941 | 71 | struct EDIT_Obj_struct { |
NirT | 0:c00e6c923941 | 72 | WIDGET Widget; |
NirT | 0:c00e6c923941 | 73 | WM_HMEM hpText; |
NirT | 0:c00e6c923941 | 74 | I16 MaxLen; |
NirT | 0:c00e6c923941 | 75 | U16 BufferSize; |
NirT | 0:c00e6c923941 | 76 | I32 Min, Max; // Min max values as normalized floats (integers) |
NirT | 0:c00e6c923941 | 77 | U8 NumDecs; // Number of decimals |
NirT | 0:c00e6c923941 | 78 | I32 CurrentValue; // Current value |
NirT | 0:c00e6c923941 | 79 | int CursorPos; // Cursor position. 0 means left most |
NirT | 0:c00e6c923941 | 80 | unsigned SelSize; // Number of selected characters |
NirT | 0:c00e6c923941 | 81 | U8 EditMode; // Insert or overwrite mode |
NirT | 0:c00e6c923941 | 82 | U8 XSizeCursor; // Size of cursor when working in insert mode |
NirT | 0:c00e6c923941 | 83 | U8 Flags; |
NirT | 0:c00e6c923941 | 84 | tEDIT_AddKeyEx * pfAddKeyEx; // Handle key input |
NirT | 0:c00e6c923941 | 85 | tEDIT_UpdateBuffer * pfUpdateBuffer; // Update textbuffer |
NirT | 0:c00e6c923941 | 86 | EDIT_PROPS Props; |
NirT | 0:c00e6c923941 | 87 | WM_HTIMER hTimer; |
NirT | 0:c00e6c923941 | 88 | U8 MinMaxMode; |
NirT | 0:c00e6c923941 | 89 | }; |
NirT | 0:c00e6c923941 | 90 | |
NirT | 0:c00e6c923941 | 91 | /********************************************************************* |
NirT | 0:c00e6c923941 | 92 | * |
NirT | 0:c00e6c923941 | 93 | * Macros for internal use |
NirT | 0:c00e6c923941 | 94 | * |
NirT | 0:c00e6c923941 | 95 | ********************************************************************** |
NirT | 0:c00e6c923941 | 96 | */ |
NirT | 0:c00e6c923941 | 97 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL |
NirT | 0:c00e6c923941 | 98 | #define EDIT_INIT_ID(p) (p->Widget.DebugId = EDIT_ID) |
NirT | 0:c00e6c923941 | 99 | #else |
NirT | 0:c00e6c923941 | 100 | #define EDIT_INIT_ID(p) |
NirT | 0:c00e6c923941 | 101 | #endif |
NirT | 0:c00e6c923941 | 102 | |
NirT | 0:c00e6c923941 | 103 | #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL |
NirT | 0:c00e6c923941 | 104 | EDIT_Obj * EDIT_LockH(EDIT_Handle h); |
NirT | 0:c00e6c923941 | 105 | #define EDIT_LOCK_H(h) EDIT_LockH(h) |
NirT | 0:c00e6c923941 | 106 | #else |
NirT | 0:c00e6c923941 | 107 | #define EDIT_LOCK_H(h) (EDIT_Obj *)GUI_LOCK_H(h) |
NirT | 0:c00e6c923941 | 108 | #endif |
NirT | 0:c00e6c923941 | 109 | |
NirT | 0:c00e6c923941 | 110 | /********************************************************************* |
NirT | 0:c00e6c923941 | 111 | * |
NirT | 0:c00e6c923941 | 112 | * Public data (internal defaults) |
NirT | 0:c00e6c923941 | 113 | * |
NirT | 0:c00e6c923941 | 114 | ********************************************************************** |
NirT | 0:c00e6c923941 | 115 | */ |
NirT | 0:c00e6c923941 | 116 | extern EDIT_PROPS EDIT__DefaultProps; |
NirT | 0:c00e6c923941 | 117 | |
NirT | 0:c00e6c923941 | 118 | /********************************************************************* |
NirT | 0:c00e6c923941 | 119 | * |
NirT | 0:c00e6c923941 | 120 | * Public functions (internal) |
NirT | 0:c00e6c923941 | 121 | * |
NirT | 0:c00e6c923941 | 122 | ********************************************************************** |
NirT | 0:c00e6c923941 | 123 | */ |
NirT | 0:c00e6c923941 | 124 | U16 EDIT__GetCurrentChar (EDIT_Obj * pObj); |
NirT | 0:c00e6c923941 | 125 | void EDIT__SetCursorPos (EDIT_Handle hObj, int CursorPos); |
NirT | 0:c00e6c923941 | 126 | void EDIT__SetValueUnsigned(EDIT_Handle hObj, I32 Value); |
NirT | 0:c00e6c923941 | 127 | |
NirT | 0:c00e6c923941 | 128 | #endif // GUI_WINSUPPORT |
NirT | 0:c00e6c923941 | 129 | |
NirT | 0:c00e6c923941 | 130 | #endif // EDIT_PRIVATE_H |
NirT | 0:c00e6c923941 | 131 | |
NirT | 0:c00e6c923941 | 132 | /*************************** End of file ****************************/ |