You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
#include "znordic.h"
|
|
//
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
//
|
|
#include "app_ble_service.h"
|
|
#include "app_event_distribute.h"
|
|
#include "basic/ads1293/ads1293.h"
|
|
#include "board/board.h"
|
|
#include "device_ctrl_service.h"
|
|
#include "zble_module.h"
|
|
#include "zdatachannel_service.h"
|
|
#include "znordic_device_info_mgr.h"
|
|
//
|
|
|
|
int main() {
|
|
APP_SCHED_INIT(APP_MAX_EVEN_SIZE, APP_EVENT_QUEUE_SIZE);
|
|
znordic_init();
|
|
NRF_LOG_INFO("compile time :%s", __TIME__);
|
|
|
|
/*******************************************************************************
|
|
* 蓝牙服务初始化 *
|
|
*******************************************************************************/
|
|
static zble_module_cfg_t cfg;
|
|
cfg.deviceName = device_info_read_sn_str();
|
|
cfg.on_service_init = AppBleService_onServiceInitCB;
|
|
zble_module_init(&cfg);
|
|
AppBleService_init();
|
|
/*******************************************************************************
|
|
* 设备控制服务初始化 *
|
|
*******************************************************************************/
|
|
DeviceCtrl_init();
|
|
/*******************************************************************************
|
|
* LOOP *
|
|
*******************************************************************************/
|
|
znordic_loop();
|
|
}
|