User's Manual

Table Of Contents
ble_radio_active_evt,1);
APP_ERROR_CHECK(err_code);
}
The following main function is an example that to show you how to enable PA/LNA part in your
project:
int main(void)
{
uint32_t err_code;
app_timers_init();
nrf_gpio_cfg_output(PIN_5518CTR);
nrf_gpio_pin_set(PIN_5518CTR);
nrf_delay_ms(2000);
ble_stack_init();
gap_params_init();
services_init();
advertising_init();
conn_params_init();
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
radio_notification_open_init();
// Enter main loop.
for (;;)
{
if(m_radio_active_flag)//enable PA
COPYRIGHT ©2016 ALL RIGHTS RESERVED XunTong Tech TEL: +86 755 26675941 E-mail: nrf@freqchina.com
6