5#ifndef MRAS_MRAS_CONFIG_H
6#define MRAS_MRAS_CONFIG_H
8#define ENABLE_BUZZER true
9#define ENABLE_BEEPING false
16#ifdef BUILD_ENV_rocket
18#define MRAS_LSM6DSO32_CHIP_SELECT 40
19#define MRAS_LSM6DSO32_SPI_BUS SPI
20#define MRAS_LSM6DSO32_SPI_FREQUENCY 5e6
22#define MRAS_LIS3MDL_CHIP_SELECT 37
23#define MRAS_LIS3MDL_SPI_BUS MRAS_LSM6DSO32_SPI_BUS
24#define MRAS_LIS3MDL_SPI_FREQUENCY MRAS_LSM6DSO32_SPI_FREQUENCY
26#define MRAS_MS5607_I2C_ADDRESS 0x76
27#define MRAS_MS5607_I2C_BUS Wire2
28#define MRAS_MS5607_I2C_FREQUENCY 400000
30#define MRAS_ADXL375_CHIP_SELECT 3
31#define MRAS_ADXL375_SPI_BUS MRAS_LSM6DSO32_SPI_BUS
32#define MRAS_ADXL375_SPI_FREQUENCY MRAS_LSM6DSO32_SPI_FREQUENCY
34#define MRAS_GNSS_I2C_BUS MRAS_MS5607_I2C_BUS
35#define MRAS_GNSS_I2C_FREQUENCY MRAS_MS5607_I2C_FREQUENCY
45#define RADIO_FREQUENCY 868.0
48#define RADIO_BANDWIDTH 250
51#define RADIO_SPREADING_FACTOR 5
54#define RADIO_CODING_RATE 8
57#define RADIO_SYNC_WORD 0x22
63#define RADIO_PREAMBLE_LENGTH 8
66#define RADIO_TCXO_VOLTAGE 0
71#define RADIO_USE_LDO true
73#ifdef BUILD_ENV_rocket
75#define RADIO_CHIP_SELECT_PIN 31
76#define RADIO_DIO1_PIN 33
77#define RADIO_RESET_PIN 32
78#define RADIO_BUSY_PIN 34
79#define RADIO_RX_ENABLE_PIN 36
80#define RADIO_TX_ENABLE_PIN 35
81#define RADIO_SPI_BUS SPI1
85#define RADIO_CHIP_SELECT_PIN 0
86#define RADIO_DIO1_PIN 1
87#define RADIO_RESET_PIN 10
88#define RADIO_BUSY_PIN 9
89#define RADIO_RX_ENABLE_PIN 6
90#define RADIO_TX_ENABLE_PIN 5
91#define RADIO_SPI_BUS SPI
101#define MRAS_STARTUP_STRING "\n"\
103" __ __ _____ _____ \n"\
104" | \\/ | | __ \\ /\\ / ____|\n"\
105" | \\ / | | |__) | / \\ | (___ \n"\
106" | |\\/| | | _ / / /\\ \\ \\___ \\ \n"\
107" | | | | | | \\ \\ / ____ \\ ____) |\n"\
108" |_| |_| |_| \\_\\ /_/ \\_\\ |_____/ \n"\
110" ❤ 2022 TeamSunride ❤\n\n"\
111"=================================================\n\n"