]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio/Source/SilLabs_Code/kits/SLSTK3401A_EFM32PG/config/displaypalconfig.h
1616d4fe5dce6290bae1e0b147d4257569e94a89
[freertos] / FreeRTOS / Demo / CORTEX_EFM32_Gecko_Starter_Kit_Simplicity_Studio / Source / SilLabs_Code / kits / SLSTK3401A_EFM32PG / config / displaypalconfig.h
1 /***************************************************************************//**\r
2  * @file displaypalconfig.h\r
3  * @brief Configuration file for PAL (Platform Abstraction Layer)\r
4  * @version 4.2.1\r
5  *******************************************************************************\r
6  * @section License\r
7  * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>\r
8  *******************************************************************************\r
9  *\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
13  *\r
14  ******************************************************************************/\r
15 \r
16 #ifndef __SILICON_LABS_DISPLAYPALCONFIG_H__\r
17 #define __SILICON_LABS_DISPLAYPALCONFIG_H__\r
18 \r
19 /*\r
20  * Select which oscillator should source the RTC clock.\r
21  */\r
22 #undef  PAL_RTCC_CLOCK_LFXO\r
23 #define  PAL_RTCC_CLOCK_LFRCO\r
24 #undef  PAL_RTCC_CLOCK_ULFRCO\r
25 \r
26 /*\r
27  * PAL SPI / USART configuration for the SLSTK3401A.\r
28  * Select which USART and location is connected to the device via SPI.\r
29  */\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
34 \r
35 /*\r
36  * Specify the SPI baud rate:\r
37  */\r
38 #define PAL_SPI_BAUDRATE       (3500000) /* Max baudrate on EFM32PG. */\r
39 \r
40 /*\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
46  */\r
47 #define INCLUDE_PAL_GPIO_PIN_AUTO_TOGGLE_HW_ONLY\r
48 \r
49 \r
50 #endif /* __SILICON_LABS_DISPLAYPALCONFIG_H__ */\r