2021-08-17 17:11:59 +02:00
|
|
|
#ifndef COMMON_CONFIG_DEVCONF_H_
|
|
|
|
#define COMMON_CONFIG_DEVCONF_H_
|
2021-03-07 14:06:29 +01:00
|
|
|
|
|
|
|
#include <cstdint>
|
2021-08-03 15:58:01 +02:00
|
|
|
#include <fsfw_hal/linux/spi/spiDefinitions.h>
|
2021-03-07 14:06:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* SPI configuration will be contained here to let the device handlers remain independent
|
|
|
|
* of SPI specific properties.
|
|
|
|
*/
|
|
|
|
namespace spi {
|
|
|
|
|
|
|
|
/* Default values, changing them is not supported for now */
|
|
|
|
static constexpr uint32_t DEFAULT_LIS3_SPEED = 3'900'000;
|
|
|
|
static constexpr spi::SpiModes DEFAULT_LIS3_MODE = spi::SpiModes::MODE_3;
|
|
|
|
|
|
|
|
static constexpr uint32_t DEFAULT_RM3100_SPEED = 976'000;
|
|
|
|
static constexpr spi::SpiModes DEFAULT_RM3100_MODE = spi::SpiModes::MODE_3;
|
|
|
|
|
|
|
|
static constexpr uint32_t DEFAULT_L3G_SPEED = 3'900'000;
|
|
|
|
static constexpr spi::SpiModes DEFAULT_L3G_MODE = spi::SpiModes::MODE_3;
|
|
|
|
|
2021-05-02 13:48:39 +02:00
|
|
|
static constexpr uint32_t DEFAULT_MAX_1227_SPEED = 3'900'000;
|
|
|
|
static constexpr spi::SpiModes DEFAULT_MAX_1227_MODE = spi::SpiModes::MODE_3;
|
|
|
|
|
2021-05-24 01:20:44 +02:00
|
|
|
static constexpr uint32_t DEFAULT_ADIS16507_SPEED = 976'000;
|
|
|
|
static constexpr spi::SpiModes DEFAULT_ADIS16507_MODE = spi::SpiModes::MODE_3;
|
2021-03-07 14:06:29 +01:00
|
|
|
|
2021-06-24 12:04:36 +02:00
|
|
|
static constexpr uint32_t RW_SPEED = 300000;
|
2021-06-21 09:50:26 +02:00
|
|
|
static constexpr spi::SpiModes RW_MODE = spi::SpiModes::MODE_0;
|
|
|
|
|
2021-08-17 19:50:48 +02:00
|
|
|
static constexpr uint32_t RTD_SPEED = 2000000;
|
|
|
|
|
2021-05-24 01:20:44 +02:00
|
|
|
}
|
2021-03-07 14:06:29 +01:00
|
|
|
|
2021-08-17 17:11:59 +02:00
|
|
|
namespace uart {
|
|
|
|
|
2021-08-20 14:08:11 +02:00
|
|
|
static constexpr size_t HYPERION_GPS_REPLY_MAX_BUFFER = 1024;
|
2021-09-02 20:04:41 +02:00
|
|
|
static constexpr uint32_t SYRLINKS_BAUD = 38400;
|
|
|
|
static constexpr uint32_t GNSS_BAUD = 9600;
|
2021-08-17 17:48:51 +02:00
|
|
|
static constexpr uint32_t PLOC_MPSOC_BAUD = 115200;
|
2021-08-17 19:50:48 +02:00
|
|
|
static constexpr uint32_t PLOC_SUPERVISOR_BAUD = 115200;
|
|
|
|
static constexpr uint32_t STAR_TRACKER_BAUD = 115200;
|
2021-08-17 17:48:51 +02:00
|
|
|
|
2021-08-17 17:11:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* COMMON_CONFIG_DEVCONF_H_ */
|