]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_EFMG890F128_IAR/lcd/lcdcontroller.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / CORTEX_EFMG890F128_IAR / lcd / lcdcontroller.h
1 /**************************************************************************//**\r
2  * @file\r
3  * @brief LCD Controller header file\r
4  * @author Energy Micro AS\r
5  * @version 1.0.1\r
6  ******************************************************************************\r
7  * @section License\r
8  * <b>(C) Copyright 2009 Energy Micro AS, http://www.energymicro.com</b>\r
9  ******************************************************************************\r
10  *\r
11  * This source code is the property of Energy Micro AS. The source and compiled\r
12  * code may only be used on Energy Micro "EFM32" microcontrollers.\r
13  *\r
14  * This copyright notice may not be removed from the source code nor changed.\r
15  *\r
16  * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no\r
17  * obligation to support this Software. Energy Micro AS is providing the\r
18  * Software "AS IS", with no express or implied warranties of any kind,\r
19  * including, but not limited to, any implied warranties of merchantability\r
20  * or fitness for any particular purpose or warranties against infringement\r
21  * of any proprietary rights of a third party.\r
22  *\r
23  * Energy Micro AS will not be liable for any consequential, incidental, or\r
24  * special damages, or any other relief, or for any claim by any third party,\r
25  * arising from your use of this Software.\r
26  *\r
27  *****************************************************************************/\r
28 \r
29 #ifndef _LCDCONTROLLER_H\r
30 #define _LCDCONTROLLER_H\r
31 \r
32 #include "efm32.h"\r
33 \r
34 /* Range of symbols available on display */\r
35 typedef enum\r
36 {\r
37   LCD_SYMBOL_GECKO,\r
38   LCD_SYMBOL_ANT,\r
39   LCD_SYMBOL_PAD0,\r
40   LCD_SYMBOL_PAD1,\r
41   LCD_SYMBOL_AM,\r
42   LCD_SYMBOL_PM,\r
43   LCD_SYMBOL_EFM32,\r
44   LCD_SYMBOL_MINUS,\r
45   LCD_SYMBOL_COL3,\r
46   LCD_SYMBOL_COL5,\r
47   LCD_SYMBOL_COL10,\r
48   LCD_SYMBOL_DP2,\r
49   LCD_SYMBOL_DP3,\r
50   LCD_SYMBOL_DP4,\r
51   LCD_SYMBOL_DP5,\r
52   LCD_SYMBOL_DP6,\r
53   LCD_SYMBOL_DP10,\r
54 } lcdSymbol;\r
55 \r
56 /* Regular functions */\r
57 void LCD_Init(LCD_TypeDef *lcd);\r
58 void LCD_IRQHandler(void);\r
59 void LCD_Disable(LCD_TypeDef *lcd);\r
60 \r
61 void LCD_AllOff(LCD_TypeDef *lcd);\r
62 void LCD_AllOn(LCD_TypeDef *lcd);\r
63 \r
64 void LCD_ARing(LCD_TypeDef *lcd, int anum, int on);\r
65 void LCD_Battery(LCD_TypeDef *lcd, int batteryLevel);\r
66 void LCD_EnergyMode(LCD_TypeDef *lcd, int em, int on);\r
67 void LCD_Number(LCD_TypeDef *lcd, int value);\r
68 void LCD_NumberOff(LCD_TypeDef *lcd);\r
69 void LCD_Symbol(LCD_TypeDef *lcd, lcdSymbol s, int on);\r
70 void LCD_Write(LCD_TypeDef *lcd, char *string);\r
71 void LCD_ScrollText(LCD_TypeDef *lcd, char *scrolltext);\r
72 \r
73 #endif\r