Mercurial > public > ostc4
comparison Common/Inc/global_constants.h @ 172:c659fda83e44
Minor: Button defaults, release date adjusted, use SPI_SHOW_SYNC_STATS
author | heinrichsweikamp |
---|---|
date | Sun, 10 Mar 2019 20:30:42 +0100 |
parents | 791cdfad0c8e |
children | 9fc06e1e0f66 |
comparison
equal
deleted
inserted
replaced
171:4b5b7a40e594 | 172:c659fda83e44 |
---|---|
26 | 26 |
27 #ifndef GLOBAL_CONSTANTS_H | 27 #ifndef GLOBAL_CONSTANTS_H |
28 #define GLOBAL_CONSTANTS_H | 28 #define GLOBAL_CONSTANTS_H |
29 //Rename it ahead. | 29 //Rename it ahead. |
30 //Buttons section | 30 //Buttons section |
31 #define DEFAULT_BUTTONRESPONSIVENESS_GUI 30 | 31 #define DEFAULT_BUTTONRESPONSIVENESS_GUI 85 |
32 #define MIN_BUTTONRESPONSIVENESS_GUI 30 //50 (-10correction) | 32 #define MIN_BUTTONRESPONSIVENESS_GUI 30 //50 (-10correction) |
33 #define MAX_BUTTONRESPONSIVENESS_GUI 110//100 (+10correction) | 33 #define MAX_BUTTONRESPONSIVENESS_GUI 110//100 (+10correction) |
34 #define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-20 //MIN_BUTTONRESPONSIVENESS_GUI-20 correction | 34 #define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-20 //MIN_BUTTONRESPONSIVENESS_GUI-20 correction |
35 #define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+20//MIN_BUTTONRESPONSIVENESS_GUI+20correction | 35 #define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+20//MIN_BUTTONRESPONSIVENESS_GUI+20correction |
36 #define BUTTON_DEBOUNCE_DELAY 50 //Delay for debounce filter for piezo buttons | 36 #define BUTTON_DEBOUNCE_DELAY 50 //Delay for debounce filter for piezo buttons |
37 | 37 |
38 | 38 |
39 // Spi sync data debug | 39 // Spi sync data debug |
40 #define SPI_SHOW_SYNC_STATS 1 | 40 #define SPI_SHOW_SYNC_STATS 0 |
41 #define SPI_MIN_ERROR_SHOW 10 | 41 #define SPI_MIN_ERROR_SHOW 10 |
42 | 42 |
43 // SPI header by index used for synchronization check (package sequence counter) | 43 // SPI header by index used for synchronization check (package sequence counter) |
44 #define SPI_HEADER_INDEX_MASTER 1 | 44 #define SPI_HEADER_INDEX_MASTER 1 |
45 #define SPI_HEADER_INDEX_SLAVE 2 | 45 #define SPI_HEADER_INDEX_SLAVE 2 |