|
@ -485,14 +485,14 @@ void hwss_init(void) { |
|
|
void hwss_load(void) { ads1293_init(); } |
|
|
void hwss_load(void) { ads1293_init(); } |
|
|
void hwss_unload(void) { ads1293_uninit(); } |
|
|
void hwss_unload(void) { ads1293_uninit(); } |
|
|
|
|
|
|
|
|
uint32_t hwss_started_has_passed_s(void) { return znrf_rtc_get_timestamp_s() - m_capture_start_s; } |
|
|
|
|
|
|
|
|
uint32_t hwss_started_has_passed_s(void) { return znordic_getpower_on_s() - m_capture_start_s; } |
|
|
|
|
|
|
|
|
void hwss_start_capture(void) { |
|
|
void hwss_start_capture(void) { |
|
|
m_drop_state_triggered = false; |
|
|
m_drop_state_triggered = false; |
|
|
m_work_flag = true; |
|
|
m_work_flag = true; |
|
|
m_frame_index = 0; |
|
|
m_frame_index = 0; |
|
|
m_frame_filter_index = 0; |
|
|
m_frame_filter_index = 0; |
|
|
m_capture_start_s = znrf_rtc_get_timestamp_s(); |
|
|
|
|
|
|
|
|
m_capture_start_s = znordic_getpower_on_s(); |
|
|
pLittleBlockCache_reset(); |
|
|
pLittleBlockCache_reset(); |
|
|
// ads1293_start_conversion(&m_ads1293_0); |
|
|
// ads1293_start_conversion(&m_ads1293_0); |
|
|
// ads1293_start_conversion(&m_ads1293_1); |
|
|
// ads1293_start_conversion(&m_ads1293_1); |
|
|