that should be sufficient
This commit is contained in:
parent
b3d2fdc277
commit
06fe113d7f
@ -12,6 +12,9 @@ static constexpr char SPI_RW_DEV[] = "/dev/spi_rw";
|
|||||||
static constexpr char I2C_PL_EIVE[] = "/dev/i2c_pl";
|
static constexpr char I2C_PL_EIVE[] = "/dev/i2c_pl";
|
||||||
//! I2C bus using the I2C peripheral of the ARM processing system (PS)
|
//! I2C bus using the I2C peripheral of the ARM processing system (PS)
|
||||||
static constexpr char I2C_PS_EIVE[] = "/dev/i2c_ps";
|
static constexpr char I2C_PS_EIVE[] = "/dev/i2c_ps";
|
||||||
|
//! I2C bus using the first I2C peripheral of the ARM processing system (PS).
|
||||||
|
//! Named like this because it is used by default for the Q7 devices.
|
||||||
|
static constexpr char I2C_Q7_EIVE[] = "/dev/i2c_q7";
|
||||||
|
|
||||||
static constexpr char UART_GNSS_DEV[] = "/dev/gps0";
|
static constexpr char UART_GNSS_DEV[] = "/dev/gps0";
|
||||||
static constexpr char UART_PLOC_MPSOC_DEV[] = "/dev/ul_plmpsoc";
|
static constexpr char UART_PLOC_MPSOC_DEV[] = "/dev/ul_plmpsoc";
|
||||||
|
@ -69,8 +69,10 @@ void ObjectFactory::produce(void* args) {
|
|||||||
{objects::TMP1075_HANDLER_IF_BOARD, addresses::TMP1075_IF_BOARD},
|
{objects::TMP1075_HANDLER_IF_BOARD, addresses::TMP1075_IF_BOARD},
|
||||||
}};
|
}};
|
||||||
const char* tmpI2cDev = q7s::I2C_PS_EIVE;
|
const char* tmpI2cDev = q7s::I2C_PS_EIVE;
|
||||||
if (core::FW_VERSION_MAJOR >= 4) {
|
if (core::FW_VERSION_MAJOR == 4) {
|
||||||
tmpI2cDev = q7s::I2C_PL_EIVE;
|
tmpI2cDev = q7s::I2C_PL_EIVE;
|
||||||
|
} else if(core::FW_VERSION_MAJOR >= 5) {
|
||||||
|
tmpI2cDev = q7s::I2C_Q7_EIVE;
|
||||||
}
|
}
|
||||||
createTmpComponents(tmpDevsToAdd, tmpI2cDev);
|
createTmpComponents(tmpDevsToAdd, tmpI2cDev);
|
||||||
dummy::Tmp1075Cfg tmpCfg{};
|
dummy::Tmp1075Cfg tmpCfg{};
|
||||||
|
Loading…
Reference in New Issue
Block a user