单导联心电记录仪
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.

22 lines
635 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. #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. }
  10. extern uint32_t g_nrf_log_tx_pin;
  11. APP_TIMER_DEF(m_test_tx_timer);
  12. void main() {
  13. g_nrf_log_tx_pin = 2;
  14. znordic_init();
  15. NRF_LOG_INFO("compile time :%s %d", __TIME__, APP_TIMER_TICKS(100));
  16. ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_REPEATED, test_tx_timer_cb));
  17. ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(100), NULL));
  18. znordic_loop();
  19. }