diff Common/Inc/global_constants.h @ 153:791cdfad0c8e FlipDisplay

Added definitions for SPI sequence counter
author Ideenmodellierer
date Sun, 03 Mar 2019 12:19:47 +0100
parents 22a1094545f3
children c659fda83e44
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"