aboutsummaryrefslogtreecommitdiff
path: root/hal_internal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-07-01 18:44:13 -0400
committerRob Austein <sra@hactrn.net>2016-07-01 18:44:13 -0400
commit904361120ef5eed8b0bb06da8ec90e4b7f1ef81a (patch)
treecc46c735677d217fce3a4a6c2cc8d9ae0c27e767 /hal_internal.h
parent6603db3cdf1ea39d0f2c908d679a4707a204afde (diff)
Use environment variables to specify serial device rather than hard-wiring it.
Diffstat (limited to 'hal_internal.h')
-rw-r--r--hal_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hal_internal.h b/hal_internal.h
index 7a97a87..5bdc83f 100644
--- a/hal_internal.h
+++ b/hal_internal.h
@@ -478,6 +478,13 @@ typedef enum {
#define HAL_CLIENT_SERIAL_DEFAULT_SPEED 921600
#endif
+/*
+ * Names of environment variables for setting the above in RPC clients.
+ */
+
+#define HAL_CLIENT_SERIAL_DEVICE_ENVVAR "HAL_CLIENT_SERIAL_DEVICE"
+#define HAL_CLIENT_SERIAL_SPEED_ENVVAR "HAL_CLIENT_SERIAL_SPEED"
+
#endif /* _HAL_INTERNAL_H_ */
/*