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.

27 lines
724 B

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 "basic/zble_module.h"
  2. #include "basic/zdatachannel_service.h"
  3. #include "znordic.h"
  4. //
  5. #include "three_lead\three_lead_board.h"
  6. static void test_tx_timer_cb(void* p_context) {
  7. ZLOGI("test_tx_timer_cb");
  8. ThreeLeadECG_sdcard_mount();
  9. uint32_t data;
  10. data = 1;
  11. }
  12. extern uint32_t g_nrf_log_tx_pin;
  13. APP_TIMER_DEF(m_test_tx_timer);
  14. void main() {
  15. g_nrf_log_tx_pin = 2;
  16. APP_SCHED_INIT(APP_TIMER_SCHED_EVENT_DATA_SIZE, 20);
  17. znordic_init();
  18. NRF_LOG_INFO("compile time :%s %d", __TIME__, APP_TIMER_TICKS(100));
  19. ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_SINGLE_SHOT, test_tx_timer_cb));
  20. ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(100), NULL));
  21. znordic_loop();
  22. }