#include "basic/zble_module.h" #include "basic/zdatachannel_service.h" #include "znordic.h" // #include "three_lead\three_lead_board.h" static void test_tx_timer_cb(void* p_context) { ZLOGI("test_tx_timer_cb"); ThreeLeadECG_sdcard_mount(); uint32_t data; data = 1; } extern uint32_t g_nrf_log_tx_pin; APP_TIMER_DEF(m_test_tx_timer); void main() { g_nrf_log_tx_pin = 2; APP_SCHED_INIT(APP_TIMER_SCHED_EVENT_DATA_SIZE, 20); znordic_init(); NRF_LOG_INFO("compile time :%s %d", __TIME__, APP_TIMER_TICKS(100)); ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_SINGLE_SHOT, test_tx_timer_cb)); ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(100), NULL)); znordic_loop(); }