1 /**************************************************************************//**
\r
2 * @file display_ls013b7dh03.h
\r
3 * @brief EFM32ZG_STK3200 specific configuration for the display driver for
\r
4 * the Sharp Memory LCD model LS013B7DH03.
\r
6 ******************************************************************************
\r
8 * <b>(C) Copyright 2014 Silicon Labs, http://www.silabs.com</b>
\r
9 *******************************************************************************
\r
11 * This file is licensed under the Silabs License Agreement. See the file
\r
12 * "Silabs_License_Agreement.txt" for details. Before using this software for
\r
13 * any purpose, you must agree to the terms of that agreement.
\r
15 ******************************************************************************/
\r
18 #ifndef _DISPLAY_LS013B7DH03_CONFIG_H_
\r
19 #define _DISPLAY_LS013B7DH03_CONFIG_H_
\r
21 /* Display device name. */
\r
22 #define SHARP_MEMLCD_DEVICE_NAME "Sharp LS013B7DH03 #1"
\r
25 /* LCD and SPI GPIO pin connections on the EFM32ZG_STK3200. */
\r
26 #define LCD_PORT_SCLK (2) /* = gpioPortC on EFM32ZG_STK3200 */
\r
27 #define LCD_PIN_SCLK (15)
\r
28 #define LCD_PORT_SI (3) /* = gpioPortD on EFM32ZG_STK3200 */
\r
29 #define LCD_PIN_SI (7)
\r
30 #define LCD_PORT_SCS (4) /* = gpioPortE on EFM32ZG_STK3200 */
\r
31 #define LCD_PIN_SCS (11)
\r
32 #define LCD_PORT_EXTCOMIN (4) /* = gpioPortE on EFM32ZG_STK3200 */
\r
33 #define LCD_PIN_EXTCOMIN (10)
\r
34 #define LCD_PORT_DISP (0) /* = gpioPortA on EFM32ZG_STK3200 */
\r
35 #define LCD_PIN_DISP (8)
\r
37 /* PRS settings for polarity inversion extcomin auto toggle. */
\r
38 #define LCD_AUTO_TOGGLE_PRS_CH (2) /* PRS channel 2. */
\r
39 #define LCD_AUTO_TOGGLE_PRS_ROUTE_LOC PRS_ROUTE_LOCATION_LOC2
\r
40 #define LCD_AUTO_TOGGLE_PRS_ROUTE_PEN PRS_ROUTE_CH2PEN
\r
42 #define LCD_PORT_EXTMODE (0) /* = gpioPortA on EFM32ZG_STK3200 */
\r
43 #define LCD_PIN_EXTMODE (0)
\r
47 * Select how LCD polarity inversion should be handled:
\r
49 * If POLARITY_INVERSION_EXTCOMIN is defined, the EXTMODE pin is set to HIGH,
\r
50 * and the polarity inversion is armed for every rising edge of the EXTCOMIN
\r
51 * pin. The actual polarity inversion is triggered at the next transision of
\r
52 * SCS. This mode is recommended because it causes less CPU and SPI load than
\r
53 * the alternative mode, see below.
\r
54 * If POLARITY_INVERSION_EXTCOMIN is undefined, the EXTMODE pin is set to LOW,
\r
55 * and the polarity inversion is toggled by sending an SPI command. This mode
\r
56 * causes more CPU and SPI load than using the EXTCOMIN pin mode.
\r
58 #define POLARITY_INVERSION_EXTCOMIN
\r
60 /* Define POLARITY_INVERSION_EXTCOMIN_PAL_AUTO_TOGGLE if you want the PAL
\r
61 * (Platform Abstraction Layer interface) to automatically toggle the EXTCOMIN
\r
64 #define POLARITY_INVERSION_EXTCOMIN_PAL_AUTO_TOGGLE
\r
67 #endif /* _DISPLAY_LS013B7DH03_CONFIG_H_ */
\r