Merge branch 'v5.0.0-dev' into main-v6
This commit is contained in:
commit
9080e7cbe4
@ -9,9 +9,9 @@
|
|||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
set(OBSW_VERSION_MAJOR 4)
|
set(OBSW_VERSION_MAJOR 5)
|
||||||
set(OBSW_VERSION_MINOR 0)
|
set(OBSW_VERSION_MINOR 0)
|
||||||
set(OBSW_VERSION_REVISION 1)
|
set(OBSW_VERSION_REVISION 0)
|
||||||
|
|
||||||
# set(CMAKE_VERBOSE TRUE)
|
# set(CMAKE_VERBOSE TRUE)
|
||||||
|
|
||||||
|
@ -190,6 +190,7 @@ ReturnValue_t CoreController::initialize() {
|
|||||||
sif::warning << "Subscribing for GPS GPS_FIX_CHANGE event failed" << std::endl;
|
sif::warning << "Subscribing for GPS GPS_FIX_CHANGE event failed" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (common::OBSW_VERSION_MAJOR >= 6 or common::OBSW_VERSION_MAJOR == 4) {
|
||||||
UioMapper sysRomMapper(q7s::UIO_SYS_ROM);
|
UioMapper sysRomMapper(q7s::UIO_SYS_ROM);
|
||||||
result = sysRomMapper.getMappedAdress(&mappedSysRomAddr, UioMapper::Permissions::READ_ONLY);
|
result = sysRomMapper.getMappedAdress(&mappedSysRomAddr, UioMapper::Permissions::READ_ONLY);
|
||||||
if (result != returnvalue::OK) {
|
if (result != returnvalue::OK) {
|
||||||
@ -197,6 +198,7 @@ ReturnValue_t CoreController::initialize() {
|
|||||||
sif::error << "Getting mapped SYS ROM UIO address failed" << std::endl;
|
sif::error << "Getting mapped SYS ROM UIO address failed" << std::endl;
|
||||||
return ObjectManager::CHILD_INIT_FAILED;
|
return ObjectManager::CHILD_INIT_FAILED;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2518,11 +2520,14 @@ void CoreController::announceVersionInfo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
triggerEvent(VERSION_INFO, p1, p2);
|
triggerEvent(VERSION_INFO, p1, p2);
|
||||||
|
|
||||||
|
if (common::OBSW_VERSION_MAJOR >= 6 or common::OBSW_VERSION_MAJOR == 4) {
|
||||||
if (mappedSysRomAddr != nullptr) {
|
if (mappedSysRomAddr != nullptr) {
|
||||||
uint32_t p1Firmware = *(reinterpret_cast<uint32_t *>(mappedSysRomAddr));
|
uint32_t p1Firmware = *(reinterpret_cast<uint32_t *>(mappedSysRomAddr));
|
||||||
uint32_t p2Firmware = *(reinterpret_cast<uint32_t *>(mappedSysRomAddr) + 1);
|
uint32_t p2Firmware = *(reinterpret_cast<uint32_t *>(mappedSysRomAddr) + 1);
|
||||||
triggerEvent(FIRMWARE_INFO, p1Firmware, p2Firmware);
|
triggerEvent(FIRMWARE_INFO, p1Firmware, p2Firmware);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreController::announceCurrentImageInfo() {
|
void CoreController::announceCurrentImageInfo() {
|
||||||
|
@ -1017,6 +1017,7 @@ void ObjectFactory::createRadSensorChipSelect(LinuxLibgpioIF* gpioIF) {
|
|||||||
|
|
||||||
void ObjectFactory::createPlI2cResetGpio(LinuxLibgpioIF* gpioIF) {
|
void ObjectFactory::createPlI2cResetGpio(LinuxLibgpioIF* gpioIF) {
|
||||||
using namespace gpio;
|
using namespace gpio;
|
||||||
|
if (common::OBSW_VERSION_MAJOR >= 6 or common::OBSW_VERSION_MAJOR == 4) {
|
||||||
if (gpioIF == nullptr) {
|
if (gpioIF == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1029,4 +1030,5 @@ void ObjectFactory::createPlI2cResetGpio(LinuxLibgpioIF* gpioIF) {
|
|||||||
gpioIF->pullLow(gpioIds::PL_I2C_ARESETN);
|
gpioIF->pullLow(gpioIds::PL_I2C_ARESETN);
|
||||||
TaskFactory::delayTask(1);
|
TaskFactory::delayTask(1);
|
||||||
gpioIF->pullHigh(gpioIds::PL_I2C_ARESETN);
|
gpioIF->pullHigh(gpioIds::PL_I2C_ARESETN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user