dCArun: use DigitalOutputAbstraction
This commit is contained in:
parent
94a95eceb5
commit
0ea9ac9af3
@ -1,7 +1,7 @@
|
||||
#include "CArun.h"
|
||||
#include "datei.h"
|
||||
|
||||
#include "CCWakelineAbstraction.h"
|
||||
#include "DigitalOutputAbstraction.h"
|
||||
|
||||
|
||||
CArun::CArun(QObject *parent)
|
||||
@ -20,7 +20,10 @@ CArun::CArun(QObject *parent)
|
||||
|
||||
this->timerChainCtrl->start();
|
||||
|
||||
this->ccWakelineAbstraction = new CCWakelineAbstraction(this->HWaccess, this);
|
||||
this->digitalOutputAbstraction = new DigitalOutputAbstraction(this->HWaccess, this);
|
||||
this->digitalOutputAbstraction->addCCWake("/sys/class/leds/wakeupctrl_cc/brightness");
|
||||
this->digitalOutputAbstraction->addCCPower("/run/powerctrl_cc");
|
||||
this->digitalOutputAbstraction->addCCModem("/run/powerctrl_modem");
|
||||
}
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@ enum class SETUP_STEP {
|
||||
};
|
||||
|
||||
|
||||
class CCWakelineAbstraction;
|
||||
class DigitalOutputAbstraction;
|
||||
|
||||
class CArun : public QObject
|
||||
{
|
||||
@ -45,7 +45,7 @@ private:
|
||||
|
||||
void openSerialPort();
|
||||
|
||||
CCWakelineAbstraction* ccWakelineAbstraction;
|
||||
DigitalOutputAbstraction* digitalOutputAbstraction;
|
||||
|
||||
signals:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user