From 8977eeb8f65622f5a15fe2e2f6981dc045dfff21 Mon Sep 17 00:00:00 2001 From: RedHawk Date: Thu, 6 Apr 2023 11:43:42 +0300 Subject: [PATCH] DigitalIoPin: Fine --- source/shoh/src/peripherals/DigitalIoPin.cpp | 8 -------- source/shoh/src/peripherals/DigitalIoPin.h | 9 --------- 2 files changed, 17 deletions(-) diff --git a/source/shoh/src/peripherals/DigitalIoPin.cpp b/source/shoh/src/peripherals/DigitalIoPin.cpp index 5972107..8255644 100644 --- a/source/shoh/src/peripherals/DigitalIoPin.cpp +++ b/source/shoh/src/peripherals/DigitalIoPin.cpp @@ -7,10 +7,6 @@ #include "DigitalIoPin.h" -// Remove this when code will be reworked. -#ifndef DIGITALIOPIN_NOT_FIXED -// Remove this when code will be reworked. - DigitalIoPin::DigitalIoPin (int port, int pin, bool input, bool pullup, bool invert) { @@ -65,7 +61,3 @@ DigitalIoPin::write (bool value) assert (!(_io._input)); Chip_GPIO_SetPinState (LPC_GPIO, _io._port, _io._pin, ((_io._invert) ? !value : value)); } - -//Remove this when code will be reworked. -#endif /* DIGITALIOPIN_NOT_FIXED */ -//Remove this when code will be reworked. diff --git a/source/shoh/src/peripherals/DigitalIoPin.h b/source/shoh/src/peripherals/DigitalIoPin.h index 8745c2d..de004af 100644 --- a/source/shoh/src/peripherals/DigitalIoPin.h +++ b/source/shoh/src/peripherals/DigitalIoPin.h @@ -8,11 +8,6 @@ #ifndef DIGITALIOPIN_H_ #define DIGITALIOPIN_H_ -// Remove this when code will be reworked. -#define DIGITALIOPIN_NOT_FIXED -#ifndef DIGITALIOPIN_NOT_FIXED -// Remove this when code will be reworked. - #define UINT8_MAX_VALUE 255 #include @@ -45,8 +40,4 @@ private: void setIoPin (); }; -//Remove this when code will be reworked. -#endif /* DIGITALIOPIN_NOT_FIXED */ -//Remove this when code will be reworked. - #endif /* DIGITALIOPIN_H_ */