802.15.4 Atmel RF driver update

Sync with master version v3.3.3
pull/14054/head
Arto Kinnunen 2020-12-16 10:51:39 +02:00
parent 84d991342a
commit c43319dc13
2 changed files with 3 additions and 2 deletions

View File

@ -96,6 +96,7 @@ extern "C" {
// RF_PAC
#define TXPWR 0x1F
#define TXPWR_7 (7 << 0)
#define TXPWR_11 (11 << 0)
#define TXPWR_0 (0 << 0)
#define TXPWR_31 (31 << 0)

View File

@ -499,8 +499,8 @@ static void rf_init_registers(rf_modules_e module)
se2435_pa_pins->ANT_SEL = 0;
// Enable external front end with configuration 3
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
rf_tx_power = TXPWR_11;
// Output power at 900MHz: -4 dBm with FSK/QPSK, less than -10 dBm with OFDM
rf_tx_power = TXPWR_7;
}
// Set TX output power
rf_write_rf_register_field(RF_PAC, module, TXPWR, rf_tx_power);