mirror of https://github.com/ARMmbed/mbed-os.git
parent
84d991342a
commit
c43319dc13
|
@ -96,6 +96,7 @@ extern "C" {
|
||||||
|
|
||||||
// RF_PAC
|
// RF_PAC
|
||||||
#define TXPWR 0x1F
|
#define TXPWR 0x1F
|
||||||
|
#define TXPWR_7 (7 << 0)
|
||||||
#define TXPWR_11 (11 << 0)
|
#define TXPWR_11 (11 << 0)
|
||||||
#define TXPWR_0 (0 << 0)
|
#define TXPWR_0 (0 << 0)
|
||||||
#define TXPWR_31 (31 << 0)
|
#define TXPWR_31 (31 << 0)
|
||||||
|
|
|
@ -499,8 +499,8 @@ static void rf_init_registers(rf_modules_e module)
|
||||||
se2435_pa_pins->ANT_SEL = 0;
|
se2435_pa_pins->ANT_SEL = 0;
|
||||||
// Enable external front end with configuration 3
|
// Enable external front end with configuration 3
|
||||||
rf_write_rf_register_field(RF_PADFE, module, PADFE, RF_FEMODE3);
|
rf_write_rf_register_field(RF_PADFE, module, PADFE, RF_FEMODE3);
|
||||||
// Output power at 900MHz: 0 dBm with FSK/QPSK, less than -5 dBm with OFDM
|
// Output power at 900MHz: -4 dBm with FSK/QPSK, less than -10 dBm with OFDM
|
||||||
rf_tx_power = TXPWR_11;
|
rf_tx_power = TXPWR_7;
|
||||||
}
|
}
|
||||||
// Set TX output power
|
// Set TX output power
|
||||||
rf_write_rf_register_field(RF_PAC, module, TXPWR, rf_tx_power);
|
rf_write_rf_register_field(RF_PAC, module, TXPWR, rf_tx_power);
|
||||||
|
|
Loading…
Reference in New Issue