helper method
This commit is contained in:
parent
adeaa7aabf
commit
9b785cdfa1
|
@ -294,6 +294,10 @@ bool OutputPin::isInitialized() {
|
|||
#endif /* EFI_GPIO_HARDWARE */
|
||||
}
|
||||
|
||||
void OutputPin::oggle() {
|
||||
setValue(!getLogicValue());
|
||||
|
||||
}
|
||||
void OutputPin::setValue(int logicValue) {
|
||||
#if EFI_PROD_CODE
|
||||
if (port != GPIO_NULL) {
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
bool isInitialized();
|
||||
|
||||
void setValue(int logicValue);
|
||||
void toggle();
|
||||
bool getLogicValue();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue