forked from CU-ECEN-5823/course-project-PuneetBansal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hal-config.h
52 lines (42 loc) · 1.7 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
#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 (1)
#endif