BLE 5, Thread, Zigbee Modules,BT840X/XE
Ver 1.11 April 2019
20
//main.c
//config the PA/LNA
#ifdef APP_PA_LAN
#define APP_PA_PIN
17
#define APP_LNA_PIN
19
#define APP_CPS_PIN
6
#define APP_AMP_PPI_CH_ID_SET 0
#define APP_AMP_PPI_CH_ID_CLR 1
#define APP_AMP_GPIOTE_CH_ID 0
static void pa_lna_setup(void)
{
uint32_t err_code;
nrf_gpio_cfg_output(APP_CPS_PIN);
nrf_gpio_pin_clear(APP_CPS_PIN);
//enable
nrf_gpio_cfg_output(APP_PA_PIN);
nrf_gpio_pin_clear(APP_PA_PIN);
//
nrf_gpio_cfg_output(APP_LNA_PIN);
nrf_gpio_pin_clear(APP_LNA_PIN);
//
static ble_opt_t pa_lna_opts = {
.common_opt = {
.pa_lna = {