aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/board.h
blob: 3f4be8290eb43669c084ff471572f98c2d3108c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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