1 /***************************************************************************//**
\r
2 * @file displaypalconfig.h
\r
3 * @brief Configuration file for PAL (Platform Abstraction Layer)
\r
5 *******************************************************************************
\r
7 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
\r
8 *******************************************************************************
\r
10 * This file is licensed under the Silabs License Agreement. See the file
\r
11 * "Silabs_License_Agreement.txt" for details. Before using this software for
\r
12 * any purpose, you must agree to the terms of that agreement.
\r
14 ******************************************************************************/
\r
16 #ifndef __SILICON_LABS_DISPLAYPALCONFIG_H__
\r
17 #define __SILICON_LABS_DISPLAYPALCONFIG_H__
\r
20 * Select which oscillator should source the RTC clock.
\r
22 #undef PAL_RTCC_CLOCK_LFXO
\r
23 #define PAL_RTCC_CLOCK_LFRCO
\r
24 #undef PAL_RTCC_CLOCK_ULFRCO
\r
27 * PAL SPI / USART configuration for the SLSTK3401A.
\r
28 * Select which USART and location is connected to the device via SPI.
\r
30 #define PAL_SPI_USART_UNIT (USART1)
\r
31 #define PAL_SPI_USART_CLOCK (cmuClock_USART1)
\r
32 #define PAL_SPI_USART_LOCATION_TX (11)
\r
33 #define PAL_SPI_USART_LOCATION_SCLK (11)
\r
36 * Specify the SPI baud rate:
\r
38 #define PAL_SPI_BAUDRATE (3500000) /* Max baudrate on EFM32PG. */
\r
41 * On the SLSTK3401A, we can toggle some GPIO pins with hw only,
\r
42 * especially the GPIO port D pin 13 signal which is connected to the
\r
43 * polarity inversion (EXTCOMIN) pin on the Sharp Memory LCD. By defining
\r
44 * INCLUDE_PAL_GPIO_PIN_AUTO_TOGGLE_HW_ONLY the toggling of EXTCOMIN will
\r
45 * be handled by hardware, without software intervention, which saves power.
\r
47 #define INCLUDE_PAL_GPIO_PIN_AUTO_TOGGLE_HW_ONLY
\r
50 #endif /* __SILICON_LABS_DISPLAYPALCONFIG_H__ */
\r