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

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #include "znordic.h"
  2. //
  3. #include <stdarg.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. //
  8. #include "app_ble_service.h"
  9. #include "app_event_distribute.h"
  10. #include "basic/ads1293/ads1293.h"
  11. #include "board/board.h"
  12. #include "device_ctrl_service.h"
  13. #include "zble_module.h"
  14. #include "zdatachannel_service.h"
  15. #include "znordic_device_info_mgr.h"
  16. //
  17. int main() {
  18. APP_SCHED_INIT(APP_MAX_EVEN_SIZE, APP_EVENT_QUEUE_SIZE);
  19. znordic_init();
  20. NRF_LOG_INFO("compile time :%s", __TIME__);
  21. /*******************************************************************************
  22. * ʼ *
  23. *******************************************************************************/
  24. static zble_module_cfg_t cfg;
  25. cfg.deviceName = device_info_read_sn_str();
  26. cfg.on_service_init = AppBleService_onServiceInitCB;
  27. zble_module_init(&cfg);
  28. AppBleService_init();
  29. /*******************************************************************************
  30. * Ʒʼ *
  31. *******************************************************************************/
  32. DeviceCtrl_init();
  33. /*******************************************************************************
  34. * LOOP *
  35. *******************************************************************************/
  36. znordic_loop();
  37. }