31 lines
884 B
C
31 lines
884 B
C
|
#ifndef BSP_LINUX_BOARD_DEFINITIONS_H_
|
||
|
#define BSP_LINUX_BOARD_DEFINITIONS_H_
|
||
|
|
||
|
#include "OBSWConfig.h"
|
||
|
#include <cstdint>
|
||
|
|
||
|
#ifdef RASPBERRY_PI
|
||
|
|
||
|
/* Adapt these values accordingly */
|
||
|
namespace gpio {
|
||
|
static constexpr uint8_t MGM_0_BCM_PIN = 17;
|
||
|
static constexpr uint8_t MGM_1_BCM_PIN = 27;
|
||
|
static constexpr uint8_t MGM_2_BCM_PIN = 22;
|
||
|
static constexpr uint8_t MGM_3_BCM_PIN = 23;
|
||
|
static constexpr uint8_t GYRO_0_BCM_PIN = 5;
|
||
|
static constexpr uint8_t GYRO_1_BCM_PIN = 6;
|
||
|
static constexpr uint8_t GYRO_2_BCM_PIN = 13;
|
||
|
static constexpr uint8_t GYRO_3_BCM_PIN = 19;
|
||
|
|
||
|
static constexpr uint8_t SPI_MUX_0_BCM = 17;
|
||
|
static constexpr uint8_t SPI_MUX_1_BCM = 27;
|
||
|
static constexpr uint8_t SPI_MUX_2_BCM = 22;
|
||
|
static constexpr uint8_t SPI_MUX_3_BCM = 23;
|
||
|
static constexpr uint8_t SPI_MUX_4_BCM = 5;
|
||
|
static constexpr uint8_t SPI_MUX_5_BCM = 6;
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif /* BSP_LINUX_BOARD_DEFINITIONS_H_ */
|