aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'test_fw/include/board.h')
-rw-r--r--test_fw/include/board.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/test_fw/include/board.h b/test_fw/include/board.h
new file mode 100644
index 0000000..3f4be82
--- /dev/null
+++ b/test_fw/include/board.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <SPI.h>
+
+constexpr auto SDA_PIN = 6, SCL_PIN = 23;
+
+constexpr auto SD_CS = 17, SD_SCK = 18, SD_MOSI = 19, SD_MISO = 20;
+constexpr auto CARD_DETECT = 12;
+
+constexpr auto LSM_CS = 13, LSM_SCK = 10, LSM_MOSI = 11, LSM_MISO = 8;
+constexpr auto LSM_INT1 = 4, LSM_INT2 = 5;
+
+constexpr auto LED_FAULT = 0, LED_CAPTURING = 1, LED_OTHER = 2, LED_STORAGE = 3;
+constexpr auto I2S_DATA = 22, I2S_BCLK = 24, I2S_WS = 25;
+
+constexpr auto BME_ADDR = 0x76;
+
+#define SD_SPI SPI
+#define LSM_SPI SPI1
+