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.

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