|
|
@ -423,9 +423,41 @@ void main() { |
|
|
|
|
|
|
|
ThreeLeadECG_sdcard_base_init(); |
|
|
|
ThreeLeadECG_sdcard_mount(); |
|
|
|
ThreeLeadECG_sdcard_umount(); |
|
|
|
ThreeLeadECG_sdcard_mount(); |
|
|
|
ThreeLeadECG_sdcard_umount(); |
|
|
|
|
|
|
|
|
|
|
|
ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_REPEATED, test_tx_timer_cb)); |
|
|
|
ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(100), NULL)); |
|
|
|
znordic_loop(); |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
#if 0 |
|
|
|
/******************************************************************************* |
|
|
|
* 3导联-flash测试 * |
|
|
|
*******************************************************************************/ |
|
|
|
static void test_tx_timer_cb(void* p_context) { |
|
|
|
static uint32_t data; |
|
|
|
data++; |
|
|
|
ZLOGI("button %d", ThreeLeadECG_button_get_state()); |
|
|
|
} |
|
|
|
|
|
|
|
extern uint32_t g_nrf_log_tx_pin; |
|
|
|
APP_TIMER_DEF(m_test_tx_timer); |
|
|
|
|
|
|
|
void main() { |
|
|
|
APP_SCHED_INIT(APP_TIMER_SCHED_EVENT_DATA_SIZE, 20); |
|
|
|
znordic_init(); |
|
|
|
|
|
|
|
NRF_LOG_INFO("compile time :%s %d", __TIME__, APP_TIMER_TICKS(100)); |
|
|
|
NRF_LOG_INTERNAL_FLUSH(); |
|
|
|
|
|
|
|
ThreeLeadECG_button_init(); |
|
|
|
|
|
|
|
ZERROR_CHECK(app_timer_create(&m_test_tx_timer, APP_TIMER_MODE_REPEATED, test_tx_timer_cb)); |
|
|
|
ZERROR_CHECK(app_timer_start(m_test_tx_timer, APP_TIMER_TICKS(300), NULL)); |
|
|
|
znordic_loop(); |
|
|
|
} |
|
|
|
#endif |