-
Notifications
You must be signed in to change notification settings - Fork 0
/
hal-config.h
68 lines (58 loc) · 2.54 KB
/
hal-config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************//**
* @file
* @brief HAL configuration file
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#ifndef HAL_CONFIG_H
#define HAL_CONFIG_H
#include "board_features.h"
#include "hal-config-board.h"
#if defined(FEATURE_IOEXPANDER)
#include "hal-config-ioexp.h"
#endif
#if defined(FEATURE_FEM)
#include "hal-config-fem.h"
#endif
#ifdef BSP_CLK_LFXO_CTUNE
#undef BSP_CLK_LFXO_CTUNE
#endif
#define BSP_CLK_LFXO_CTUNE (32)
#define HAL_EXTFLASH_FREQUENCY (1000000)
#define HAL_PA_ENABLE (1)
#define HAL_PA_RAMP (10)
#define HAL_PA_2P4_LOWPOWER (0)
#define HAL_PA_POWER (252)
#define HAL_PA_CURVE_HEADER "pa_curves_efr32.h"
#ifdef FEATURE_PA_HIGH_POWER
#define HAL_PA_VOLTAGE (3300)
#else // FEATURE_PA_HIGH_POWER
#define HAL_PA_VOLTAGE (1800)
#endif // FEATURE_PA_HIGH_POWER
#define HAL_PTI_ENABLE (1)
#define HAL_PTI_MODE (HAL_PTI_MODE_UART)
#define HAL_PTI_BAUD_RATE (1600000)
#define HAL_SPIDISPLAY_ENABLE (1)
#define HAL_SPIDISPLAY_EXTCOMIN_CALLBACK
#if defined(FEATURE_IOEXPANDER)
#define HAL_SPIDISPLAY_EXTMODE_EXTCOMIN (0)
#else
#define HAL_SPIDISPLAY_EXTMODE_EXTCOMIN (1)
#endif
#define HAL_SPIDISPLAY_EXTMODE_SPI (0)
#define HAL_SPIDISPLAY_EXTCOMIN_USE_PRS (0)
#define HAL_SPIDISPLAY_EXTCOMIN_USE_CALLBACK (0)
#define HAL_SPIDISPLAY_FREQUENCY (1000000)
#define HAL_VCOM_ENABLE (1)
#define HAL_I2CSENSOR_ENABLE (0)
#endif