Merge pull request #1932 from g-oikonomou/contrib/cc1350/lp-and-st
Add support for the CC1350 LP and Sensortag
This commit is contained in:
commit
7b193ee014
49 changed files with 1269 additions and 127 deletions
|
@ -56,6 +56,7 @@
|
|||
#include "lpm.h"
|
||||
#include "ti-lib.h"
|
||||
#include "rf-core/rf-core.h"
|
||||
#include "rf-core/rf-switch.h"
|
||||
#include "rf-core/rf-ble.h"
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* RF core and RF HAL API */
|
||||
|
@ -272,6 +273,12 @@ volatile static uint8_t *rx_read_entry;
|
|||
|
||||
static uint8_t tx_buf[TX_BUF_HDR_LEN + TX_BUF_PAYLOAD_LEN] CC_ALIGN(4);
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifdef IEEE_MODE_CONF_BOARD_OVERRIDES
|
||||
#define IEEE_MODE_BOARD_OVERRIDES IEEE_MODE_CONF_BOARD_OVERRIDES
|
||||
#else
|
||||
#define IEEE_MODE_BOARD_OVERRIDES
|
||||
#endif
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Overrides for IEEE 802.15.4, differential mode */
|
||||
static uint32_t ieee_overrides[] = {
|
||||
0x00354038, /* Synth: Set RTRIM (POTAILRESTRIM) to 5 */
|
||||
|
@ -286,6 +293,7 @@ static uint32_t ieee_overrides[] = {
|
|||
0x002B50DC, /* Adjust AGC DC filter */
|
||||
0x05000243, /* Increase synth programming timeout */
|
||||
0x002082C3, /* Increase synth programming timeout */
|
||||
IEEE_MODE_BOARD_OVERRIDES
|
||||
0xFFFFFFFF, /* End of override list */
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -484,11 +492,15 @@ rf_radio_setup()
|
|||
uint32_t cmd_status;
|
||||
rfc_CMD_RADIO_SETUP_t cmd;
|
||||
|
||||
rf_switch_select_path(RF_SWITCH_PATH_2_4GHZ);
|
||||
|
||||
/* Create radio setup command */
|
||||
rf_core_init_radio_op((rfc_radioOp_t *)&cmd, sizeof(cmd), CMD_RADIO_SETUP);
|
||||
|
||||
cmd.txPower = tx_power_current->tx_power;
|
||||
cmd.pRegOverride = ieee_overrides;
|
||||
cmd.config.frontEndMode = RF_CORE_RADIO_SETUP_FRONT_END_MODE;
|
||||
cmd.config.biasMode = RF_CORE_RADIO_SETUP_BIAS_MODE;
|
||||
cmd.mode = 1;
|
||||
|
||||
/* Send Radio setup to RF Core */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue