diff --git a/components/asic/bm1366.c b/components/asic/bm1366.c index 9be978a6..287d5eba 100644 --- a/components/asic/bm1366.c +++ b/components/asic/bm1366.c @@ -57,6 +57,10 @@ typedef struct __attribute__((__packed__)) static const char * TAG = "bm1366Module"; +static uint8_t asic_timeout_counter = 0; +static uint8_t asic_timeout_warning_threshold = 2; +static int uart_timeout_ms = 10000; + static uint8_t asic_response_buffer[SERIAL_BUF_SIZE]; static task_result result; diff --git a/components/asic/bm1368.c b/components/asic/bm1368.c index c1d05cda..aa7ed3c9 100644 --- a/components/asic/bm1368.c +++ b/components/asic/bm1368.c @@ -56,6 +56,10 @@ typedef struct __attribute__((__packed__)) static const char * TAG = "bm1368Module"; +static uint8_t asic_timeout_counter = 0; +static uint8_t asic_timeout_warning_threshold = 2; +static int uart_timeout_ms = 10000; + static uint8_t asic_response_buffer[CHUNK_SIZE]; static task_result result; diff --git a/components/asic/bm1370.c b/components/asic/bm1370.c index a3111011..181b4c29 100644 --- a/components/asic/bm1370.c +++ b/components/asic/bm1370.c @@ -57,6 +57,10 @@ typedef struct __attribute__((__packed__)) static const char * TAG = "bm1370Module"; +static uint8_t asic_timeout_counter = 0; +static uint8_t asic_timeout_warning_threshold = 2; +static int uart_timeout_ms = 10000; + static uint8_t asic_response_buffer[SERIAL_BUF_SIZE]; static task_result result; diff --git a/components/asic/bm1397.c b/components/asic/bm1397.c index 384344a0..447fb066 100644 --- a/components/asic/bm1397.c +++ b/components/asic/bm1397.c @@ -56,6 +56,10 @@ typedef struct __attribute__((__packed__)) static const char *TAG = "bm1397Module"; +static uint8_t asic_timeout_counter = 0; +static uint8_t asic_timeout_warning_threshold = 2; +static int uart_timeout_ms = 10000; + static uint8_t asic_response_buffer[SERIAL_BUF_SIZE]; static uint32_t prev_nonce = 0; static task_result result; diff --git a/components/asic/include/serial.h b/components/asic/include/serial.h index a439eeca..a8adef98 100644 --- a/components/asic/include/serial.h +++ b/components/asic/include/serial.h @@ -4,10 +4,6 @@ #define SERIAL_BUF_SIZE 16 #define CHUNK_SIZE 1024 -static uint8_t asic_timeout_counter = 0; -static uint8_t asic_timeout_warning_threshold = 2; -static int uart_timeout_ms = 10000; - int SERIAL_send(uint8_t *, int, bool); void SERIAL_init(void); void SERIAL_debug_rx(void);