1 /***************************************************************************//**
\r
3 * @brief Provide BSP (board support package) configuration parameters.
\r
5 *******************************************************************************
\r
7 * <b>(C) Copyright 2014 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_BSPCONFIG_H__
\r
17 #define __SILICON_LABS_BSPCONFIG_H__
\r
20 #define BSP_STK_BRD2500
\r
22 #define BSP_BCC_USART USART0
\r
23 #define BSP_BCC_CLK cmuClock_USART0
\r
24 #define BSP_BCC_TX_LOCATION USART_ROUTELOC0_TXLOC_LOC0
\r
25 #define BSP_BCC_RX_LOCATION USART_ROUTELOC0_RXLOC_LOC0
\r
26 #define BSP_BCC_TXPORT gpioPortA
\r
27 #define BSP_BCC_TXPIN 0
\r
28 #define BSP_BCC_RXPORT gpioPortA
\r
29 #define BSP_BCC_RXPIN 1
\r
30 #define BSP_BCC_ENABLE_PORT gpioPortA
\r
31 #define BSP_BCC_ENABLE_PIN 5 /* VCOM_ENABLE */
\r
33 #define BSP_DISP_ENABLE_PORT gpioPortD
\r
34 #define BSP_DISP_ENABLE_PIN 15 /* MemLCD display enable */
\r
36 #define BSP_GPIO_LEDS
\r
37 #define BSP_NO_OF_LEDS 2
\r
38 #define BSP_GPIO_LEDARRAY_INIT {{gpioPortF,4},{gpioPortF,5}}
\r
40 #define BSP_GPIO_BUTTONS
\r
41 #define BSP_NO_OF_BUTTONS 2
\r
42 #define BSP_GPIO_PB0_PORT gpioPortF
\r
43 #define BSP_GPIO_PB0_PIN 6
\r
44 #define BSP_GPIO_PB1_PORT gpioPortF
\r
45 #define BSP_GPIO_PB1_PIN 7
\r
47 #define BSP_GPIO_BUTTONARRAY_INIT {{BSP_GPIO_PB0_PORT, BSP_GPIO_PB0_PIN}, {BSP_GPIO_PB1_PORT, BSP_GPIO_PB1_PIN}}
\r
49 #define BSP_INIT_DEFAULT 0
\r
51 #if !defined( EMU_DCDCINIT_STK_DEFAULT )
\r
52 /* Use emlib defaults */
\r
53 #define EMU_DCDCINIT_STK_DEFAULT EMU_DCDCINIT_DEFAULT
\r
56 #if !defined(CMU_HFXOINIT_STK_DEFAULT)
\r
57 #define CMU_HFXOINIT_STK_DEFAULT \
\r
59 true, /* Low-power mode for EFM32 */ \
\r
60 false, /* Disable auto-start on EM0/1 entry */ \
\r
61 false, /* Disable auto-select on EM0/1 entry */ \
\r
62 false, /* Disable auto-start and select on RAC wakeup */ \
\r
63 _CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
\r
64 0x142, /* Steady-state CTUNE for STK boards without load caps */ \
\r
65 _CMU_HFXOSTARTUPCTRL_REGISHWARM_DEFAULT, \
\r
66 _CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
\r
67 _CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
\r
68 0x7, /* Recommended steady-state osc core bias current */ \
\r
69 0x6, /* Recommended peak detection threshold */ \
\r
70 _CMU_HFXOTIMEOUTCTRL_SHUNTOPTTIMEOUT_DEFAULT, \
\r
71 0xA, /* Recommended peak detection timeout */ \
\r
72 _CMU_HFXOTIMEOUTCTRL_WARMSTEADYTIMEOUT_DEFAULT, \
\r
73 _CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
\r
74 _CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
\r
78 #define BSP_BCP_VERSION 2
\r
79 #include "bsp_bcp.h"
\r
81 #endif /* __SILICON_LABS_BSPCONFIG_H__ */
\r