version constraints for PL I2C reset pin
Some checks are pending
EIVE/eive-obsw/pipeline/pr-main Build started...
Some checks are pending
EIVE/eive-obsw/pipeline/pr-main Build started...
This commit is contained in:
parent
52f5b088bf
commit
72ffa365d4
@ -1030,6 +1030,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;
|
||||||
}
|
}
|
||||||
@ -1042,4 +1043,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…
Reference in New Issue
Block a user