RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
lpc24xx
include
bsp
lcd.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
10
11
/*
12
* Copyright (C) 2010, 2012 embedded brains GmbH & Co. KG
13
*
14
* Redistribution and use in source and binary forms, with or without
15
* modification, are permitted provided that the following conditions
16
* are met:
17
* 1. Redistributions of source code must retain the above copyright
18
* notice, this list of conditions and the following disclaimer.
19
* 2. Redistributions in binary form must reproduce the above copyright
20
* notice, this list of conditions and the following disclaimer in the
21
* documentation and/or other materials provided with the distribution.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
* POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
#ifndef LIBBSP_ARM_LPC24XX_LCD_H
37
#define LIBBSP_ARM_LPC24XX_LCD_H
38
39
#include <
rtems.h
>
40
41
#include <bsp/io.h>
42
43
#ifdef __cplusplus
44
extern
"C"
{
45
#endif
46
56
57
typedef
enum
{
58
#ifdef ARM_MULTILIB_ARCH_V4
59
LCD_MODE_STN_4_BIT = 0,
60
LCD_MODE_STN_8_BIT,
61
LCD_MODE_STN_DUAL_PANEL_4_BIT,
62
LCD_MODE_STN_DUAL_PANEL_8_BIT,
63
LCD_MODE_TFT_12_BIT_4_4_4,
64
LCD_MODE_TFT_16_BIT_5_6_5,
65
LCD_MODE_TFT_16_BIT_1_5_5_5,
66
LCD_MODE_TFT_24_BIT,
67
LCD_MODE_DISABLED
68
#else
69
LCD_MODE_STN_4_BIT = 0x4,
70
LCD_MODE_STN_8_BIT = 0x6,
71
LCD_MODE_STN_DUAL_PANEL_4_BIT = 0x84,
72
LCD_MODE_STN_DUAL_PANEL_8_BIT = 0x86,
73
LCD_MODE_TFT_12_BIT_4_4_4 = 0x2e,
74
LCD_MODE_TFT_16_BIT_5_6_5 = 0x2c,
75
LCD_MODE_TFT_16_BIT_1_5_5_5 = 0x28,
76
LCD_MODE_TFT_24_BIT = 0x2a,
77
LCD_MODE_DISABLED = 0xff
78
#endif
79
} lpc24xx_lcd_mode;
80
91
rtems_status_code
lpc24xx_lcd_set_mode
(
92
lpc24xx_lcd_mode mode,
93
const
lpc24xx_pin_range
*pins
94
);
95
96
lpc24xx_lcd_mode lpc24xx_lcd_current_mode(
void
);
97
99
100
#ifdef __cplusplus
101
}
102
#endif
/* __cplusplus */
103
104
#endif
/* LIBBSP_ARM_LPC24XX_LCD_H */
rtems_status_code
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition
status.h:85
lpc24xx_lcd_set_mode
rtems_status_code lpc24xx_lcd_set_mode(lpc24xx_lcd_mode mode, const lpc24xx_pin_range *pins)
Set the LCD mode.
Definition
lcd.c:48
rtems.h
This header file defines the RTEMS Classic API.
lpc24xx_pin_range
Definition
io.h:237
Generated by
1.18.0