source:
rtems/c/src/lib/libbsp/arm/lpc24xx/include/lcd.h
@
4a6cc2a
Last change on this file since 4a6cc2a was 4a6cc2a, checked in by Sebastian Huber <sebastian.huber@…>, on 11/08/11 at 10:39:46 | |
---|---|
|
|
File size: 1.4 KB |
Line | |
---|---|
1 | /** |
2 | * @file |
3 | * |
4 | * @ingroup lpc24xx_lcd |
5 | * |
6 | * @brief LCD support. |
7 | */ |
8 | |
9 | /* |
10 | * Copyright (c) 2010-2011 embedded brains GmbH. All rights reserved. |
11 | * |
12 | * embedded brains GmbH |
13 | * Obere Lagerstr. 30 |
14 | * 82178 Puchheim |
15 | * Germany |
16 | * <rtems@embedded-brains.de> |
17 | * |
18 | * The license and distribution terms for this file may be |
19 | * found in the file LICENSE in this distribution or at |
20 | * http://www.rtems.com/license/LICENSE. |
21 | */ |
22 | |
23 | #ifndef LIBBSP_ARM_LPC24XX_LCD_H |
24 | #define LIBBSP_ARM_LPC24XX_LCD_H |
25 | |
26 | #include <rtems.h> |
27 | |
28 | #include <bsp/io.h> |
29 | |
30 | #ifdef __cplusplus |
31 | extern "C" { |
32 | #endif |
33 | |
34 | /** |
35 | * @defgroup lpc_dma LCD Support |
36 | * |
37 | * @ingroup lpc24xx |
38 | * |
39 | * @brief LCD support. |
40 | * |
41 | * @{ |
42 | */ |
43 | |
44 | typedef enum { |
45 | #ifdef ARM_MULTILIB_ARCH_V4 |
46 | LCD_MODE_STN_4_BIT = 0, |
47 | LCD_MODE_STN_8_BIT, |
48 | LCD_MODE_STN_DUAL_PANEL_4_BIT, |
49 | LCD_MODE_STN_DUAL_PANEL_8_BIT, |
50 | LCD_MODE_TFT_12_BIT_4_4_4, |
51 | LCD_MODE_TFT_16_BIT_5_6_5, |
52 | LCD_MODE_TFT_16_BIT_1_5_5_5, |
53 | LCD_MODE_TFT_24_BIT, |
54 | LCD_MODE_DISABLED |
55 | #endif |
56 | } lpc24xx_lcd_mode; |
57 | |
58 | /** |
59 | * @brief Set the LCD @a mode. |
60 | * |
61 | * The pins are configured according to @a pins. |
62 | * |
63 | * @see lpc24xx_pin_config(). |
64 | * |
65 | * @retval RTEMS_SUCCESSFUL Successful operation. |
66 | * @retval RTEMS_IO_ERROR Invalid mode. |
67 | */ |
68 | rtems_status_code lpc24xx_lcd_set_mode( |
69 | lpc24xx_lcd_mode mode, |
70 | const lpc24xx_pin_range *pins |
71 | ); |
72 | |
73 | lpc24xx_lcd_mode lpc24xx_lcd_current_mode(void); |
74 | |
75 | /** @} */ |
76 | |
77 | #ifdef __cplusplus |
78 | } |
79 | #endif /* __cplusplus */ |
80 | |
81 | #endif /* LIBBSP_ARM_LPC24XX_LCD_H */ |
Note: See TracBrowser
for help on using the repository browser.