summaryrefslogtreecommitdiff
path: root/shared/consts.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-24 21:56:59 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-24 21:56:59 +0200
commit937a3a736aaf2c468c8c8e8dbc7963a87eae890f (patch)
treedb8d9a717727b907c77c24aff98ed90c82ccb22a /shared/consts.h
parentede8a89706209fa26e151a34a28e64affbffd23d (diff)
move some code to a shared folder
Diffstat (limited to 'shared/consts.h')
-rw-r--r--shared/consts.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/shared/consts.h b/shared/consts.h
new file mode 100644
index 0000000..70efcac
--- /dev/null
+++ b/shared/consts.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#ifndef W2_BUILD_STR
+// is defined by CFLAGS += -DW2_BUILD_STR in makefile
+#define W2_BUILD_STR ("????????")
+#endif
+
+/** max logic module execution time in milliseconds */
+#define W2_MAX_MODULE_CYCLE_MS (20)
+/** serial baud rate (bit/s) */
+#define W2_SERIAL_BAUD (9600)
+/** size of the error handling buffer (in errors, not bytes) */
+#define W2_ERROR_BUFFER_SIZE (16)
+/** size of the serial communication buffer (in messages, not bytes) */
+#define W2_SERCOMM_BUFFER_SIZE (16)
+/** size of input (receive) buffer (in bytes) */
+#define W2_SERIAL_READ_BUFFER_SIZE (255)