forked from CU-ECEN-5823/course-project-PuneetBansal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hal-config-app-common.h
58 lines (47 loc) · 2.02 KB
/
hal-config-app-common.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
/***************************************************************************//**
* @file
* @brief hal-config-app-common.h
*******************************************************************************
* # 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_APP_COMMON_H
#define HAL_CONFIG_APP_COMMON_H
#include "em_device.h"
#include "hal-config-types.h"
#if defined(FEATURE_IOEXPANDER)
#include "hal-config-ioexp.h"
#endif
#if defined(FEATURE_FEM)
#include "hal-config-fem.h"
#endif
#define HAL_EXTFLASH_FREQUENCY (1000000)
#define HAL_PA_ENABLE (1)
#define HAL_PTI_ENABLE (1)
#define HAL_PTI_MODE (HAL_PTI_MODE_UART)
#define HAL_PTI_BAUD_RATE (1600000)
#ifdef BSP_CLK_LFXO_CTUNE
#undef BSP_CLK_LFXO_CTUNE
#endif
#define BSP_CLK_LFXO_CTUNE (32)
#if (HAL_PA_ENABLE)
#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"
#endif
#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
#endif /* HAL_CONFIG_APP_COMMON_H */