Compare commits

...

1 Commits

Author SHA1 Message Date
yichin 646650ddee test data rate 2020-05-06 18:05:37 +08:00
3 changed files with 3 additions and 1 deletions
@@ -104,6 +104,7 @@ static bool ConnectState = false;
static bool ErrorRestart = false;
static bool turn_off_sti = false;
static uint8_t SPICallBack = 0;
static uint32_t data_counter = 0;
/*======================
==== event control ====
@@ -25,7 +25,7 @@ static void headstage_notify_set_timestamp() {
static void headstage_notify_flip_buffer() {
uint8_t data_count = (not_buf_offset - NOT_BUF_OFFSET_INIT) / 3;
headstage_notify_buffer[0] = CHIP_ID;
headstage_notify_buffer[0] = data_counter ++;
headstage_notify_buffer[1] = data_count;
not_buf_offset = NOT_BUF_OFFSET_INIT;
@@ -15,6 +15,7 @@ static void MCUReset(){
STI = false;
turn_off_sti = false;
IsFirstData = true;
data_counter = 0;
// SPI reset
SPI_close(headstage_spi_handle);