changeset 153:791cdfad0c8e FlipDisplay

Added definitions for SPI sequence counter
author Ideenmodellierer
date Sun, 03 Mar 2019 12:19:47 +0100
parents bc7795161549
children 1ac5033f7c7a
files Common/Inc/global_constants.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Common/Inc/global_constants.h	Sun Mar 03 12:18:44 2019 +0100
+++ b/Common/Inc/global_constants.h	Sun Mar 03 12:19:47 2019 +0100
@@ -36,10 +36,14 @@
 #define BUTTON_DEBOUNCE_DELAY 50 //Delay for debounce filter for piezo buttons
 
 
-//Spi sync data debug
+// Spi sync data debug
 #define SPI_SHOW_SYNC_STATS 1
 #define SPI_MIN_ERROR_SHOW 10
 
+// SPI header by index used for synchronization check (package sequence counter)
+#define SPI_HEADER_INDEX_MASTER 1
+#define SPI_HEADER_INDEX_SLAVE 2
+
 
 //Text data
 #define TEXT_PRESSURE_UNIT "hPa"