TI Thread API Documentation  1.00.00.00
disp_utils.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file disp_utils.c
4 
5  @brief Utility functions for the display interface
6 
7  Group: CMCU, LPC
8  $Target Device: DEVICES $
9 
10  ******************************************************************************
11  $License: BSD3 2017 $
12  ******************************************************************************
13  $Release Name: PACKAGE NAME $
14  $Release Date: PACKAGE RELEASE DATE $
15  *****************************************************************************/
16 #ifndef DISP_UTILS_H
17 #define DISP_UTILS_H
18 /******************************************************************************
19  Includes
20  *****************************************************************************/
21 /* TIRTOS specific driver header files */
22 #include <ti/display/Display.h>
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28 
29 /******************************************************************************
30  Constants and Macro Definitions
31  *****************************************************************************/
32 /* handle to the LCD display */
33 extern Display_Handle lcdHandle;
34 /* handle to the serial display */
35 extern Display_Handle serialHandle;
36 
40 #define DISPUTILS_SERIALPRINTF(...) do { if(serialHandle) \
41  Display_printf(serialHandle, __VA_ARGS__ ); } while (0)
42 
45 #define DISPUTILS_LCDPRINTF(...) do { if(lcdHandle) \
46  Display_printf(lcdHandle, __VA_ARGS__ ); } while (0)
47 
48 /******************************************************************************
49  External Functions
50  *****************************************************************************/
51 
58 extern void DispUtils_open(void);
59 
60 #if BOARD_DISPLAY_USE_LCD
61 
68 extern void DispUtils_lcdDraw(const Graphics_Image* pImage);
69 #endif /* BOARD_DISPLAY_USE_LCD */
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* DISP_UTILS_H */
Display_Handle serialHandle
Definition: disp_utils.c:39
Display_Handle lcdHandle
Definition: disp_utils.c:37
void DispUtils_open(void)
Initialize and opens the display interface to the serial and the lcd if available.
Definition: disp_utils.c:46
Copyright 2018, Texas Instruments Incorporated