*/ int main(void) { // Initialize. leds_init(); timers_init(); gpiote_init(); buttons_init(); ble_stack_init(); bond_manager_init(); gap_params_init(); advertising_init(BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE); services_init(); sensor_sim_init(); conn_params_init(); sec_params_init(); // Start execution. advertising_start(); // Enter main loop. for (;;) { power_manage(); }
/**@brief Application main function. */ int main(void) { // Initialize leds_init(); buttons_init(); ble_stack_init(); bond_manager_init(); timers_init(); gap_params_init(); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); sec_params_init(); radio_notification_init(); // Start execution application_timers_start(); advertising_start(); // Enter main loop for (;;) { power_manage(); } }
/**@brief Function for application main entry. */ int main(void) { // Initialize. leds_init(); buttons_init(); timers_init(); ble_stack_init(); device_manager_init(); gap_params_init(); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); //simple_uart_config(31,9,31,31,false); //simple_uart_putstring("Starting..."); // Start execution. //Turn off HRM update //application_timers_start(); advertising_start(); // Enter main loop. for (;;) { power_manage(); } }
/**@brief Function for application main entry. */ int main(void) { // Initialize. app_trace_init(); leds_init(); buttons_init(); timers_init(); ble_stack_init(); device_manager_init(); gap_params_init(); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); // Start execution. application_timers_start(); advertising_start(); // Enter main loop. for (;;) { power_manage(); } }
/**@brief Application main function. */ int main(void) { // Initialize leds_init(); timers_init(); gpiote_init(); buttons_init(); bond_manager_init(); ble_stack_init(); scheduler_init(); gap_params_init(); advertising_init(BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE); services_init(); sensor_sim_init(); conn_params_init(); sec_params_init(); radio_notification_init(); // Start execution timers_start(); advertising_start(); // Enter main loop for (;;) { app_sched_execute(); power_manage(); } }
/**@brief Function for application main entry. */ int main(void) { uint32_t err_code; // Initialize. ble_stack_init(); timers_init(); err_code = bsp_init(BSP_INIT_LED, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), NULL); APP_ERROR_CHECK(err_code); device_manager_init(); gap_params_init(); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); beacon_scanner_init.evt_handler = beacon_evt_handler; beacon_scanner_init.error_handler = beacon_scanner_error_handler; app_beacon_scanner_init(&beacon_scanner_init); app_beacon_scanner_start(); // Start execution. application_timers_start(); advertising_start(); // Enter main loop. for (;;) { power_manage(); } }
/**@brief Function for application main entry. */ int main(void) { // Initialize. ble_stack_init(); timers_init(); APP_GPIOTE_INIT(1); uint32_t err_code = bsp_init(BSP_INIT_LED | BSP_INIT_BUTTONS, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), NULL); APP_ERROR_CHECK(err_code); device_manager_init(); gap_params_init(); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); // Start execution. application_timers_start(); advertising_start(); // Enter main loop. for (;; ) { power_manage(); } }
/**@brief Function for application main entry. */ int main(void) { system_HFCLK_init(); // uart init simple_uart_config(RTS_PIN_NUMBER, TX_PIN_NUMBER, CTS_PIN_NUMBER, RX_PIN_NUMBER, 0); xprintf("APP start up..\r\n"); mcu_bootloader_check(); // Initialize. app_trace_init(); leds_init(); buttons_init(); ble_stack_init(); device_manager_init(); timers_init(); gap_params_init(); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); //I2C and sensor initial system_I2C_init(); OLED_Init(); sensor_init(); enter_pedo_mode(); GPIO_HiToLo_INT_config(BUTTON_2); // Test battery if(!battery_self_detect()) { system_low_battery(); } // Start execution. application_timers_start(); advertising_start(); // Enter main loop. for (;;) { power_manage(); } }
/**@brief Application main function. */ int main(void) { APP_GPIOTE_INIT(1); connectivity_chip_reset(); leds_init(); buttons_init(); bond_manager_init(); ble_stack_init(); ble_error_log_init(); timers_init(); nrf_gpio_pin_set(NRF6310_LED_5); gap_params_init(); nrf_gpio_pin_clear(NRF6310_LED_5); advertising_init(); services_init(); sensor_sim_init(); conn_params_init(); sec_params_init(); radio_notification_init(); // Start execution application_timers_start(); //m_start_adv_flag = true; advertising_start(); // Enter main loop for (;;) { // uint32_t err_code; // // Start/restart advertising. // if (m_start_adv_flag) // { // err_code = sd_ble_gap_adv_start(&m_adv_params); // APP_ERROR_CHECK(err_code); // nrf_gpio_pin_set(ADVERTISING_LED_PIN_NO); // m_start_adv_flag = false; // } power_manage(); } }