[efr32] Radio: correct PA supply selection for BRD4166A (#4506)

This commit is contained in:
Diego Ismirlian
2020-01-27 22:21:12 -08:00
committed by Jonathan Hui
parent 609665d017
commit 83c75333ec
5 changed files with 12 additions and 0 deletions
@@ -45,4 +45,6 @@
#define RADIO_CONFIG_DMP_SUPPORT 0 /// Set to 1 to enable Dynamic Multi-Protocol support in radio.c
#endif
#define RADIO_CONFIG_PA_USES_DCDC 0 /// The PA(s) is(are) fed from VBAT
#endif // __BOARD_CONFIG_H__
@@ -45,4 +45,6 @@
#define RADIO_CONFIG_DMP_SUPPORT 0 /// Set to 1 to enable Dynamic Multi-Protocol support in radio.c
#endif
#define RADIO_CONFIG_PA_USES_DCDC 1 /// The PA(s) is(are) fed from the DCDC
#endif // __BOARD_CONFIG_H__
@@ -46,4 +46,6 @@
#define RADIO_CONFIG_DMP_SUPPORT 0 /// Set to 1 to enable Dynamic Multi-Protocol support in radio.c
#endif
#define RADIO_CONFIG_PA_USES_DCDC 0 /// The PA(s) is(are) fed from VBAT
#endif // __BOARD_CONFIG_H__
@@ -45,4 +45,6 @@
#define RADIO_CONFIG_DMP_SUPPORT 0 /// Set to 1 to enable Dynamic Multi-Protocol support in radio.c
#endif
#define RADIO_CONFIG_PA_USES_DCDC 0 /// The PA(s) is(are) fed from VBAT
#endif // __BOARD_CONFIG_H__
+4
View File
@@ -186,7 +186,11 @@ static const RAIL_IEEE802154_Config_t sRailIeee802154Config = {
.isPanCoordinator = false,
};
#if RADIO_CONFIG_PA_USES_DCDC
RAIL_DECLARE_TX_POWER_DCDC_CURVES(piecewiseSegments, curvesSg, curves24Hp, curves24Lp);
#else
RAIL_DECLARE_TX_POWER_VBAT_CURVES(piecewiseSegments, curvesSg, curves24Hp, curves24Lp);
#endif
static int8_t sTxPowerDbm = OPENTHREAD_CONFIG_DEFAULT_TRANSMIT_POWER;