diff options
| author | Nathan Perry <np@npry.dev> | 2024-10-24 00:25:25 -0400 |
|---|---|---|
| committer | Nathan Perry <np@npry.dev> | 2024-10-24 00:25:25 -0400 |
| commit | 5077fec0348e717fa93bd1879548fed03fcae52e (patch) | |
| tree | 2b6a93daa2ba9d52d17fa5258f705c9682e49984 /test_fw/include/board.h | |
| parent | 9c07c2b85d908f699f8ba590b1d60232157eca90 (diff) | |
test_fw: refactor
Diffstat (limited to 'test_fw/include/board.h')
| -rw-r--r-- | test_fw/include/board.h | 20 |
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 + |
