helper method

This commit is contained in:
rusefi 2018-01-28 11:08:37 -05:00
parent 68b4ce9440
commit 8e33e6015f
2 changed files with 5 additions and 0 deletions

View File

@ -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) {

View File

@ -43,6 +43,7 @@ public:
bool isInitialized();
void setValue(int logicValue);
void toggle();
bool getLogicValue();