eive-obsw/bsp_linux_board/boardconfig/rpiConfig.h.in

33 lines
944 B
C
Raw Normal View History

2021-02-22 12:57:41 +01:00
#ifndef BSP_RPI_BOARDCONFIG_RPI_CONFIG_H_
#define BSP_RPI_BOARDCONFIG_RPI_CONFIG_H_
2021-02-23 22:07:39 +01:00
#include <cstdint>
#define RPI_ADD_GPIO_TEST 0
#define RPI_LOOPBACK_TEST_GPIO 0
2021-02-22 12:57:41 +01:00
2021-06-16 18:38:06 +02:00
#define RPI_TEST_ADIS16507 0
#define RPI_TEST_GPS_HANDLER 0
2021-05-24 01:20:44 +02:00
2021-06-16 18:38:06 +02:00
// Only one of those 2 should be enabled!
2021-03-07 14:06:29 +01:00
#define RPI_ADD_SPI_TEST 0
2021-06-16 18:38:06 +02:00
#if RPI_ADD_SPI_TEST == 0
2021-03-07 14:07:17 +01:00
#define RPI_TEST_ACS_BOARD 0
2021-06-16 18:38:06 +02:00
#endif
2021-08-11 18:52:33 +02:00
#define RPI_ADD_UART_TEST 0
2021-02-22 12:57:41 +01:00
2021-02-23 22:07:39 +01:00
/* Adapt these values accordingly */
namespace gpio {
2021-09-22 15:43:11 +02:00
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;
2021-02-23 22:07:39 +01:00
static constexpr uint8_t GYRO_0_BCM_PIN = 5;
static constexpr uint8_t GYRO_1_BCM_PIN = 6;
2021-09-22 15:43:11 +02:00
static constexpr uint8_t GYRO_2_BCM_PIN = 13;
static constexpr uint8_t GYRO_3_BCM_PIN = 19;
2021-02-23 22:07:39 +01:00
}
2021-02-22 12:57:41 +01:00
#endif /* BSP_RPI_BOARDCONFIG_RPI_CONFIG_H_ */