Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 646650ddee |
+1
@@ -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 ====
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user