summaryrefslogtreecommitdiff
path: root/robot/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'robot/setup.c')
-rw-r--r--robot/setup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/robot/setup.c b/robot/setup.c
index c74cca9..bdd5991 100644
--- a/robot/setup.c
+++ b/robot/setup.c
@@ -5,8 +5,17 @@
#include "modes.h"
#include "orangutan_shim.h"
#include "setup.h"
+#include "bin.h"
+
+// pointers for endianness check
+static const uint16_t _test = 1;
+static const uint8_t* _ptest = (uint8_t*)&_test;
+uint8_t g_w2_endianness;
void w2_setup_main() {
+ // check endianness
+ g_w2_endianness = *_ptest;
+
serial_set_baud_rate(W2_SERIAL_BAUD);
// reset underside leds